From:
Operating system: Debian 6.0; Linux 3.0.0-2-686pae
PHP version: 5.4.0
Package: Directory function related
Bug Type: Bug
Bug description:Call to dirname() produces: PHP Fatal error: Call to undefined
function (null)
Description:
------------
After upgrading to php5.4 on my Debian (configured to "testing" sources for
apt)
none of my local website works.
After upgrade I used option "maintainer's version of php.ini" for all
php.ini files (apache, fpm, cli).
Version of Apache: 2.2.22
Here what I see in one of my error log files (Apaches's):
[Sun Mar 25 13:32:54 2012] [error] [client 127.0.0.1] PHP Fatal error:
Call to undefined function (null)() in /home/web/ccc/frontend/index.php on
line 4
Actually, this is regular Yii fremework's frontpage. Nothing was changed
and worked perfect before upgrade.
Test script:
---------------
1<?php
2
3 // change the following paths if necessary
4 $yii=dirname(__FILE__).'/../framework/yii.php';
5 $config=dirname(__FILE__).'/protected/config/main.php';
6
7 // remove the following lines when in production mode
8 defined('YII_DEBUG') or define('YII_DEBUG',true);
9 // specify how many levels of call stack should be shown in each
log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
Expected result:
----------------
dirname() must be called without error producing and should return full
path to the current file.
Actual result:
--------------
PHP Fatal error: Call to undefined function (null)() in
/home/web/ccc/frontend/index.php on line 4
--
Edit bug report at https://bugs.php.net/bug.php?id=61503&edit=1
--
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=61503&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=61503&r=trysnapshot53
Try a snapshot (trunk):
https://bugs.php.net/fix.php?id=61503&r=trysnapshottrunk
Fixed in SVN:
https://bugs.php.net/fix.php?id=61503&r=fixed
Fixed in SVN and need be documented:
https://bugs.php.net/fix.php?id=61503&r=needdocs
Fixed in release:
https://bugs.php.net/fix.php?id=61503&r=alreadyfixed
Need backtrace:
https://bugs.php.net/fix.php?id=61503&r=needtrace
Need Reproduce Script:
https://bugs.php.net/fix.php?id=61503&r=needscript
Try newer version:
https://bugs.php.net/fix.php?id=61503&r=oldversion
Not developer issue:
https://bugs.php.net/fix.php?id=61503&r=support
Expected behavior:
https://bugs.php.net/fix.php?id=61503&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=61503&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=61503&r=submittedtwice
register_globals:
https://bugs.php.net/fix.php?id=61503&r=globals
PHP 4 support discontinued:
https://bugs.php.net/fix.php?id=61503&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=61503&r=dst
IIS Stability:
https://bugs.php.net/fix.php?id=61503&r=isapi
Install GNU Sed:
https://bugs.php.net/fix.php?id=61503&r=gnused
Floating point limitations:
https://bugs.php.net/fix.php?id=61503&r=float
No Zend Extensions:
https://bugs.php.net/fix.php?id=61503&r=nozend
MySQL Configuration Error:
https://bugs.php.net/fix.php?id=61503&r=mysqlcfg