Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
--TEST--
2
Bug #3396 : toString() sets object variables.
3
--SKIPIF--
4
<?php
5
if (version_compare(PHP_VERSION, '4.9.9', '<=')) print 'PHP 5 required';
6
?>
7
--FILE--
8
<?php
9
 
10
error_reporting(E_ALL);
11
require_once 'Var_Dump.php';
12
$vd = new Var_Dump(array('display_mode' => 'Text'));
13
 
14
class foo {
15
    protected $bar = "value";
16
}
17
 
18
echo $vd->toString(new foo());
19
 
20
?>
21
--EXPECTREGEX--
22
object\(foo\)(#[0-9]+ )?\(1\) {
23
  bar:protected => string\(5\) value
24
}