Searched defs:new_name (Results 1 - 3 of 3) sorted by relevance

/PHP_5_3/ext/standard/
H A Dfile.c1542 /* {{{ proto bool rename(string old_name, string new_name[, resource context])
1546 char *old_name, *new_name; local
1552 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|r", &old_name, &old_name_len, &new_name, &new_name_len, &zcontext) == FAILURE) {
1560 if (strlen(new_name) != new_name_len) {
1576 if (wrapper != php_stream_locate_url_wrapper(new_name, NULL, 0 TSRMLS_CC)) {
1583 RETURN_BOOL(wrapper->wops->rename(wrapper, old_name, new_name, 0, context TSRMLS_CC));
/PHP_5_3/ext/zip/
H A Dphp_zip.c2236 /* {{{ proto bool ZipArchive::renameIndex(int index, string new_name)
2237 Rename an entry selected by its index to new_name */
2243 char *new_name; local
2253 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ls", &index, &new_name, &new_name_len) == FAILURE) {
2265 if (zip_rename(intern, index, (const char *)new_name) != 0) {
2272 /* {{{ proto bool ZipArchive::renameName(string name, string new_name)
2273 Rename an entry selected by its name to new_name */
2279 char *name, *new_name; local
2288 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &name, &name_len, &new_name, &new_name_len) == FAILURE) {
2299 if (zip_rename(intern, sb.index, (const char *)new_name)) {
[all...]
/PHP_5_3/Zend/
H A Dzend_compile.c5203 void zend_do_use(znode *ns_name, znode *new_name, int is_global TSRMLS_DC) /* {{{ */ argument
5217 if (new_name) {
5218 name = &new_name->u.constant;
5223 So we extract the last part of compound name to use as a new_name */

Completed in 40 milliseconds