Upgrade Issue
| From: | Php Questions | Date: | Thu, 04 Oct 2001 22:48:29 +0000 |
| Subject: | Upgrade Issue | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-69992@lists.php.net to get a copy of this message | ||
Today, I upgraded our development web server from PHP 4.02 to 4.06.
the exact configure string was:
./configure --with-apxs=/usr/sbin/apxs --with-mysql=/usr --with-mcrypt=/usr/local/lib
--enable-versioning --with-ldap=/usr/local
None of the support files (apache, mysql, mcrypt, openldap) were changed only the php tarball from
their website.
Now I have this interesting problem:
the source:
<?
require("templates/virt_cust.inc") or error("Fatal Error");
produces this error message:
Fatal error: Failed opening required '1' (include_path='.:/usr/local/lib/php')
in
/home/httpd/html/distsupp/templates/virt_cust_form.php on line 2
The file is there and it works fine when I remove the "or error(..." code from the end of
line 2.
It appears that adding this code causes require() to interpret the file name as a boolean TRUE.
This problem did not happen with 4.02.
Does anyone know of a configuration option or anything I can correct to make this syntax work again
with 4.06?