Bug #66302 [Opn->Dup]: SegFault on list() assignment with class variable multiple assignment

From: Date: Mon, 16 Dec 2013 16:59:40 +0000
Subject: Bug #66302 [Opn->Dup]: SegFault on list() assignment with class variable multiple assignment
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-183360@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66302&edit=1 ID: 66302 Updated by: bwoebi@php.net Reported by: php at dynamicplus dot it Summary: SegFault on list() assignment with class variable multiple assignment -Status: Open +Status: Duplicate Type: Bug Package: Reproducible crash PHP Version: 5.5.7 Block user comment: N Private report: N New Comment: Duplicate of #65969 (Should be fixed in master and next php 5.4.* or php 5.5.*) Previous Comments: ------------------------------------------------------------------------ [2013-12-16 15:31:21] php at dynamicplus dot it Description: ------------ php -n test.php Segmentation fault php -n -v PHP 5.5.7 (cli) (built: Dec 16 2013 15:06:06) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies php -n -m [PHP Modules] bcmath calendar Core ctype curl date dom ereg exif fileinfo filter gd hash iconv json libxml mbstring mcrypt mhash mysql mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql posix Reflection session SimpleXML sockets SPL standard tidy tokenizer xml xmlrpc xmlwriter xsl zip zlib [Zend Modules] Test script: --------------- <?php class SegFault { public $aClassVariable = NULL; public function __construct( ) { list( $aVariable ) = $this->aClassVariable = array( NULL ); } } new SegFault( ); Actual result: -------------- php -n test.php Segmentation fault This runs on PHP 5.3 From PHP >5.3 crashes. <?php class NoSegFault { public $aClassVariable = NULL; public function __construct( ) { $this->aClassVariable = array( NULL ); list( $aVariable ) = $this->aClassVariable; } } new NoSegFault( ); ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=66302&edit=1

« previous php.bugs (#183360) next »