File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 9
9
MYSQLI_TYPE_NEWDECIMAL and MYSQLI_TYPE_BIT. FR #36007. (Georg)
10
10
- Fixed imagecolorallocate() and imagecolorallocatelapha() to return FALSE
11
11
on error. (Pierre)
12
+ - Fixed bug #36134 (DirectoryIterator constructor failed to detect empty
13
+ directory names). (Ilia)
12
14
- Fixed bug #36096 (oci_result() returns garbage after oci_fetch() failed).
13
15
(Tony)
14
16
- Fixed bug #36071 (Engine Crash related with 'clone'). (Dmitry)
Original file line number Diff line number Diff line change @@ -393,6 +393,12 @@ SPL_METHOD(DirectoryIterator, __construct)
393
393
return ;
394
394
}
395
395
396
+ if (!len ) {
397
+ php_set_error_handling (EH_NORMAL , NULL TSRMLS_CC );
398
+ zend_throw_exception_ex (spl_ce_RuntimeException , 0 TSRMLS_CC , "Directory name must not be empty." );
399
+ return ;
400
+ }
401
+
396
402
intern = (spl_filesystem_object * )zend_object_store_get_object (getThis () TSRMLS_CC );
397
403
spl_filesystem_dir_open (intern , path TSRMLS_CC );
398
404
intern -> u .dir .is_recursive = instanceof_function (intern -> std .ce , spl_ce_RecursiveDirectoryIterator TSRMLS_CC ) ? 1 : 0 ;
You can’t perform that action at this time.
0 commit comments