Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003103 [Quercus] major always 11-28-08 19:08 12-07-08 17:03
Reporter koreth View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 4.0.0 Product Version 3.2.1
  Product Build
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.
Attached Files

- Relationships

- Notes
(0003581)
ferg
12-07-08 17:03

php/3716
 

- Issue History
Date Modified Username Field Change
11-28-08 19:08 koreth New Issue
12-07-08 17:03 ferg Note Added: 0003581
12-07-08 17:03 ferg Assigned To  => ferg
12-07-08 17:03 ferg Status new => closed
12-07-08 17:03 ferg Resolution open => fixed
12-07-08 17:03 ferg Fixed in Version  => 4.0.0


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker