|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-11-19 23:12 UTC] jani@php.net
[2008-11-20 08:14 UTC] sander dot vink at procurios dot nl
[2008-11-21 13:05 UTC] jani@php.net
[2009-08-27 12:41 UTC] svn@php.net
[2009-08-27 12:42 UTC] andrey@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
Description: ------------ When an empty() call is done within a class that extends the MySQLi class, an incorrect result is provided. Reproduce code: --------------- class Foo extends MySQLi { protected $fooData = array(); public function isEmpty() { $this->fooData[] = 'Bar'; return empty($this->fooData); } } $Foo = new Foo('localhost', 'root', '', 'test'); $isEmpty = $Foo->isEmpty(); var_dump($isEmpty); Expected result: ---------------- bool(false) Actual result: -------------- bool(true)