warning on bad chdir

matches zend
Esse commit está contido em:
Paul Tarjan
2013-07-19 10:20:00 -07:00
commit de Sara Golemon
commit 38330353f6
3 arquivos alterados com 6 adições e 0 exclusões
+1
Ver Arquivo
@@ -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;
}
+3
Ver Arquivo
@@ -0,0 +1,3 @@
<?php
var_dump(chdir('/this_should_not_exist'));
+2
Ver Arquivo
@@ -0,0 +1,2 @@
HipHop Warning: No such file or directory (errno 2) in %s/test/quick/chdir.php on line 3
bool(false)