#33895 [Opn]: Constants introduced in 4.0.2 not defined
| From: | sniper@php.net | Date: | Thu, 28 Jul 2005 14:43:47 +0000 |
| Subject: | #33895 [Opn]: Constants introduced in 4.0.2 not defined | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-82608@lists.php.net to get a copy of this message | ||
ID: 33895
Updated by: sniper@php.net
-Summary: Constants introduced in 4.0.2 not defined anymore.
Reported By: gpelleti at matrox dot com
Status: Open
-Bug Type: Math related
+Bug Type: Feature/Change Request
Operating System: Windows
PHP Version: 5.1.0b3
New Comment:
Those haven't been defined as PHP constants in any PHP version, not
even in 4.0.2 (they exist only in the php_math.h file)
Moved to Feature requests.
Previous Comments:
------------------------------------------------------------------------
[2005-07-27 23:34:28] gpelleti at matrox dot com
Description:
------------
Math constants M_SQRTPI, M_SQRT3, M_LNPI and M_EULER introduced in
version 4.0.2 are not defined anymore in version 5.1.0b3.
Reproduce code:
---------------
echo 'M_SQRTPI=' . M_SQRTPI . '<br />' . "\n";
echo 'M_SQRT3=' . M_SQRT3 . '<br />' . "\n";
echo 'M_LNPI=' . M_LNPI . '<br />' . "\n";
echo 'M_EULER=' . M_EULER . '<br />' . "\n";
Expected result:
----------------
M_SQRTPI=1.7724538509055
M_SQRT3=1.7320508075689
M_LNPI=1.1447298858494
M_EULER=0.57721566490153
Actual result:
--------------
Notice: Use of undefined constant M_SQRTPI - assumed 'M_SQRTPI' in
c:\Inetpub\wwwroot\php\math.php on line 23
M_SQRTPI=M_SQRTPI
Notice: Use of undefined constant M_SQRT3 - assumed 'M_SQRT3' in
c:\Inetpub\wwwroot\php\math.php on line 24
M_SQRT3=M_SQRT3
Notice: Use of undefined constant M_LNPI - assumed 'M_LNPI' in
c:\Inetpub\wwwroot\php\math.php on line 25
M_LNPI=M_LNPI
Notice: Use of undefined constant M_EULER - assumed 'M_EULER' in
c:\Inetpub\wwwroot\php\math.php on line 26
M_EULER=M_EULER
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33895&edit=1