~ubuntu-branches/ubuntu/maverick/php5/maverick-proposed

« back to all changes in this revision

Viewing changes to ext/date/tests/bug45554.phpt

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-08-01 11:58:54 UTC
  • mfrom: (1.1.19 upstream) (0.4.6 experimental)
  • Revision ID: james.westby@ubuntu.com-20100801115854-30yqnnj2vx87v6no
Tags: 5.3.3-1ubuntu1
Merge from Debian experimental: 

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
echo $d->format($format), "\n";
10
10
 
11
11
$d = date_create_from_format($format, "03-15-2005 12:22:29.001001 PST");
12
 
echo $d->format($format), "\n";
 
12
echo $d->format($format), " (precision isn't enough to show the 1 here)\n";
13
13
 
14
14
$d = date_create_from_format($format, "03-15-2005 12:22:29.0010 PST");
15
 
var_dump( $d );
 
15
echo $d->format($format), "\n";
16
16
?>
17
17
--EXPECT--
18
18
03-15-2005 12:22:29.000000 PST
 
19
03-15-2005 12:22:29.001000 PST (precision isn't enough to show the 1 here)
19
20
03-15-2005 12:22:29.001000 PST
20
 
bool(false)