Bug #19753 [Opn->Ver]: noisy version_compare warning

From: Date: Sun, 16 Dec 2012 21:19:34 +0000
Subject: Bug #19753 [Opn->Ver]: noisy version_compare warning
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-9417@lists.php.net to get a copy of this message
Edit report at https://pear.php.net/bugs/bug.php?id=19753&edit=1 ID: 19753 Updated by: heino.gehlsen+php@gmail.com Reported By: lead2gold at gmail dot com Summary: noisy version_compare warning -Status: Open +Status: Verified Type: Bug Package: Net_NNTP Operating System: Centos 5.8 Package Version: 1.5.0RC2 PHP Version: 5.3.19 -Assigned To: +Assigned To: heino Roadmap Versions: New Comment: -Status: Open +Status: Verified -Assigned To: +Assigned To: heino Previous Comments: ------------------------------------------------------------------------ [2012-12-16 20:52:49] caronc Added #patch bug:19753;patch:feof.version.check.patch;revision:1355691169;. ------------------------------------------------------------------------ [2012-12-16 20:52:26] caronc Description: ------------ What was meant to be a warning message for people with a specific php version has become a warning message for absolutely everyone except the target audience. if (version_compare(PHP_VERSION, '5.2.11') === 1) { should read: if (version_compare(PHP_VERSION, '5.2.11') === 0) { residing in NNTP/Protocol/Client.php Test script: --------------- use this package with any PHP version 'other' than 5.2.11 and observe the warning: PHP bug #16657 breaks feof() on socket streams! Connection consistency might be compromised! For those who like leaving warnings on to help debug code... this repetitive warning that isn't applicable can get annoying :) Expected result: ---------------- <nothing> Actual result: -------------- PHP bug #16657 breaks feof() on socket streams! Connection consistency might be compromised! ------------------------------------------------------------------------ -- Edit this bug report at https://pear.php.net/bugs/bug.php?id=19753&edit=1

« previous php.pear.bugs (#9417) next »