php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7404 Incompatible functions
Submitted: 2000-10-23 06:42 UTC Modified: 2000-10-25 20:29 UTC
From: mpostupalski at wp-sa dot pl Assigned:
Status: Closed Package: *General Issues
PHP Version: 4.0.2 OS: Linux
Private report: No CVE-ID: None
 [2000-10-23 06:42 UTC] mpostupalski at wp-sa dot pl
Difference between PHP 3.0 and PHP 4.0. Function empty() in my opinion is incompatible. This is a test:

 $test='0'; //zero
 echo empty($test) ? "True" : "False"; 
 //PHP 3.0 returns "False";
 //PHP 4.0 returns "True";

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-25 20:29 UTC] joey@php.net
This is intentional.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 22:00:02 2026 UTC