Bug #66302 [NEW]: SegFault on list() assignment with class variable multiple assignment
| From: | php at dynamicplus dot it | Date: | Mon, 16 Dec 2013 15:31:22 +0000 |
| Subject: | Bug #66302 [NEW]: SegFault on list() assignment with class variable multiple assignment | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-183358@lists.php.net to get a copy of this message | ||
From: php at dynamicplus dot it
Operating system:
PHP version: 5.5.7
Package: Reproducible crash
Bug Type: Bug
Bug description:SegFault on list() assignment with class variable multiple assignment
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 bug report at https://bugs.php.net/bug.php?id=66302&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66302&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66302&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66302&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=66302&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=66302&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=66302&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=66302&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=66302&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=66302&r=support
Expected behavior: https://bugs.php.net/fix.php?id=66302&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=66302&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=66302&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=66302&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66302&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=66302&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=66302&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=66302&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=66302&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=66302&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=66302&r=mysqlcfg