return -1;
}
- if ((ret = VCWD_MKDIR(dir, (mode_t)mode)) < 0 && (options & REPORT_ERRORS) == 1) {
+ if ((ret = VCWD_MKDIR(dir, (mode_t)mode)) < 0 && (options & REPORT_ERRORS)) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", strerror(errno));
}
*** Testing mkdir() with miscelleneous input ***
bool(true)
+
+Warning: mkdir(): Permission denied in %sfile/mkdir_rmdir_variation2.php on line %d
bool(false)
bool(true)
Done
Test mkdir() function : usage variation: try invalid pathname
--CREDITS--
Dave Kelsey <d_kelsey@uk.ibm.com>
---XFAIL--
--SKIPIF--
<?php
if(substr(PHP_OS, 0, 3) != "WIN")
--single space--
Error: 2 - mkdir(): %s, %s(%d)
-===DONE===
\ No newline at end of file
+===DONE===
Test mkdir() function : usage variation: try invalid pathname
--CREDITS--
Dave Kelsey <d_kelsey@uk.ibm.com>
---XFAIL--
--SKIPIF--
<?php
if(substr(PHP_OS, 0, 3) == "WIN")
--single space--
directory created
-===DONE===
\ No newline at end of file
+===DONE===
Test mkdir() function : variation: various valid and invalid paths
--CREDITS--
Dave Kelsey <d_kelsey@uk.ibm.com>
---XFAIL--
--SKIPIF--
<?php
if(substr(PHP_OS, 0, 3) == "WIN")