#33895 [Opn->Csd]: Constants introduced in 4.0.2 not defined
| From: | bjori@php.net | Date: | Sun, 27 Aug 2006 19:15:13 +0000 |
| Subject: | #33895 [Opn->Csd]: Constants introduced in 4.0.2 not defined | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-101391@lists.php.net to get a copy of this message | ||
ID: 33895
Updated by: bjori@php.net
Reported By: gpelleti at matrox dot com
-Status: Open
+Status: Closed
Bug Type: Feature/Change Request
Operating System: Windows
PHP Version: 5.1.0b3
-Assigned To:
+Assigned To: bjori
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Fixed in 5_2
Previous Comments:
------------------------------------------------------------------------
[2005-07-28 16:43:46] sniper@php.net
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.
------------------------------------------------------------------------
[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