|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-03-10 13:55 UTC] cmb@php.net
-Package: Feature/Change Request
+Package: Directory function related
[2018-03-10 13:55 UTC] cmb@php.net
[2020-10-27 10:23 UTC] cmb@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: cmb
[2020-10-27 10:23 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 17 18:00:01 2025 UTC |
Description: ------------ As all but the first parameter of mkdir are optional and non sequential, it makes sense to be able to pass NULL to each if a later param is required. E.g. mkdir('some/path/foobar', null, true); Reproduce code: --------------- This patch adds this functionality: http://rafb.net/paste/results/0QWc5F15.html Included in the report: --- \repository\php-src\ext\standard\file.1.395.c Mon Dec 13 10:21:53 2004 +++ \repository\php-src\ext\standard\file.c Thu Jan 06 12:29:41 2005 @@ -1372,7 +1372,7 @@ char *dir; php_stream_context *context; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|lbr", &dir, &dir_len, &mode, &recursive, &zcontext) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|!lbr", &dir, &dir_len, &mode, &recursive, &zcontext) == FAILURE) { RETURN_FALSE; }