|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-12-01 08:53 UTC] friosa at pnpitalia dot it
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 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 22 23:00:01 2025 UTC |
Still the same result, I've tryed also something else .. I suggest the problem is with ".=" operator ./configure \ --enable-debug \ --prefix=/INSTALL/php_latest2 \ --with-config-file-path=/etc/php5.ini \ --disable-cgi \ make && make install ./bin/php try1.php <? $ar = array('a'); $ar[0] .= 'b'; ?> Segmentation fault (core dumped) ./bin/php try2.php ... still the same <? $ar = array('a'); $ar[0] = $ar[0] . 'b'; $ar[0] = 'ab'; echo "ok"; ?>