#37151 [NEW]: Can't use class::method to call php functions from within XSLT templates
| From: | glan at gotsubstance dot co dot uk | Date: | Thu, 20 Apr 2006 22:20:22 +0000 |
| Subject: | #37151 [NEW]: Can't use class::method to call php functions from within XSLT templates | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-96052@lists.php.net to get a copy of this message | ||
From: glan at gotsubstance dot co dot uk
Operating system: All
PHP version: 5.1.2
PHP Bug Type: XSLT related
Bug description: Can't use class::method to call php functions from within XSLT templates
Description:
------------
After registerPHPFunctions in XSLT, you can't use the scope
resolution operator (::) to call a method within a class.
I.e. (this used to work <5.1.2):
"If you wish to use a function from inside a class use the
double colon (::) notation, for example;
php:functionString('classname::function')
The funtion is fired off as a static and as such acts like a
function in the global namespace." from [http://fr.php.net/
manual/en/function.xsl-xsltprocessor-register-php-
functions.php]
This no longer works and will throw the following error
Unable to call handler classname::function
I'm not sure what the real value of this functionality was
anyway and have worked around this in my code, but it was
avalible in previous versions.
--
Edit bug report at http://bugs.php.net/?id=37151&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37151&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=37151&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37151&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37151&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=37151&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37151&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37151&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37151&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37151&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37151&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=37151&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=37151&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37151&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37151&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37151&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37151&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37151&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37151&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37151&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37151&r=mysqlcfg