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?


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to