summaryrefslogtreecommitdiff
path: root/tests/lang
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lang')
-rwxr-xr-xtests/lang/bug24640.phpt66
-rwxr-xr-xtests/lang/bug26640.phpt25
-rw-r--r--tests/lang/bug32924.phpt8
-rwxr-xr-xtests/lang/bug35382.phpt2
4 files changed, 71 insertions, 30 deletions
diff --git a/tests/lang/bug24640.phpt b/tests/lang/bug24640.phpt
index 3cd3c4a59..eb208cf56 100755
--- a/tests/lang/bug24640.phpt
+++ b/tests/lang/bug24640.phpt
@@ -1,5 +1,7 @@
--TEST--
Bug #24640 (var_export and var_dump can't output large float)
+--INI--
+precision=12
--FILE--
<?php
function test($v)
@@ -19,7 +21,20 @@ test(1.7e+80);
test(1.7e-80);
test(1.7e+81);
test(1.7e-81);
+test(1.7e+319);
+test(1.7e-319);
+test(1.7e+320);
+test(1.7e-320);
+test(1.7e+321);
+test(1.7e-321);
+test(1.7e+324);
+test(1.7e-324);
+test(1.7e+1000);
+test(1.7e-1000);
+
?>
+===DONE===
+<?php exit(0); ?>
--EXPECT--
1.7E+300
float(1.7E+300)
@@ -61,3 +76,54 @@ float(1.7E-81)
1.7E-81
1.7E-81
------
+INF
+float(INF)
+INF
+INF
+------
+1.69998107421E-319
+float(1.69998107421E-319)
+1.69998107421E-319
+1.69998107421E-319
+------
+INF
+float(INF)
+INF
+INF
+------
+1.70007988734E-320
+float(1.70007988734E-320)
+1.70007988734E-320
+1.70007988734E-320
+------
+INF
+float(INF)
+INF
+INF
+------
+1.69958582169E-321
+float(1.69958582169E-321)
+1.69958582169E-321
+1.69958582169E-321
+------
+INF
+float(INF)
+INF
+INF
+------
+0
+float(0)
+0
+0
+------
+INF
+float(INF)
+INF
+INF
+------
+0
+float(0)
+0
+0
+------
+===DONE===
diff --git a/tests/lang/bug26640.phpt b/tests/lang/bug26640.phpt
deleted file mode 100755
index 2cbd0d23d..000000000
--- a/tests/lang/bug26640.phpt
+++ /dev/null
@@ -1,25 +0,0 @@
---TEST--
-Bug #26640 (__autoload() not invoked by Reflection classes)
---FILE--
-<?php
-
-function __autoload($c)
-{
- class autoload_class
- {
- public function __construct()
- {
- print "autoload success\n";
- }
- }
-}
-
-$a = new ReflectionClass('autoload_class');
-
-if (is_object($a)) {
- echo "OK\n";
-}
-
-?>
---EXPECT--
-OK
diff --git a/tests/lang/bug32924.phpt b/tests/lang/bug32924.phpt
index ddb8301e3..d72b0eaa2 100644
--- a/tests/lang/bug32924.phpt
+++ b/tests/lang/bug32924.phpt
@@ -1,12 +1,12 @@
--TEST--
Bug #32924 (prepend does not add file to included files)
--INI--
-include_path=.
-auto_prepend_file=tests/lang/inc.inc
+include_path={PWD}
+auto_prepend_file=inc.inc
--FILE--
<?php
-include_once('tests/lang/inc.inc');
-require_once('tests/lang/inc.inc');
+include_once(dirname(__FILE__).'/inc.inc');
+require_once(dirname(__FILE__).'/inc.inc');
?>
END
--EXPECT--
diff --git a/tests/lang/bug35382.phpt b/tests/lang/bug35382.phpt
index 1bd525ffb..69190d4c9 100755
--- a/tests/lang/bug35382.phpt
+++ b/tests/lang/bug35382.phpt
@@ -1,6 +1,6 @@
--TEST--
Bug #35382 (Comment in end of file produces fatal error)
---FILE--
+--FILEEOF--
<?php
eval("echo 'Hello'; // comment");
echo " World";