ID: 44024 Updated by: [EMAIL PROTECTED] Reported By: locutus dot unimatrix01 at gmail dot com -Status: Open +Status: Bogus Bug Type: XSLT related Operating System: ubuntu 7.10 PHP Version: 5.2CVS-2008-02-02 (snap) 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 only functions and static methods can be called Previous Comments: ------------------------------------------------------------------------ [2008-02-02 13:31:21] locutus dot unimatrix01 at gmail dot com Description: ------------ $ php -v PHP 5.2.3-1ubuntu6.3 (cli) (built: Jan 10 2008 09:38:41) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies Using XSLTProcessor::registerPHPFunctions(), i can call static methods, but not normal ones. In the source linked with my bug report i made two version of the call to the normal method, one with '>' and one with '>', that's because i'm not really sure how xslt handle special chars in attributes. You may need to know that this code is actually executed in a php script i'm writing as an apache handler for an xml document i use as a website template, here is the relevant part of my virtual host: Alias /uis /usr/share/uis/ Action uis-processor /uis/uis.php AddHandler uis-processor .uis DirectoryIndex index.uis Reproduce code: --------------- You can get the code at this url: http://daffy.vuegate.net/php/register_php_functions.phps Expected result: ---------------- This is the static method. This is the normal method. This is the normal method. Actual result: -------------- Warning: XSLTProcessor::transformToXml() [function.XSLTProcessor-transformToXml]: Unable to call handler $test_instance->normal_method() in /usr/share/uis/uis.php on line 56 Warning: XSLTProcessor::transformToXml() [function.XSLTProcessor-transformToXml]: xmlXPathCompiledEval: evaluation failed in /usr/share/uis/uis.php on line 56 Warning: XSLTProcessor::transformToXml() [function.XSLTProcessor-transformToXml]: runtime error: file /usr/share/uis/ line 21 element value-of in /usr/share/uis/uis.php on line 56 Warning: XSLTProcessor::transformToXml() [function.XSLTProcessor-transformToXml]: XPath evaluation returned no result. in /usr/share/uis/uis.php on line 56 This is the static method. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=44024&edit=1