mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
use V_RENAME makro instead
This commit is contained in:
parent
00d1d1a347
commit
52e45f514b
@ -1508,7 +1508,7 @@ PHP_FUNCTION(rename)
|
||||
if (PG(safe_mode) &&(!php_checkuid(old_name, NULL, 2))) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
ret = rename(old_name, new_name);
|
||||
ret = V_RENAME(old_name, new_name);
|
||||
|
||||
if (ret == -1) {
|
||||
php_error(E_WARNING,"Rename failed (%s)", strerror(errno));
|
||||
|
Loading…
Reference in New Issue
Block a user