#35452 [NEW]: PDO Constants are not defined
| From: | kang at respice dot de | Date: | Mon, 28 Nov 2005 15:44:46 +0000 |
| Subject: | #35452 [NEW]: PDO Constants are not defined | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-89247@lists.php.net to get a copy of this message | ||
From: kang at respice dot de
Operating system: Win32 + Apache 2.0.55
PHP version: 5.1.0
PHP Bug Type: PDO related
Bug description: PDO Constants are not defined
Description:
------------
The PDO constants are not defined.
Reproduce code:
---------------
<?php print_r(get_defined_constants()); ?>
or
<?php
$DB = new PDO($dsn, $u, $p);
$DB->getAttribute(PDO_ATTR_CONNECTION_STATUS());
?>
Expected result:
----------------
PDO_* constants to be defined.
or
Connection status attribute.
Actual result:
--------------
Constants are not defined.
or
Error: type long expected, string provided.
--
Edit bug report at http://bugs.php.net/?id=35452&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35452&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35452&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35452&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=35452&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=35452&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35452&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35452&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35452&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35452&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35452&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=35452&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=35452&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35452&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35452&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35452&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35452&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35452&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35452&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35452&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35452&r=mysqlcfg