mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix E_DEPRECATED in zend_vm_gen.php
explode(): Passing null to parameter #2 ($string) of type string is deprecated Closes GH-6698.
This commit is contained in:
parent
bdd7c48764
commit
b86dfb0e74
1 changed files with 4 additions and 3 deletions
|
@ -2552,10 +2552,11 @@ function gen_vm($def, $skel) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Store parameters
|
// Store parameters
|
||||||
if (ZEND_VM_KIND == ZEND_VM_KIND_GOTO
|
if ((ZEND_VM_KIND == ZEND_VM_KIND_GOTO
|
||||||
|| ZEND_VM_KIND == ZEND_VM_KIND_SWITCH
|
|| ZEND_VM_KIND == ZEND_VM_KIND_SWITCH
|
||||||
|| (ZEND_VM_KIND == ZEND_VM_KIND_HYBRID && $hot)) {
|
|| (ZEND_VM_KIND == ZEND_VM_KIND_HYBRID && $hot))
|
||||||
foreach (explode(",", $param) as $p) {
|
&& $param) {
|
||||||
|
foreach (explode(",", $param ) as $p) {
|
||||||
$p = trim($p);
|
$p = trim($p);
|
||||||
if ($p !== "") {
|
if ($p !== "") {
|
||||||
$params[$p] = 1;
|
$params[$p] = 1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue