Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003990 [Quercus] minor always 04-10-10 09:13 05-23-10 06:02
Reporter Xr View Status public  
Assigned To
Priority normal Resolution open Platform
Status new   OS
Projection none   OS Version
ETA none Fixed in Version Product Version 4.0.6
  Product Build
Summary 0003990: isset issues an E_NOTICE on unset variable
Description Hi,

The following code issues a notice in Quercus 4.0.6 (also tested in 4.0.3).

<?php
error_reporting(E_NOTICE);
var_dump(isset($foo));
?>

Such a notice is not shown using the regular PHP distribution. I believe this is the correct behavior: checking if a variable is set should not issue a warning of any kind if it's not set.

Note that Quercus returns the correct result (i.e. false).

Regards,
Xr
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0004606)
Chris Graham
05-23-10 05:59

This works fine in 4.0.7, so I think this bug can be closed :).

Evidence...

<?php
error_reporting(E_NOTICE);
isset($foo);
echo $bar;
?>

produces just...

Notice: $bar is an undefined variable
 
(0004607)
Chris Graham
05-23-10 06:02

Whoops, also...

<?php
error_reporting(E_NOTICE);
var_dump(isset($foo));
echo $bar;
?>

produces just...

bool(false) Notice: $bar is an undefined variable
 

- Issue History
Date Modified Username Field Change
04-10-10 09:13 Xr New Issue
05-22-10 04:19 Chris Graham Issue Monitored: Chris Graham
05-23-10 05:59 Chris Graham Note Added: 0004606
05-23-10 05:59 Chris Graham Issue End Monitor: Chris Graham
05-23-10 06:02 Chris Graham Note Added: 0004607
05-23-10 16:39 Chris Graham Issue Monitored: Chris Graham
05-14-11 10:18 Chris Graham Issue End Monitor: Chris Graham


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