Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
--TEST--
2
Bug #1321 : Numeric zero values are not shown.
3
--FILE--
4
<?php
5
 
6
error_reporting(E_ALL);
7
require_once 'Var_Dump.php';
8
$vd = new Var_Dump(array('display_mode' => 'Text'));
9
 
10
class zero {
11
    public $i = 0;
12
    public $f = 0.0;
13
}
14
 
15
echo
16
    $vd->toString(new zero()) . "\n" .
17
    $vd->toString(array(0, 0.0));
18
 
19
?>
20
--EXPECTREGEX--
21
object\(zero\)(#[0-9]+ )?\(2\) {
22
  i => int 0
23
  f => float 0
24
}
25
array\(2\) {
26
 
27
  1 => float 0
28
}