Bug #69798 [Opn->Nab]: ArrayObject / empty()

From: Date: Thu, 11 Jun 2015 18:16:08 +0000
Subject: Bug #69798 [Opn->Nab]: ArrayObject / empty()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-193334@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69798&edit=1 ID: 69798 Updated by: cmb@php.net Reported by: amobilia at agduc dot com Summary: ArrayObject / empty() -Status: Open +Status: Not a bug Type: Bug Package: Arrays related Operating System: Centos 7 PHP Version: 5.6.9 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: 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 http://www.php.net/support.php 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. <http://php.net/manual/en/function.empty.php#refsect1-function.empty-returnvalues> lists what is considered being empty. Use ArrayObject::count() to get the number of elements. Previous Comments: ------------------------------------------------------------------------ [2015-06-11 12:10:08] amobilia at agduc dot com Description: ------------ Testing if an arrayobject() is empty() return a bad value PHP 5.6.9 (cli) (built: May 15 2015 09:31:38) From http://rpms.remirepo.net/ No specifics changes made to the configuration. Using php-fpm with nginx (oci8 installed) Test script: --------------- <?php $ao = new ArrayObject(); var_dump(empty($ao)); ?> Expected result: ---------------- bool(true) Actual result: -------------- bool(false) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=69798&edit=1

« previous php.bugs (#193334) next »