Re: PHP 4.0 Bug #9312 Updated: php -l causes segmentation fault
| From: | Cynic | Date: | Sat, 17 Feb 2001 23:14:12 +0000 |
| Subject: | Re: PHP 4.0 Bug #9312 Updated: php -l causes segmentation fault | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-46810@lists.php.net to get a copy of this message | ||
I don't know. Must've been a mistake. Sorry, and thanks for
pointing it out.
At 13:44 17.2. 2001, Derick Rethans wrote the following:
--------------------------------------------------------------
>On 17 Feb 2001 cynic@php.net wrote:
>
>> ID: 9312
>> Updated by: cynic
>> Reported By: php@toowards.com
>> Old-Status: Open
>> Status: Bogus
>> Bug Type: Reproduceable crash
>
>Why is this bug bogus?
>
>>
>>
>>
>> Previous Comments:
>> ---------------------------------------------------------------------------
>>
>> [2001-02-16 21:47:40] php@toowards.com
>> Running "php -l test.php" on a script with a parse error
>> causes a segmentation fault.
>>
>> test.php:
>> <?php
>>
>> $test = "parse error here"
>> print $test;
>>
>> ?>
>>
>> backtrace:
>> #0 0x80d7564 in destroy_op_array (op_array=0x0) at
>> zend_opcode.c:143
>> #1 0x8064c78 in php_lint_script (file=0xbffffc54) at
>> main.c:1228
>> #2 0x80635a9 in main (argc=3, argv=0xbffffcb4) at
>> cgi_main.c:718
>>
>> One fix is to patch main/main.c (v 1.322) at line 1228
>> if( op_array ) {
>> destroy_op_array(op_array);
>> }
>>
>> (I tried this and now lint is happy)
>>
>> A better solution is probably to fix zend_opcode.c though.
>> Tim
>
>Derick Rethans
>
>---------------------------------------------------------------------
> PHP: Scripting the Web - www.php.net - derick@php.net
>---------------------------------------------------------------------
------end of quote------
____________________________________________________________
Cynic:
A member of a group of ancient Greek philosophers who taught
that virtue constitutes happiness and that self control is
the essential part of virtue.
cynic@mail.cz