warning on bad chdir
matches zend
Esse commit está contido em:
@@ -1277,6 +1277,7 @@ bool f_chdir(CStrRef directory) {
|
||||
g_context->setCwd(File::TranslatePath(directory));
|
||||
return true;
|
||||
}
|
||||
raise_warning("No such file or directory (errno 2)");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
|
||||
var_dump(chdir('/this_should_not_exist'));
|
||||
@@ -0,0 +1,2 @@
|
||||
HipHop Warning: No such file or directory (errno 2) in %s/test/quick/chdir.php on line 3
|
||||
bool(false)
|
||||
Referência em uma Nova Issue
Bloquear um usuário