Anonymous | Login | Signup for a new account | 12-17-2024 11:38 PST |
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 | ||||
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 | Platform | |||||
Status | closed | OS | |||||||
Projection | none | OS Version | |||||||
ETA | none | Fixed in Version | 3.2.0 | Product Version | 3.1.6 | ||||
Product Build | |||||||||
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: |
||||||||
Steps To Reproduce | |||||||||
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 | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |