php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5312 include() with .php3 extentions causes segfault
Submitted: 2000-07-01 17:28 UTC Modified: 2000-07-18 10:05 UTC
From: ponytail at online dot no Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0.0 OS: Linux RedHat 6.2
Private report: No CVE-ID: None
 [2000-07-01 17:28 UTC] ponytail at online dot no
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.
	

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-04 11:13 UTC] stas at cvs dot php dot net
Failed to reproduce. Does it still happen with latest version?
 [2000-07-04 11:39 UTC] ponytail at online dot no
Yes, I am anxiously awaiting the next release, but for now I have reinstalled 3.0.15. I am running a business and cannot rely on the developement version
 [2000-07-04 11:56 UTC] stas at cvs dot php dot net
4.0.1pl2 is a release version. You won't get more "release" than this.

 [2000-07-18 10:05 UTC] stas at cvs dot php dot net
no user feedback
 [2010-10-21 15:23 UTC] pierrick@php.net
Automatic comment from SVN on behalf of pierrick
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=304587
Log: Fixed bug #5312
 [2020-12-30 12:49 UTC] nikic@php.net
Automatic comment on behalf of pierrick
Revision: http://git.php.net/?p=doc/fr.git;a=commit;h=6da6ee349d07131b33db66de6655e935077c0d15
Log: Fixed bug #5312
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 23:00:02 2026 UTC