Bug #68451 [Opn->Nab]: about __autoload on php 5.4.33

From: Date: Wed, 19 Nov 2014 17:43:50 +0000
Subject: Bug #68451 [Opn->Nab]: about __autoload on php 5.4.33
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-188688@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 Updated by: requinix@php.net Reported by: reginx at qq dot com Summary: about __autoload on php 5.4.33 -Status: Open +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: 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 Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#188688) next »