stas                                     Sun, 19 Jun 2011 18:52:58 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=312296

Log:
fix test with floats - make it not produce different result
on 32 and 64 bit

Changed paths:
    U   php/php-src/branches/PHP_5_4/Zend/tests/declare_001.phpt
    U   php/php-src/trunk/Zend/tests/declare_001.phpt

Modified: php/php-src/branches/PHP_5_4/Zend/tests/declare_001.phpt
===================================================================
--- php/php-src/branches/PHP_5_4/Zend/tests/declare_001.phpt    2011-06-19 
17:56:09 UTC (rev 312295)
+++ php/php-src/branches/PHP_5_4/Zend/tests/declare_001.phpt    2011-06-19 
18:52:58 UTC (rev 312296)
@@ -12,7 +12,7 @@
 <?php

 declare(encoding = 1);
-declare(encoding = 1123131232131312321);
+declare(encoding = 112313123213131232100);
 declare(encoding = NULL);
 declare(encoding = 'utf-8');
 declare(encoding = M_PI);
@@ -23,7 +23,7 @@
 --EXPECTF--
 Warning: Unsupported encoding [1] in %sdeclare_001.php on line %d

-Warning: Unsupported encoding [1123131232131312321] in %sdeclare_001.php on 
line %d
+Warning: Unsupported encoding [1.1231312321313E+20] in %sdeclare_001.php on 
line %d

 Warning: Unsupported encoding [] in %sdeclare_001.php on line %d


Modified: php/php-src/trunk/Zend/tests/declare_001.phpt
===================================================================
--- php/php-src/trunk/Zend/tests/declare_001.phpt       2011-06-19 17:56:09 UTC 
(rev 312295)
+++ php/php-src/trunk/Zend/tests/declare_001.phpt       2011-06-19 18:52:58 UTC 
(rev 312296)
@@ -12,7 +12,7 @@
 <?php

 declare(encoding = 1);
-declare(encoding = 1123131232131312321);
+declare(encoding = 112313123213131232100);
 declare(encoding = NULL);
 declare(encoding = 'utf-8');
 declare(encoding = M_PI);
@@ -23,7 +23,7 @@
 --EXPECTF--
 Warning: Unsupported encoding [1] in %sdeclare_001.php on line %d

-Warning: Unsupported encoding [1123131232131312321] in %sdeclare_001.php on 
line %d
+Warning: Unsupported encoding [1.1231312321313E+20] in %sdeclare_001.php on 
line %d

 Warning: Unsupported encoding [] in %sdeclare_001.php on line %d


-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to