From:             gpelleti at matrox dot com
Operating system: Windows
PHP version:      5.1.0b3
PHP Bug Type:     Math related
Bug description:  Constants introduced in 4.0.2 not defined anymore.

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 bug report at http://bugs.php.net/?id=33895&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=33895&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=33895&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=33895&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=33895&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=33895&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=33895&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=33895&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=33895&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=33895&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=33895&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=33895&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=33895&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=33895&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=33895&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=33895&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=33895&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=33895&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=33895&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=33895&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=33895&r=mysqlcfg

Reply via email to