Bug #31715 [NoF->Csd]: isset() and empty() return "Trying to get property of non-object"

From: Date: Mon, 21 Jun 2010 22:37:47 +0000
Subject: Bug #31715 [NoF->Csd]: isset() and empty() return "Trying to get property of non-object"
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-151742@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=31715&edit=1

 ID:               31715
 Updated by:       felipe@php.net
 Reported by:      cryptographite at comcast dot net
 Summary:          isset() and empty() return "Trying to get property of
                   non-object"
-Status:           No Feedback
+Status:           Closed
 Type:             Bug
 Package:          Scripting Engine problem
 Operating System: FreeBSD
 PHP Version:      5.0.3
-Assigned To:      
+Assigned To:      felipe



Previous Comments:
------------------------------------------------------------------------
[2010-01-16 01:00:00] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------
[2010-01-08 11:07:33] aharvey@php.net

Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

5.1.2 is an extremely old version of PHP. Please try again with a
current version.

FWIW, I can't reproduce this with 5.2.10-whatever-Ubuntu-ship or 5.3.1
-- the only notices are to do with the use of the undefined $key
variable as an array index, which are valid. The expected output is:

$not->set->variable
isset false
empty true
------------------
$not->set[$key]

Notice: Undefined variable: key in /tmp/test.php on line 11
isset false

Notice: Undefined variable: key in /tmp/test.php on line 13
empty true


------------------------------------------------------------------------
[2010-01-08 10:12:43] ninuhadida at gmail dot com

I am experiencing the same problem with PHP 5.1.2 on SUSE Linux

------------------------------------------------------------------------
[2005-02-04 01:00:06] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------
[2005-01-27 08:12:45] derick@php.net

Please try using this CVS snapshot:

  http://snaps.php.net/php5-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.0-win32-latest.zip

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


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    http://bugs.php.net/bug.php?id=31715


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


Thread (10 messages)

« previous php.bugs (#151742) next »