|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38218 php:functionString tries to access objects with their names in lowercase
Submitted: 2006-07-26 08:47 UTC Modified: 2010-05-04 18:53 UTC
From: moksinski at gmail dot com Assigned: tony2001 (profile)
Status: Not a bug Package: XSLT related
PHP Version: 6CVS-2006-07-26 (snap) OS: windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: moksinski at gmail dot com
New email:
PHP Version: OS:


 [2006-07-26 08:47 UTC] moksinski at gmail dot com
php:functionString tries to access objects with their names in lowercase. when you use autoloader to include your classes it generates fatal error because it cannot find the proper php file.

Reproduce code:
<?php //FILE AutoLoaded.php 
class AutoLoaded { public static function printText($text) { return $text; }} 

<?php //FILE index.php
<xsl:stylesheet version="1.0" xmlns:xsl="" xmlns:php="" xsl:extension-element-prefixes="php">
<xsl:template match="xml"><xsl:value-of select="php:functionString('AutoLoaded::printText',@dummy)" disable-output-escaping="yes"/>
$xml='<xml dummy="everything is ok"/>';
function __autoload($className) {
    echo $className."\n";
    static $classes = array('AutoLoaded'=>'AutoLoaded.php');
$doc = new DOMDocument('1.0','utf-8'); $doc->loadxml($xml); $xslt = new DOMDocument(); $xslt->loadxml($xsl);
$proc = new XSLTProcessor(); $proc->registerPHPFunctions(); $proc->importStyleSheet($xslt);

Expected result:

Actual result:
Fatal error: require_once() [function.require]: Failed opening required ....


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-07-26 08:53 UTC]
Please try using this CVS snapshot:
For Windows:

 [2006-07-26 11:27 UTC] moksinski at gmail dot com
php6.0-win32-200607260830 generates the same error
php5.2-win32-200607261030 - works fine
 [2006-07-26 11:48 UTC]
zend_make_callable() does a lowercase in PHP 6, which it 
didn't before

don't know, which part has to be fixed for this...
 [2006-07-26 11:59 UTC]
Obviously, the engine is not completely ready for Unicode.
I'll take a look at it.
 [2010-05-04 18:53 UTC]
-Status: Assigned +Status: Bogus
 [2010-05-04 18:53 UTC]
No longer an issue with new trunk
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Apr 17 08:01:23 2021 UTC