Skip to content

Commit 279bcb5

Browse files
committed
Fix E_DEPRECATED in zend_vm_gen.php
explode(): Passing null to parameter #2 ($string) of type string is deprecated
1 parent 4a8b934 commit 279bcb5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Zend/zend_vm_gen.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2552,10 +2552,11 @@ function gen_vm($def, $skel) {
25522552
}
25532553

25542554
// Store parameters
2555-
if (ZEND_VM_KIND == ZEND_VM_KIND_GOTO
2555+
if ((ZEND_VM_KIND == ZEND_VM_KIND_GOTO
25562556
|| ZEND_VM_KIND == ZEND_VM_KIND_SWITCH
2557-
|| (ZEND_VM_KIND == ZEND_VM_KIND_HYBRID && $hot)) {
2558-
foreach (explode(",", $param) as $p) {
2557+
|| (ZEND_VM_KIND == ZEND_VM_KIND_HYBRID && $hot))
2558+
&& $param) {
2559+
foreach (explode(",", $param ) as $p) {
25592560
$p = trim($p);
25602561
if ($p !== "") {
25612562
$params[$p] = 1;

0 commit comments

Comments
 (0)