From:             devish at zonnet dot nl
Operating system: Windows XP
PHP version:      5.0.1
PHP Bug Type:     Output Control
Bug description:  Undefined array variable gives a problem with the output

Description:
------------
When declaring an array but don't initialize it, it stops running the
script. When declaring a normal variable it will just produce a Undefined
variable notice.

In the reproduce code it will not print "hello"

Offcourse this sort of code is rearly used, but the reason for reporting
this is that it doesn't report a notice or any warning.

Im running Win XP, with Apache 2.0 and only have one extension in my
php.ini (the mysql extension)



Reproduce code:
---------------
<?php
error_reporting(E_ALL);

$int[];

print "hello";
?>

Expected result:
----------------
I expect:
Notice: Undefined variable: int in E:\www-root\sqlite\test.php on line 4
hello

I See:
white screen


-- 
Edit bug report at http://bugs.php.net/?id=30292&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30292&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30292&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30292&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30292&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30292&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30292&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30292&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30292&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30292&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30292&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=30292&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=30292&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30292&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30292&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30292&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30292&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30292&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30292&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30292&r=mysqlcfg

Reply via email to