File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -376,9 +376,13 @@ if (ZEND_OPTIMIZER_PASS_1 & OPTIMIZATION_LEVEL) {
376
376
Z_STRVAL (ZEND_OP1_LITERAL (opline - 1 )), Z_STRLEN (ZEND_OP1_LITERAL (opline - 1 )));
377
377
378
378
if (zend_hash_find (EG (function_table ), lc_name , Z_STRLEN (ZEND_OP1_LITERAL (opline - 1 )) + 1 ,
379
- (void * )& func ) == SUCCESS &&
380
- func -> type == ZEND_INTERNAL_FUNCTION &&
381
- func -> module -> type == MODULE_PERSISTENT ) {
379
+ (void * )& func ) == SUCCESS
380
+ && func -> type == ZEND_INTERNAL_FUNCTION
381
+ && func -> module -> type == MODULE_PERSISTENT
382
+ #ifdef ZEND_WIN32
383
+ && func -> module -> handle == NULL
384
+ #endif
385
+ ) {
382
386
zval t ;
383
387
if (Z_STRLEN (ZEND_OP1_LITERAL (opline )) == sizeof ("is_callable" ) - 1 ||
384
388
func -> handler != ZEND_FN (display_disabled_function )) {
@@ -412,7 +416,11 @@ if (ZEND_OPTIMIZER_PASS_1 & OPTIMIZATION_LEVEL) {
412
416
ZVAL_BOOL (& t , 0 );
413
417
}
414
418
} else {
415
- if (m -> type == MODULE_PERSISTENT ) {
419
+ if (m -> type == MODULE_PERSISTENT
420
+ #ifdef ZEND_WIN32
421
+ && m -> handle == NULL
422
+ #endif
423
+ ) {
416
424
ZVAL_BOOL (& t , 1 );
417
425
} else {
418
426
break ;
You can’t perform that action at this time.
0 commit comments