php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46000 Could not find "Zend/Session.php" in Zend Framework
Submitted: 2008-09-05 07:04 UTC Modified: 2009-02-19 01:00 UTC
From: ckl at ecw dot de Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 5.3.0alpha2 OS: Windows XP SP 3
Private report: No CVE-ID: None
 [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"

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-09-05 13:44 UTC] derick@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.
 [2008-09-08 09:53 UTC] ckl at ecw dot de
<?php
function __autoload($clazzName)
{
    Zend_Loader::loadClass($clazzName);
}

define('ROOT_DIR', dirname(dirname(__FILE__)));

Zend_Session::start(); // <<< fails.
?>
 [2008-09-15 00:43 UTC] johannes@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.

Sorry, I have no clue about Zend Framework, please try to reduce the framework to the relevent parts or ask the Framework developers for assistance.
 [2008-09-22 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2009-02-11 21:26 UTC] felipe@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2009-02-19 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 15:01:29 2024 UTC