#36874 [NEW]: PDO quote null change

From: Date: Mon, 27 Mar 2006 14:27:28 +0000
Subject: #36874 [NEW]: PDO quote null change
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-94925@lists.php.net to get a copy of this message
From: stochnagara at hotmail dot com Operating system: win xp PHP version: 5.1.3RC1 PHP Bug Type: Feature/Change Request Bug description: PDO quote null change Description: ------------ Currently PDO quotes null value as a string '' . I suggest to change this behaviour and quote null as sql NULL. Reproduce code: --------------- <? $pdo = new PDO('pgsql:...', 'root', ''); var_dump ($pdo->quote (null)); Expected result: ---------------- null Actual result: -------------- string ('') -- Edit bug report at http://bugs.php.net/?id=36874&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36874&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36874&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36874&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36874&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36874&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36874&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=36874&r=needscript Try newer version: http://bugs.php.net/fix.php?id=36874&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36874&r=support Expected behavior: http://bugs.php.net/fix.php?id=36874&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36874&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36874&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36874&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36874&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36874&r=dst IIS Stability: http://bugs.php.net/fix.php?id=36874&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36874&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36874&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36874&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=36874&r=mysqlcfg

« previous php.bugs (#94925) next »