#38101 [Opn->Bgs]: Undefinded Variable NO ERROR MESSAGE!!

From: Date: Fri, 14 Jul 2006 07:37:03 +0000
Subject: #38101 [Opn->Bgs]: Undefinded Variable NO ERROR MESSAGE!!
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-99430@lists.php.net to get a copy of this message
 ID:               38101
 Updated by:       helly@php.net
 Reported By:      nimce4u at gmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         *General Issues
-Operating System: Windows XP Pro
+Operating System: *
-PHP Version:      5.1.4
+PHP Version:      *
 New Comment:

marcus@zaphod /usr/src/php-cvs $ php -r 'print $x;'
make: `sapi/cli/php' is up to date.

Notice: Undefined variable: x in Command line code on line 1


Previous Comments:
------------------------------------------------------------------------

[2006-07-14 07:01:51] nimce4u at gmail dot com

Description:
------------
When I print a variable who I DIDN'T defind before I DON'T get an
error!!!

It will help me if I'll get an error when I didn't defind a variable
and then wanted it's value...
Thank you!

Reproduce code:
---------------
<?php
print $var;
?>

Expected result:
----------------
WARNING/ERROR because I didn't defind this variable...

Actual result:
--------------
Nothing...
It printed nothing!


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=38101&edit=1


Thread (2 messages)

« previous php.bugs (#99430) next »