[PHP-DEV] PHP 4.0 Bug #9312 Updated: php -l causes segmentation fault

2001-02-17 Thread cynic

ID: 9312
Updated by: cynic
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: Reproduceable crash
Assigned To: 
Comments:



Previous Comments:
---

[2001-02-16 21:47:40] [EMAIL PROTECTED]
Running "php -l test.php" on a script with a parse error
causes a segmentation fault.

test.php:


backtrace:
#0  0x80d7564 in destroy_op_array (op_array=0x0) at
zend_opcode.c:143
#1  0x8064c78 in php_lint_script (file=0xbc54) at
main.c:1228
#2  0x80635a9 in main (argc=3, argv=0xbcb4) 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


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9312&edit=2


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] PHP 4.0 Bug #9312 Updated: php -l causes segmentation fault

2001-02-17 Thread Cynic

O hell, sure it's bogus. It's #9311 sent second time. 
Obviously a reload thing.


At 00:14 18.2. 2001, Cynic wrote the following:
-- 
>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 [EMAIL PROTECTED] wrote:
>>
>>> ID: 9312
>>> Updated by: cynic
>>> Reported By: [EMAIL PROTECTED]
>>> Old-Status: Open
>>> Status: Bogus
>>> Bug Type: Reproduceable crash
>>
>>Why is this bug bogus?
>>
>>>
>>>
>>>
>>> Previous Comments:
>>> ---
>>>
>>> [2001-02-16 21:47:40] [EMAIL PROTECTED]
>>> Running "php -l test.php" on a script with a parse error
>>> causes a segmentation fault.
>>>
>>> test.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=0xbc54) at
>>> main.c:1228
>>> #2  0x80635a9 in main (argc=3, argv=0xbcb4) 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 - [EMAIL PROTECTED]
>>-
>--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.
>
>[EMAIL PROTECTED]
>
>
>
>-- 
>PHP Development Mailing List 
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
--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.

[EMAIL PROTECTED]



-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] PHP 4.0 Bug #9312 Updated: php -l causes segmentation fault

2001-02-17 Thread Cynic

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 [EMAIL PROTECTED] wrote:
>
>> ID: 9312
>> Updated by: cynic
>> Reported By: [EMAIL PROTECTED]
>> Old-Status: Open
>> Status: Bogus
>> Bug Type: Reproduceable crash
>
>Why is this bug bogus?
>
>>
>>
>>
>> Previous Comments:
>> ---
>>
>> [2001-02-16 21:47:40] [EMAIL PROTECTED]
>> Running "php -l test.php" on a script with a parse error
>> causes a segmentation fault.
>>
>> test.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=0xbc54) at
>> main.c:1228
>> #2  0x80635a9 in main (argc=3, argv=0xbcb4) 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 - [EMAIL PROTECTED]
>-
--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.

[EMAIL PROTECTED]



-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9312 Updated: php -l causes segmentation fault

2001-02-17 Thread cynic

ID: 9312
Updated by: cynic
Reported By: [EMAIL PROTECTED]
Old-Status: Bogus
Status: Open
Bug Type: Reproduceable crash
Assigned To: 
Comments:



Previous Comments:
---

[2001-02-16 21:47:40] [EMAIL PROTECTED]
Running "php -l test.php" on a script with a parse error
causes a segmentation fault.

test.php:


backtrace:
#0  0x80d7564 in destroy_op_array (op_array=0x0) at
zend_opcode.c:143
#1  0x8064c78 in php_lint_script (file=0xbc54) at
main.c:1228
#2  0x80635a9 in main (argc=3, argv=0xbcb4) 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


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9312&edit=2


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9312 Updated: php -l causes segmentation fault

2001-02-16 Thread cynic

ID: 9312
Updated by: cynic
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: Reproduceable crash
Assigned To: 
Comments:



Previous Comments:
---

[2001-02-16 21:47:40] [EMAIL PROTECTED]
Running "php -l test.php" on a script with a parse error
causes a segmentation fault.

test.php:


backtrace:
#0  0x80d7564 in destroy_op_array (op_array=0x0) at
zend_opcode.c:143
#1  0x8064c78 in php_lint_script (file=0xbc54) at
main.c:1228
#2  0x80635a9 in main (argc=3, argv=0xbcb4) 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


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9312&edit=2


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]