Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
3103 | major | always | 11-28-08 19:08 | 12-07-08 17:03 | |
|
|||||
Reporter: | koreth | Platform: | |||
Assigned To: | ferg | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 3.2.1 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 4.0.0 | ||
|
|||||
Summary: | 0003103: func_get_args() NPE in compiled mode | ||||
Description: |
<?php function foo($x) { $args = func_get_args(); } foo(1,2,3,4); In interpreted mode, this executes. In compiled mode, I get an NPE: [18:58:44.012] {http--8080-8} java.lang.NullPointerException [18:58:44.012] {http--8080-8} at com.caucho.quercus.lib.FunctionModule.func_get_args(FunctionModule.java:141) [18:58:44.012] {http--8080-8} at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [18:58:44.012] {http--8080-8} at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [18:58:44.012] {http--8080-8} at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [18:58:44.012] {http--8080-8} at java.lang.reflect.Method.invoke(Method.java:597) [18:58:44.012] {http--8080-8} at com.caucho.quercus.module.StaticFunction.invoke(StaticFunction.java:129) [18:58:44.012] {http--8080-8} at com.caucho.quercus.env.JavaInvoker.callMethod(JavaInvoker.java:618) [18:58:44.012] {http--8080-8} at com.caucho.quercus.env.AbstractJavaMethod.call(AbstractJavaMethod.java:148) [18:58:44.012] {http--8080-8} at _quercus._test._args__php$fun_foo_0.call(_args__php.java:65) [18:58:44.012] {http--8080-8} at com.caucho.quercus.program.CompiledFunction_1.call(CompiledFunction_1.java:87) [18:58:44.012] {http--8080-8} at com.caucho.quercus.program.AbstractFunction.call(AbstractFunction.java:404) [18:58:44.012] {http--8080-8} at com.caucho.quercus.program.CompiledFunction.callRef(CompiledFunction.java:71) [18:58:44.012] {http--8080-8} at _quercus._test._args__php.execute(_args__php.java:43) |
||||
Steps To Reproduce: | |||||
Additional Information: | Running the latest code from svn. | ||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|