Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
2688 | minor | always | 05-22-08 07:44 | 05-22-08 09:58 | |
|
|||||
Reporter: | rikus | Platform: | |||
Assigned To: | nam | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 3.1.6 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 3.2.0 | ||
|
|||||
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) |
||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|