|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69798 ArrayObject / empty()
Submitted: 2015-06-11 12:10 UTC Modified: 2015-06-11 18:16 UTC
From: amobilia at agduc dot com Assigned: cmb (profile)
Status: Not a bug Package: Arrays related
PHP Version: 5.6.9 OS: Centos 7
Private report: No CVE-ID: None
 [2015-06-11 12:10 UTC] amobilia at agduc dot com
Testing if an arrayobject() is empty() return a bad value

PHP 5.6.9 (cli) (built: May 15 2015 09:31:38)
No specifics changes made to the configuration.
Using php-fpm with nginx (oci8 installed)

Test script:
$ao = new ArrayObject();

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2015-06-11 18:16 UTC]
-Status: Open +Status: Not a bug -Assigned To: +Assigned To: cmb
 [2015-06-11 18:16 UTC]
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

<> lists what is considered being empty. Use ArrayObject::count() to get the number of elements.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Oct 16 22:03:34 2021 UTC