Bug #68451 [Com]: about __autoload on php 5.4.33
| From: | reginx at qq dot com | Date: | Sun, 23 Nov 2014 05:33:36 +0000 |
| Subject: | Bug #68451 [Com]: about __autoload on php 5.4.33 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-188752@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=68451&edit=1
ID: 68451
Comment by: reginx at qq dot com
Reported by: reginx at qq dot com
Summary: about __autoload on php 5.4.33
Status: Not a bug
Type: Bug
Package: SPL related
Operating System: win7
PHP Version: 5.4.35
Block user comment: N
Private report: N
New Comment:
thanks !
Previous Comments:
------------------------------------------------------------------------
[2014-11-19 17:43:50] requinix@php.net
As of 5.4.24 and 5.5.8, class loading was modified to first check for invalid class names before
trying to call the autoloader.
http://3v4l.org/rWIFp
It's listed as "Added validation of class names in the autoload process" in the
changelog.
http://php.net/ChangeLog-5.php
------------------------------------------------------------------------
[2014-11-19 15:18:45] reginx at qq dot com
Description:
------------
about __autoload on php 5.4.33, it's a bug?
Test script:
---------------
<?php
function __autoload ($class) {
exit ("class " . $class . PHP_EOL);
}
// output class foo-
// it works on php 5.3
// but doesn't works on php 5.4
$class = 'foo-';
new $class();
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=68451&edit=1