php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14764 Apache Error when calling enclosed function
Submitted: 2001-12-30 05:30 UTC Modified: 2002-06-01 13:54 UTC
From: piem at altern dot org Assigned:
Status: Not a bug Package: Apache related
PHP Version: 4.0.6 OS: Win XP
Private report: No CVE-ID: None
 [2001-12-30 05:30 UTC] piem at altern dot org
//Config :Apache/1.3.22 (Win32) PHP/4.0.8-dev
//function to extract variables in path
function debug_var_in_path(){
  return "PATH_TRANSLATED : $PATH_TRANSLATED<br/>
  PHP_SELF        : $PHP_SELF<br/>
  ASKED           : ".ereg_replace(basename($PHP_SELF),"",basename($PATH_TRANSLATED))."<br/>";
}

//echo debug_var_in_path();
/* Uncomment this line causes Apache say 
instruction at '0x0072688c' referenced memory at '0xffffffff'. The mem could not be read.
Running as a service, Apache won't be kill though,
but produce 1 to 3 times the same error. */
echo "PATH_TRANSLATED : $PATH_TRANSLATED<br/>
  PHP_SELF        : $PHP_SELF<br/>
  ASKED           : ".ereg_replace(basename($PHP_SELF),"",basename($PATH_TRANSLATED))."<br/>";

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-01 13:54 UTC] edink@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately your version of PHP is too old -- the problem
might already be fixed. Please download a new PHP
version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 14:01:28 2025 UTC