|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37151 Can't use class::method to call php functions from within XSLT templates
Submitted: 2006-04-20 22:20 UTC Modified: 2006-04-21 05:01 UTC
From: glan at gotsubstance dot co dot uk Assigned:
Status: Not a bug Package: XSLT related
PHP Version: 5.1.2 OS: All
Private report: No CVE-ID: None
 [2006-04-20 22:20 UTC] glan at gotsubstance dot co dot uk
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;


The funtion is fired off as a static and as such acts like a 
function in the global namespace." from [

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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-20 22:51 UTC]
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.

 [2006-04-21 05:01 UTC]
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

I assume, this is a duplicate of #37091
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun May 16 16:01:23 2021 UTC