| Anonymous | Login | Signup for a new account | 10-30-2025 12:51 PDT |
| Main | My View | View Issues | Change Log | Docs |
| Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ Issue History ] [ Print ] | ||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
| 0002836 | [Quercus] | minor | always | 08-12-08 07:42 | 08-12-08 14:53 | ||||
| Reporter | wikipo | View Status | public | ||||||
| Assigned To | ferg | ||||||||
| Priority | normal | Resolution | fixed | Platform | |||||
| Status | closed | OS | |||||||
| Projection | none | OS Version | |||||||
| ETA | none | Fixed in Version | 3.2.1 | Product Version | 3.2.0 | ||||
| Product Build | |||||||||
| Summary | 0002836: call_user_func and class method | ||||||||
| Description |
call_user_func does not find the method to call if the syntax is: class_name::method_name For example: <?php $func = 'class_name::method_name'; call_user_func($func); ?> gives something like: 'class_name::method_name' not found. |
||||||||
| Steps To Reproduce | |||||||||
| Additional Information |
I have made a patch in Env.java/createCallback(), after: value = value.toValue(); added the following code: if (value instanceof StringValue) { String s = value.toString(); String[] cm = s.split("::"); if (cm != null && cm.length == 2) { value = new ArrayValueImpl(); value.put(new StringBuilderValue(cm[0])); value.put(new StringBuilderValue(cm[1])); } } Now it behaves correctly. |
||||||||
| Attached Files | |||||||||
|
|
|||||||||
| Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |