|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-09-08 10:24 UTC] fillmore at NRCan dot gc dot ca
Some PHP scripts that worked fine in 4.2.2 now fail in 4.2.3 with a message:
"Fatal error: Call to undefined function: requireversion() in /home1/fast1/WWW-data/ess/_ess.php on line 11"
The file _ess.php is included in the main file index_e.php as follows:
require_once("_ess.php");
The "requireversion" function is defined in the file _lib.php, which is included
in the file _ess.php as follows:
if(file_exists("_lib.php")){
require_once("_lib.php");
}
//this requires version 4.2+
requireversion('4.2');
We are using the NSAPI (iPlanet 4.x) version of PHP.
Thanks,
Bob Fillmore
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 02:00:01 2025 UTC |
Sounds like a dup of #19287 (file_exists fails). Can you amend your script like this: if(file_exists("_lib.php")){ require_once("_lib.php"); } else { trigger_error("_lib.php does not exist!"); }