|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-08-23 09:40 UTC] pajoye@php.net
-Status: Open
+Status: Bogus
[2011-08-23 09:40 UTC] pajoye@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 24 19:00:01 2025 UTC |
Description: ------------ calling a class instance in isset causes an error 500 Test script: --------------- <?php class MyClass { private $myobj; public function __construct() { $this->myobj = 'Test OK'; } public function getMyObject() { return $this->myobj; } } $instance = new MyClass(); echo empty($instance->getMyObject()) ? 'Empty value' : $instance->getMyObject(); //$myobj = $instance->getMyObject(); //echo empty($myobj) ? 'Empty value' : $instance->getMyObject(); //Work correctly ?> Expected result: ---------------- Test OK Actual result: -------------- 500 Internal Server Error