PHP 4.0 Bug #3379: split function bug
| From: | dobromir at antipodes-media dot com | Date: | Tue, 01 Feb 2000 20:11:59 +0000 |
| Subject: | PHP 4.0 Bug #3379: split function bug | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-15132@lists.php.net to get a copy of this message | ||
From: dobromir@antipodes-media.com
Operating system: Intel Solaris 7
PHP version: 4.0 Beta 3
PHP Bug Type: Scripting Engine problem
Bug description: split function bug
I use a very simple code for directory listing:
<pre>
<?
$list =
ls 1;
$array = split(\n, $list);
unset( $array[count($array)-1] );
var_dump($array);
?>
</pre>
It worked very well with PHP 3.0.13 and Apache 1.3.9 but when I began to compile my Apache with PHP
4.0 it stopped working and the server log file is full with :
FATAL: emalloc(): Unable to allocate -134922475 bytes
[Tue Feb 1 21:16:10 2000] [notice] child pid 8676 exit signal Segmentation Fault (11)
If I use explode instead of split the script works as it used to work with PHP 3.0.13.