Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] 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  
Status closed   Product Version 3.2.1
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.
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