[PHP-DEV] Bug #332: php.cgi -e merge.php3p dumps core From: lynch <email protected>
Date: 04/29/98

From: lynch <email protected>
Operating system: Linux ruby.inet-images.com 2.0.33 #11 Sun Apr 19 14:20:02 EDT 1998 i686 unknown
PHP version: 3.0b6
PHP Bug Type: Reproduceable crash
Bug description:
I tried the pretokenizer on a lark with a huge (1200+ line) script:

[chatmus <email protected> www]$ /iiw/cgi-bin/chatmusic.com/php.cgi -e merge.php3p
Content-type: text/html

<HTML>
  <HEAD><TITLE>Merge Paul's data with Old data</TITLE></HEAD>
  <BODY>
    285 records to process. Each dot represents one record.<BR>
.<BR>
<br>
<b>Fatal error</b>: Call to unsupported or undefined function expg_freeresu() in <b>merge.php3p</b> on line <b>379</b><br>
Segmentation fault (core dumped)

The script, .php3p, .ini and core files are all available at:

http://chatmusic.com/bug/

They were originally up one level, but I copied them to /bug so I could mess with my merge script some more.

The only thing I might be doing that is at all rare would be to reuse a variable in a loop and free it each time... and that can't be that uncommon. I only say this since that is what it would be doing soon after emitting the .<BR> above.

You can check
http://chatmusic.com/cgi-bin/php.cgi/phpinfo.htm
for the compile info. I'd probably misreport it through ignorance anyway.