|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2008-09-05 07:04 UTC] ckl at ecw dot de
Description:
------------
My ZF application crashes, because "Zend/Session.php" could not be located.
I assume this is not a ZF specific issue as the same Script already worked with PHP 5.2.6.
There might (!) be a problem with the interpreter recognizing files with the word "namespace" in file-, class- or function name.
Some information about the code:
* Zend_Session || Zend/Session.php *is* included
* require_once 'Zend/Session/Abstract.php' is included and throws no error (Zend/Session.php line 32)
* require_once 'Zend/Session/Namespace.php' fails. The file is *not* included
As I already mentioned, this code worked in PHP 5.2.6 and I don't think that this is a problem of Zend Framwork.
Reproduce code:
---------------
function __autoload($clazzName)
{
Zend_Loader::loadClass($clazzName);
}
define('ROOT_DIR', dirname(dirname(__FILE__)));
// ...
// some trivial code that worked
// ...
Zend_Session::start();
Expected result:
----------------
I expected a working code...
Actual result:
--------------
"Could not find class Zend_Session in ... at line 0"
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 08 11:00:01 2025 UTC |
<?php function __autoload($clazzName) { Zend_Loader::loadClass($clazzName); } define('ROOT_DIR', dirname(dirname(__FILE__))); Zend_Session::start(); // <<< fails. ?>