ID: 32967
User updated by: oskar-phpbug at eyb dot de
Reported By: oskar-phpbug at eyb dot de
Status: Open
Bug Type: *General Issues
Operating System: FreeBSD 5.3
PHP Version: 5.0.4
New Comment:
aehm.. phpinfo() says:
Zend Extension 220040412
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.0.4-dev, Copyright (c) 1998-2004 Zend Technologies
> And please check that you don't have any of > zend_extension's loaded.
How I can check this? And, how can I test it with the CLI?
Previous Comments:
------------------------------------------------------------------------
[2005-05-18 21:58:26] oskar-phpbug at eyb dot de
SAPI [ php_sapi_name() ] is "apache" (mod_php)
I've currently the following extensions loaded (no zend..)
extension=bcmath.so
extension=bz2.so
extension=ctype.so
extension=curl.so
extension=dom.so
extension=exif.so
extension=ftp.so
extension=gd.so
extension=gettext.so
extension=iconv.so
extension=imagick.so
extension=imap.so
extension=ldap.so
extension=mbstring.so
extension=mcrypt.so
extension=mcve.so
extension=mhash.so
extension=ming.so
extension=mysql.so
extension=openssl.so
extension=pcre.so
extension=pdf.so
extension=pgsql.so
extension=posix.so
extension=readline.so
extension=session.so
extension=simplexml.so
extension=sqlite.so
extension=tokenizer.so
extension=wddx.so
extension=xmlrpc.so
extension=zlib.so
------------------------------------------------------------------------
[2005-05-18 20:10:53] tony2001@php.net
And please check that you don't have any of zend_extension's loaded.
------------------------------------------------------------------------
[2005-05-18 17:18:19] tony2001@php.net
What SAPI are you using?
Does it work with CLI ?
------------------------------------------------------------------------
[2005-05-06 18:02:15] oskar-phpbug at eyb dot de
Description:
------------
It seems a never fixed problem with __FILE__
It looks like this description:
http://bugs.php.net/bug.php?id=13936
After I updatetd because this bug from PHP 4.3.11 to 5.0.4,
unfortunately, there is the same problem.
I would be very grateful if this can be fixed now.
Reproduce code:
---------------
In install/steps/SystemChecksStep.class of the Gallery2 - Distribution
there is the following code of interest:
function CheckFileDirective() {
if (strstr(__FILE__, 'install/steps/SystemChecksStep.class') ||
strstr(__FILE__, '\\install\\steps\\SystemChecksStep.class')) {
return true;
} else {
return false;
}
}
Expected result:
----------------
__FILE__ should return the full path, that is the absolute path, of the
file where it's called in.
__FILE__ returning a relative path is a known php problem and should
have been fixed by now.
it seems that PHP couldn't fix it for all system, i.e. obviously it
doesn't work on your freebsd machine.
Actual result:
--------------
If I write above the if (...)
die('__FILE__ = ' . __FILE__);
then in the browser appears
__FILE__ = ./steps/SystemChecksStep.class
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32967&edit=1