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

From: Date: Tue, 26 Nov 2013 19:03:16 +0000
Subject: Bug #66181 [Opn]: Assign a variable to a property then list
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-182948@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66181&edit=1 ID: 66181 User updated by: phil at philsturgeon dot co dot uk Reported by: phil at philsturgeon dot co dot uk Summary: Assign a variable to a property then list Status: Open Type: Bug Package: Reproducible crash PHP Version: 5.4.22 Block user comment: N Private report: N New Comment: Here is the failing script running on 3v4l: http://3v4l.org/q9clC It is worth noting that when I split the assignment onto two lines and assign $box to $this->box first it works fine: http://3v4l.org/fHan2 Previous Comments: ------------------------------------------------------------------------ [2013-11-26 19:01:34] phil at philsturgeon dot co dot uk 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 this bug report at https://bugs.php.net/bug.php?id=66181&edit=1

« previous php.bugs (#182948) next »