cvs: php-src /tests/lang bug22367.phpt
| From: | Zeev Suraski | Date: | Wed, 02 Jul 2003 15:08:11 +0000 |
| Subject: | cvs: php-src /tests/lang bug22367.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-22315@lists.php.net to get a copy of this message | ||
zeev Wed Jul 2 11:08:11 2003 EDT
Modified files:
/php-src/tests/lang bug22367.phpt
Log:
Adjust expectations :)
Index: php-src/tests/lang/bug22367.phpt
diff -u php-src/tests/lang/bug22367.phpt:1.1 php-src/tests/lang/bug22367.phpt:1.2
--- php-src/tests/lang/bug22367.phpt:1.1 Mon Feb 24 14:37:27 2003
+++ php-src/tests/lang/bug22367.phpt Wed Jul 2 11:08:11 2003
@@ -48,7 +48,7 @@
$a = new bar(5);
var_dump($a->idx);
-@$a->c();
+$a->c();
$b = $a->b();
var_dump($b);
var_dump($a->test);
@@ -61,58 +61,10 @@
var_dump($a->test);
?>
---EXPECT--
+--EXPECTF--
int(5)
bool(false)
-bool(false)
-array(5) {
- [0]=>
- int(0)
- [1]=>
- int(1)
- [2]=>
- int(2)
- [3]=>
- int(3)
- [4]=>
- int(4)
-}
-array(5) {
- [0]=>
- int(0)
- [1]=>
- int(1)
- [2]=>
- int(2)
- [3]=>
- int(3)
- [4]=>
- int(4)
-}
-int(2)
-bool(true)
-bool(true)
-array(5) {
- [0]=>
- int(0)
- [1]=>
- int(1)
- [2]=>
- int(2)
- [3]=>
- int(3)
- [4]=>
- int(4)
-}
-array(5) {
- [0]=>
- int(0)
- [1]=>
- int(1)
- [2]=>
- int(2)
- [3]=>
- int(3)
- [4]=>
- int(4)
-}
+
+Notice: Undefined offset: %d in %s on line %d
+
+Fatal error: Only variables or references can be returned by reference in %s on line %d