~ubuntu-branches/ubuntu/hardy/php5/hardy-updates

« back to all changes in this revision

Viewing changes to ext/standard/tests/strings/bug23894.phpt

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-10-09 03:14:32 UTC
  • Revision ID: james.westby@ubuntu.com-20051009031432-kspik3lobxstafv9
Tags: upstream-5.0.5
ImportĀ upstreamĀ versionĀ 5.0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--TEST--
 
2
Bug #23894 (sprintf() decimal specifiers problem)
 
3
--FILE--
 
4
<?php
 
5
$a = -12.3456;
 
6
$test = sprintf("%04d", $a);
 
7
var_dump($test, bin2hex($test));
 
8
$test = sprintf("% 13u", $a);
 
9
var_dump($test, bin2hex($test));
 
10
?>
 
11
--EXPECT--
 
12
string(4) "-012"
 
13
string(8) "2d303132"
 
14
string(13) "   4294967284"
 
15
string(26) "20202034323934393637323834"