|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27647 empty() does not work correctly
Submitted: 2004-03-18 22:15 UTC Modified: 2004-03-23 13:40 UTC
From: simen at amaxit dot net Assigned:
Status: Closed Package: Unknown/Other Function
PHP Version: 4.3.5RC4 OS: Solaris 5.8 Sparc
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: simen at amaxit dot net
New email:
PHP Version: OS:


 [2004-03-18 22:15 UTC] simen at amaxit dot net
empty() does not work correctly on Solaris 5.8 Sparc, but same code works well on Linux or FreeBSD.

Reproduce code:
$test[0] = 'field1';
$test[1] = 'field2';

for($i=0;!empty($test[$i]);$i++) {
    echo '<br>'.$test[$i];

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-23 13:40 UTC]
Works just fine with latest CVS. 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon Aug 08 01:05:45 2022 UTC