PHP 4.0 Bug #5312: include() with .php3 extentions causes segfault
| From: | ponytail at online dot no | Date: | Sat, 01 Jul 2000 15:28:41 +0000 |
| Subject: | PHP 4.0 Bug #5312: include() with .php3 extentions causes segfault | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-23052@lists.php.net to get a copy of this message | ||
From: ponytail@online.no
Operating system: Linux RedHat 6.2
PHP version: 4.0.0
PHP Bug Type: Misbehaving function
Bug description: include() with .php3 extentions causes segfault
when i try to include pre written .php3 modules i get a zend error report as follows:
------------------------------------>
./zend_execute.c(374) : Block 0x081F8068 status:
zend_variables.c(62) : Actual location (location was relayed)
Beginning: OK (allocated on math.c:631, 313 bytes)
End: Overflown (magic=0x00000000 instead of 0x2A8FCC84)
At least 4 bytes overflown
---------------------------------------
[Fri Jun 30 16:59:39 2000] [notice] child pid 934 exit signal Segmentation fault (11)
-------------------------------------->
the code:
<?php
if($shopno==0):
$shopno="";
elseif($shopno==1):
$shopno="";
else:
$shopno=1;
endif;
#---Problem follows------>
$inc="prog_shop".$shopno.".php3";
include ("$inc");
?>
This script worked perfectly fine with php3.