#26487 [NEW]: crash on := assign to a non-existent array element
From: friosa at pnpitalia dot it
Operating system: athlon suse linux 9
PHP version: 5.0.0b2 (beta2)
PHP Bug Type: Reproducible crash
Bug description: crash on := assign to a non-existent array element
Description:
------------
crash on := assign to a non-existent array element
php 5.00 (beta2)
php 5.00 (200311291630)
hope that the example i easy enough, i'm not in condition now to put here
a back trace sorry :( i will try it later.
./configure
--prefix=/usr/local
--with-config-file-path=/etc/php5.ini
--disable-posix
--disable-session
--disable-tokenizer
--without-sqlite
--disable-cgi
--disable-shared
--enable-shared=no
--with-mysql
--with-mysql-sock=/var/lib/mysql/mysql.sock
--with-informix=/opt/informix
--with-libxml-dir=/pnp
--with-dom=/pnp
--with-dom-xslt=/pnp
--with-dom-exslt=/pnp
--enable-simplexml
--enable-pcntl
--enable-sigchild
--enable-mime-magic
--with-gnu-ld
--with-pcre-regex
--enable-ftp
[PHP Modules]
ctype
dom
ftp
informix
libxml
mysql
pcntl
pcre
simplexml
standard
xml
[Zend Modules]
Reproduce code:
---------------
#! /usr/local/bin/php
# try.php
<?php
$ar = array();
$ar[0] .= "pluto";
?>
./try.php
Segmentation fault
Expected result:
----------------
$ar[0] == "pluto";
OR
an error displayed
--
Edit bug report at http://bugs.php.net/?id=26487&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26487&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26487&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26487&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26487&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26487&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=26487&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=26487&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26487&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26487&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26487&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26487&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26487&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26487&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26487&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26487&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26487&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26487&r=float
Thread (17 messages)
- friosa at pnpitalia dot it
- sniper@php.net#26487 [Opn->Fbk]: crash on .= assign to a non-existent array element
- friosa at pnpitalia dot it#26487 [Fbk->Opn]: crash on .= assign to a non-existent array element
- sniper@php.net#26487 [Opn->Fbk]: crash on .= assign to a non-existent array element
- friosa at pnpitalia dot it#26487 [Fbk->Opn]: crash on .= assign to a non-existent array element
- sniper@php.net#26487 [Opn->Fbk]: crash on .= assign to a non-existent array element
- friosa at pnpitalia dot it#26487 [Fbk->Opn]: crash on .= assign to a non-existent array element
- sniper@php.net#26487 [Opn->Fbk]: crash on .= assign to a non-existent array element
- friosa at pnpitalia dot it#26487 [Fbk->Opn]: crash on .= assign to a non-existent array element
- sniper@php.net#26487 [Opn->Fbk]: crash on .= assign to a non-existent array element
- friosa at pnpitalia dot it#26487 [Fbk->Opn]: crash on .= assign to a non-existent array element
- sniper@php.net#26487 [Opn->Fbk]: crash on .= assign to a non-existent array element
- friosa at pnpitalia dot it#26487 [Fbk->Opn]: crash on .= assign to a non-existent array element
- friosa at pnpitalia dot it#26487 [Opn]: crash on .= assign to a non-existent array element
- sniper@php.net#26487 [Opn->Bgs]: crash on .= assign to a non-existent array element
- friosa at pnpitalia dot it#26487 [Bgs]: crash on .= assign to a non-existent array element
- derick@php.net#26487 [Bgs]: crash on .= assign to a non-existent array element