Bug #66181 [NEW]: Assign a variable to a property then list

From: Date: Tue, 26 Nov 2013 19:01:34 +0000
Subject: Bug #66181 [NEW]: Assign a variable to a property then list
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-182947@lists.php.net to get a copy of this message
From: phil at philsturgeon dot co dot uk Operating system: PHP version: 5.4.22 Package: Reproducible crash Bug Type: Bug Bug description:Assign a variable to a property then list Description: ------------ PHP 5.5.6-1+debphp.org~quantal+2 When assigning a variable to a property and then using list() on the result of that I get a segfault with code 139 being the response. I ran this through 3v4l and it happens on everything over PHP 5.4.0. Test script: --------------- <?php class Foo { protected $box; public function setBox(array $box) { // Breaks FPM and gives a 502 due to connection reset by peers list($lat1, $lon1, $lat2, $lon2) = $this->box = $box; return $this; } } $foo = new Foo; $foo->setBox(explode(',', '40.688235,-74.013718,40.756427,-73.958770')); echo "Success"; Expected result: ---------------- "Success" Actual result: -------------- Process exited with code 139. -- Edit bug report at https://bugs.php.net/bug.php?id=66181&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66181&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66181&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66181&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=66181&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=66181&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=66181&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=66181&r=needscript Try newer version: https://bugs.php.net/fix.php?id=66181&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=66181&r=support Expected behavior: https://bugs.php.net/fix.php?id=66181&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=66181&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=66181&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=66181&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66181&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=66181&r=dst IIS Stability: https://bugs.php.net/fix.php?id=66181&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=66181&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=66181&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=66181&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=66181&r=mysqlcfg

« previous php.bugs (#182947) next »