var_dump($test2);
?>
--EXPECT--
-object(test)#2 (0) {
+object(Test)#2 (0) {
}
--TEST--
-Bug #26166: __toString() crash when no values returned
+Bug #26166 (__toString() crash when no values returned)
--FILE--
<?php
class Foo
Got the exception
===NONE===
-Fatal error: Method none::__toString() must return a string value in %sbug26166.php on line %d
+Fatal error: Method None::__toString() must return a string value in %sbug26166.php on line %d
<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
--FILE--
<?php
-class Setter {
+class setter {
public $n;
public $x = array('a' => 1, 'b' => 2, 'c' => 3);
?>
--FILE--
<?php
-class Object implements ArrayAccess {
+class object implements ArrayAccess {
public $a = array('1st', 1, 2=>'3rd', '4th'=>4);
?>
--FILE--
<?php
-class Object implements ArrayAccess {
+class object implements ArrayAccess {
public $a = array('1st', 1, 2=>'3rd', '4th'=>4);
?>
--FILE--
<?php
-class Object implements ArrayAccess {
+class object implements ArrayAccess {
public $a = array('1st', 1, 2=>'3rd', '4th'=>4);
?>
--FILE--
<?php
-class Object implements ArrayAccess {
+class object implements ArrayAccess {
public $a = array('1st', 1, 2=>'3rd', '4th'=>4);
?>
--EXPECT--
-a Object
+A Object
(
[a_var] => Array
(
class Person {
private $name;
- function Person($_name, $_address) {
+ function person($_name, $_address) {
$this->name = new Name($_name);
}
?>
--EXPECTF--
-Fatal error: Class exception_foo contains 1 abstract methods and must therefore be declared abstract (throwable::getErrno) in %s on line %d
+Fatal error: Class Exception_foo contains 1 abstract methods and must therefore be declared abstract (Throwable::getErrno) in %s on line %d
?>
--EXPECTF--
-Fatal error: Argument 1 must implement interface foo in %s on line %d
+Fatal error: Argument 1 must implement interface Foo in %s on line %d
?>
--EXPECT--
-a Object
+A Object
(
)
?>
--EXPECTF--
-Fatal error: Argument 1 must be an instance of foo in %s on line %d
+Fatal error: Argument 1 must be an instance of Foo in %s on line %d
print_r($foo);
?>
--EXPECTF--
-foo Object
+Foo Object
(
)