#47297 [NEW]: pdo_033.phpt fails on PgSQL

From: Date: Wed, 04 Feb 2009 07:24:58 +0000
Subject: #47297 [NEW]: pdo_033.phpt fails on PgSQL
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-133472@lists.php.net to get a copy of this message
From: matteo at beccati dot com Operating system: Any PHP version: 5.3.0beta1 PHP Bug Type: PDO related Bug description: pdo_033.phpt fails on PgSQL Description: ------------ The common test pdo_033.phpt fails on PgSQL because it's using a char(100) field, which will be right padded with spaces once retrieved, even though the actual output doesn't show that. Using a char field with the correct size fixes the issue, while surely remaining compatible with other database type. Reproduce code: --------------- php -n run-tests.php --show-diff ext/pdo_pgsql/tests/common.phpt Expected result: ---------------- PASS Postgres PDO Common: PDO::quote() [ext/pdo_pgsql/tests/pdo_033.phpt] Actual result: -------------- TEST 49/55 [ext/pdo/tests/pdo_033.phpt] ========DIFF======== 005+ [t] => !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ 005- [t] => !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ ========DONE======== FAIL Postgres PDO Common: PDO::quote() [ext/pdo_pgsql/tests/pdo_033.phpt] -- Edit bug report at http://bugs.php.net/?id=47297&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47297&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47297&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47297&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47297&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47297&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47297&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47297&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47297&r=needscript Try newer version: http://bugs.php.net/fix.php?id=47297&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47297&r=support Expected behavior: http://bugs.php.net/fix.php?id=47297&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47297&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47297&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47297&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47297&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=47297&r=dst IIS Stability: http://bugs.php.net/fix.php?id=47297&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47297&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47297&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47297&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47297&r=mysqlcfg

« previous php.bugs (#133472) next »