Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002688 [Quercus] minor always 05-22-08 07:44 05-22-08 09:58
Reporter rikus View Status public  
Assigned To nam
Priority normal Resolution fixed  
Status closed   Product Version 3.1.6
Summary 0002688: Type casting fails.
Description The following will fail:

<?

 $value = "testing a string";

 $stringName = (String)$value;
 
 echo $stringName;
?>

with the following result:

500 Servlet Exception


[show] /path_to_file/test.php:5: expected
';' at '$' in
test.php:4:
test.php:5: $stringName = (String)$value;
test.php:6:


Additional Information Full error output:
javax.servlet.ServletException: com.caucho.quercus.parser.QuercusParseException:
/path_to_file/test.php:5: expected
';' at '$' in
test.php:4:
test.php:5: $stringName = (String)$value;
test.php:6:
    at com.caucho.quercus.servlet.ResinQuercusServlet.service(ResinQuercusServlet.java:216)
    at com.caucho.quercus.servlet.QuercusServlet.service(QuercusServlet.java:355)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:91)
    at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:103)
    at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:187)
    at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:266)
    at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:270)
    at com.caucho.server.port.TcpConnection.run(TcpConnection.java:678)
    at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:721)
    at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:643)
    at java.lang.Thread.run(Thread.java:613)
Caused by: com.caucho.quercus.parser.QuercusParseException: /path_to_file/test.php:5:
expected ';' at '$' in
test.php:4:
test.php:5: $stringName = (String)$value;
test.php:6:
    at com.caucho.quercus.parser.QuercusParser.error(QuercusParser.java:5045)
    at com.caucho.quercus.parser.QuercusParser.expect(QuercusParser.java:4929)
    at com.caucho.quercus.parser.QuercusParser.parseExprStatement(QuercusParser.java:2051)
    at com.caucho.quercus.parser.QuercusParser.parseStatementList(QuercusParser.java:713)
    at com.caucho.quercus.parser.QuercusParser.parseTop(QuercusParser.java:505)
    at com.caucho.quercus.parser.QuercusParser.parse(QuercusParser.java:421)
    at com.caucho.quercus.parser.QuercusParser.parse(QuercusParser.java:302)
    at com.caucho.quercus.page.PageManager.parse(PageManager.java:196)
    at com.caucho.quercus.page.PageManager.parse(PageManager.java:160)
    at com.caucho.quercus.Quercus.parse(Quercus.java:850)
    at com.caucho.quercus.servlet.ResinQuercusServlet.service(ResinQuercusServlet.java:100)
    at com.caucho.quercus.servlet.QuercusServlet.service(QuercusServlet.java:355)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:91)
    at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:103)
    at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:187)
    at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:266)
    at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:270)
    at com.caucho.server.port.TcpConnection.run(TcpConnection.java:678)
    at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:721)
    at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:643)
    at java.lang.Thread.run(Thread.java:613)

Attached Files

- Relationships

- Notes
(0003085)
nam
05-22-08 09:58

php/03oc
php/03od
 

- Issue History
Date Modified Username Field Change
05-22-08 07:44 rikus New Issue
05-22-08 09:29 nam Status new => assigned
05-22-08 09:29 nam Assigned To  => nam
05-22-08 09:58 nam Status assigned => closed
05-22-08 09:58 nam Note Added: 0003085
05-22-08 09:58 nam Resolution open => fixed
05-22-08 09:58 nam Fixed in Version  => 3.2.0


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