Bug #52406 [Opn->Bgs]: spl_autoload support phar with namespace
| From: | felipe@php.net | Date: | Wed, 16 Nov 2011 14:29:31 +0000 |
| Subject: | Bug #52406 [Opn->Bgs]: spl_autoload support phar with namespace | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-165252@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=52406&edit=1
ID: 52406
Updated by: felipe@php.net
Reported by: jinmoku at hotmail dot com
Summary: spl_autoload support phar with namespace
-Status: Open
+Status: Bogus
Type: Bug
Package: PHAR related
Operating System: XP, OSX
PHP Version: 5.3.3
Block user comment: N
Private report: N
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Previous Comments:
------------------------------------------------------------------------
[2011-10-28 16:58:10] ralph at ralphschindler dot com
This is not an issue, spl_autoload() is working as described, and furthermore,
this is not a PHAR issue.
Can someone close?
-ralph
------------------------------------------------------------------------
[2011-02-10 21:50:16] jinmoku at hotmail dot com
it's more a PHAR problem
------------------------------------------------------------------------
[2011-02-10 21:49:24] jinmoku at hotmail dot com
Add detect_unicode to off for OSX :
ini_set('detect_unicode', false);
I think all the files should be automatically put in lowercase.
------------------------------------------------------------------------
[2011-02-09 10:37:10] jinmoku at hotmail dot com
Only way to work :
$phar->addFromString(strtolower('index.php'), $index);
$phar->addFromString(strtolower('Framework/Test.php'), $contents);
or maybe do it in internal
------------------------------------------------------------------------
[2010-07-23 11:11:51] jinmoku at hotmail dot com
Ok, I retry on XP and it's work, even if it isn't simple, a filename in project is not
always in lowercase...
Unfortunately it's doesn't work on osx, we see : set_include_path('phar://' .
__FILE__ . PATH_SEPARATOR . get_include_path());
but after the require_once the phar path's gone, i'll check on other system and I come
back
;)
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=52406
--
Edit this bug report at https://bugs.php.net/bug.php?id=52406&edit=1