php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2070 Crash in zval_dtor() with a class declaration in an if clause
Submitted: 1999-08-16 11:30 UTC Modified: 1999-08-17 17:36 UTC
From: christophe dot massiot at mail dot dotcom dot fr Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0 Latest CVS (16/08/1999) OS: Linux 2.0.36/Debian slink
Private report: No CVE-ID: None
 [1999-08-16 11:30 UTC] christophe dot massiot at mail dot dotcom dot fr
The following files :

17:01 [webase3:p3] titi:~/html% cat test.php
<?
  include("testinc.php");
?>
17:01 [webase3:p3] titi:~/html% cat testinc.php 
<?
if (TRUE) {
class toto { }
}
?>

produce when you execute the first one :

Program received signal SIGSEGV, Segmentation fault.
zval_dtor (zvalue=0xc1e78da8) at zend_variables.c:56
56              if (zvalue->type==IS_LONG) {
(gdb) bt
#0  zval_dtor (zvalue=0xc1e78da8) at zend_variables.c:56
#1  0x80750ea in execute (op_array=0x80ee508) at zend_execute.c:1893
#2  0x8056dcc in php_execute_script (primary_file=0xbffff948) at main.c:1133
#3  0x805c6a1 in main (argc=2, argv=0xbffff9b8) at cgi_main.c:448

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-08-17 17:36 UTC] zeev at cvs dot php dot net
fixed - thanks!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 02 06:01:28 2024 UTC