Bug #79193 [NEW]: 7.3 -> 7.4 broke `self::$field =& $field`, now `isset( $field['name'] )` false

From: Date: Wed, 29 Jan 2020 20:38:03 +0000
Subject: Bug #79193 [NEW]: 7.3 -> 7.4 broke `self::$field =& $field`, now `isset( $field['name'] )` false
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-225227@lists.php.net to get a copy of this message
From: leho at conversionready dot com Operating system: Linux PHP version: 7.4.2 Package: Variables related Bug Type: Bug Bug description:7.3 -> 7.4 broke self::$field =& $field, now isset( $field['name'] ) false Description: ------------ This seems like some kind of an engine regression from 7.3. Staging system running 7.4.2 breaks, live system 7.3.13 works. Code https://github.com/opencredit/badgeos/blob/1.4.11/includes/cmb/init.php#L380 Relevant code below: ``` /** * $field $field array (4) * * ⇄name => string (18) "Upload Badge Image" * * ⇄⧉desc => string (903) "<p>To set an image use the <strong>Achievement Image</strong> metabox to the... * * ⇄id => string (39) "_badgeos_upload_badge_image_achievement" * * ⇄type => string (9) "text_only" */ ... self::$field =& $field; isset( $field['name'] ); // false. How?? ``` Behavior changed when I loaded the same screen on another FPM pool that was running Xdebug - everything passed error free. Behavior also changes if I replace reference with regular assignment, like self::$field = $field - this particular problem goes away, but other (probably unrelated) pieces in the chain now cough. Your thoughts? -- Edit bug report at https://bugs.php.net/bug.php?id=79193&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79193&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79193&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79193&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79193&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79193&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79193&r=support Expected behavior: https://bugs.php.net/fix.php?id=79193&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79193&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79193&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79193&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79193&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79193&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79193&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79193&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79193&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79193&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79193&r=mysqlcfg

« previous php.bugs (#225227) next »