a bug ??
| From: | Robert Trzewiczek | Date: | Tue, 14 Dec 2004 13:15:07 +0000 |
| Subject: | a bug ?? | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-21994@lists.php.net to get a copy of this message | ||
rtrzewiczek@robert:~$ php --version
PHP 4.3.10RC2 (cli) (built: Dec 14 2004 13:44:02)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
rtrzewiczek@robert:~$ cat t.php
<?php
error_reporting(E_ALL);
$d = null;
if ( !isset($d['s']) ) echo 'd is not set!' . "\n";
if ( empty($d['s']) ) echo 'd is empty!' . "\n";
$c = $d['s']; // where is notice ??? huh?
$a = $b;
?>
rtrzewiczek@robert:~$ php ./t.php
d is not set!
d is empty!
Notice: Undefined variable: b in /u/users/rtrzewiczek/t.php on line 12
rtrzewiczek@robert:~$
??
--
Robert Trzewiczek
InBook.pl