#46000 [Opn->Fbk]: Could not find "Zend/Session.php" in Zend Framework

From: Date: Mon, 15 Sep 2008 00:43:56 +0000
Subject: #46000 [Opn->Fbk]: Could not find "Zend/Session.php" in Zend Framework
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-128967@lists.php.net to get a copy of this message
 ID:               46000
 Updated by:       johannes@php.net
 Reported By:      ckl at ecw dot de
-Status:           Open
+Status:           Feedback
 Bug Type:         Scripting Engine problem
 Operating System: Windows XP SP 3
 PHP Version:      5.3.0alpha2
 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------

[2008-09-08 09:53:43] 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-05 13:44:43] 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-05 07:04:41] 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"


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=46000&edit=1



Thread (5 messages)

« previous php.bugs (#128967) next »