Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003403 [Quercus] crash always 03-20-09 14:13 03-20-09 18:13
Reporter chrislewis View Status public  
Assigned To nam
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 0003403: crash with com.caucho.quercus.parser.QuercusParseException on certain integers
Description Certain number literals cause the parser to crash.

<?php

$i = '078051120'; //ok
$i = (int)'078051120'; //ok
$i = 078051120; //crash!

?>

/src/main/webapp/crash.php:7: expected ';' at integer (8051120) in
crash.php:6: $i = (int)'078051120';
crash.php:7: $i = 078051120;
crash.php:8: echo $i;

Notice that in the exception it has interpreted 078051120 as 8051120.
Steps To Reproduce
Additional Information 002281852, 042103580, 062360749 cause the same behavior
Attached Files

- Relationships

- Notes
(0003913)
nam
03-20-09 18:13

php/0122

Fixed.

'$i = 078051120' is an octal integer and PHP will ignore any invalid octal digits.
 

- Issue History
Date Modified Username Field Change
03-20-09 14:13 chrislewis New Issue
03-20-09 18:09 nam Status new => assigned
03-20-09 18:09 nam Assigned To  => nam
03-20-09 18:13 nam Status assigned => closed
03-20-09 18:13 nam Note Added: 0003913
03-20-09 18:13 nam Resolution open => fixed
03-20-09 18:13 nam 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