summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorHartmut Holzgraefe <hholzgra@php.net>2000-10-23 07:40:05 +0000
committerHartmut Holzgraefe <hholzgra@php.net>2000-10-23 07:40:05 +0000
commit86c0d81253f62414384c6c92f9283e545dfccfc7 (patch)
tree87e002242eebe3f695c4c2fd12d2ad84f57913a2 /tests
parentb17451635d4a7c3392aad8adadca31d36410514c (diff)
downloadphp-git-86c0d81253f62414384c6c92f9283e545dfccfc7.tar.gz
have you ever tried to run the regression tests with error_reporting=E_ALL ?
now it will run smoothly without all theese 'undefined ...' warnings
Diffstat (limited to 'tests')
-rw-r--r--tests/lang/022.phpt4
-rwxr-xr-xtests/lang/023-1.inc10
-rw-r--r--tests/lang/024.phpt10
3 files changed, 12 insertions, 12 deletions
diff --git a/tests/lang/022.phpt b/tests/lang/022.phpt
index 072d66f085..d70ea0e28d 100644
--- a/tests/lang/022.phpt
+++ b/tests/lang/022.phpt
@@ -11,10 +11,10 @@ cfunction switchtest ($i, $j)
case 0:
switch($j) {
case 0:
- echo zero;
+ echo "zero";
break;
case 1:
- echo one;
+ echo "one";
break;
default:
echo $j;
diff --git a/tests/lang/023-1.inc b/tests/lang/023-1.inc
index 7fa22ea414..8d52e844c9 100755
--- a/tests/lang/023-1.inc
+++ b/tests/lang/023-1.inc
@@ -226,7 +226,7 @@ while ($i<$arr_len) {
while ($j<$arr_len) {
$k=0;
while ($k<$arr_len) {
- ${test.$i.$j}[$k] = $i+$j+$k;
+ ${"test$i$j"}[$k] = $i+$j+$k;
$k++;
}
$j++;
@@ -275,17 +275,17 @@ echo "commented out...";
*** Hash resizing test ***<br>
<?php
$i = 10;
-$a = b;
+$a = 'b';
while ($i > 0) {
- $a = $a . a;
+ $a = $a . 'a';
echo "$a<br>\n";
$resize[$a] = $i;
$i--;
}
$i = 10;
-$a = b;
+$a = 'b';
while ($i > 0) {
- $a = $a . a;
+ $a = $a . 'a';
echo "$a<br>\n";
echo $resize[$a]."<br>\n";
$i--;
diff --git a/tests/lang/024.phpt b/tests/lang/024.phpt
index 542a7853af..5c8024dc7e 100644
--- a/tests/lang/024.phpt
+++ b/tests/lang/024.phpt
@@ -245,7 +245,7 @@ while ($i<$arr_len) {
while ($j<$arr_len) {
$k=0;
while ($k<$arr_len) {
- ${test.$i.$j}[$k] = $i+$j+$k;
+ ${"test$i$j"}[$k] = $i+$j+$k;
$k++;
}
$j++;
@@ -294,17 +294,17 @@ echo "commented out...";
*** Hash resizing test ***
<?php
$i = 10;
-$a = b;
+$a = "b";
while ($i > 0) {
- $a = $a . a;
+ $a = $a . "a";
echo "$a\n";
$resize[$a] = $i;
$i--;
}
$i = 10;
-$a = b;
+$a = "b";
while ($i > 0) {
- $a = $a . a;
+ $a = $a . "a";
echo "$a\n";
echo $resize[$a]."\n";
$i--;