Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.14.0

Bug #1483 NAN and INF already defined
Submitted: 2004-05-24 16:49 UTC
From: yunosh Assigned: arnaud
Status: Closed Package: SOAP
PHP Version: 4CVS-2004-05-24 (stable) OS:
Roadmaps: (Not assigned)    
Subscription  


 [2004-05-24 16:49 UTC] yunosh
Description: ------------ I don't now when these constants have been defined in PHP but at least version 4.3.6 has NAN and INF defined, causing an E_NOTICE in Base.php. Prefixing the define() calls in lines 77 and 78 with the silence operator "@" fixes these notices.

Comments

 [2004-07-04 15:25 UTC] jellybob at gmail dot com
A better solution would probably be to use the following code: <code>if (!defined('INF')) { define('INF', 1.8e307); } if (!defined('NAN')) { define('NAN', 0.0); }</code>
 [2004-08-22 12:40 UTC] arnaud
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better. Thanks, the bug was first reported in 1385 and i couldn't understand what was wrong until I saw this one.