From: alison dot holloway at oracle dot com Operating system: Windows XP SP2 PHP version: 5.2.3 PHP Bug Type: PDO related Bug description: PDO Startup Error
Description: ------------ Startup errors when using PDO_OCI8 extension. Reproduce code: --------------- Install PHP 4.2.3 Select the following extensions to include in the install: OCI8 PDO PDO_OCI8 Turn on display_startup_errors in php.ini. The following errors are displayed on Apache start up: PHP Startup: Invalid library (maybe not a PHP library) 'php_pdo_oci8.dll' PHP Startup: Invalid library (maybe not a PHP library) 'php_pdo_oci8.dll' phpinfo() says the following PDO libraries are loaded PDO PDO support enabled PDO drivers oci PDO_OCI PDO Driver for OCI 8 and later enabled Run a small Oracle 10g PDO script. This is the script I used against and Oracle Database XE (10.2) database: <?php print_r(PDO::getAvailableDrivers()); $dbh = new PDO('oci:dbname=//localhost/XE', 'hr', 'hr'); $s = $dbh->prepare("select city from locations"); $s->execute(); while ($r = $s->fetch(PDO::FETCH_ASSOC)) { echo $r['CITY'] . "<br>"; } $dbh = null; // release the connection ?> This script works, so PDO is actually installed and okay. Here is the startup error in the Apache error log: [Wed Jun 13 10:06:48 2007] [notice] Apache/2.0.59 (Win32) PHP/5.2.3 configured -- resuming normal operations [Wed Jun 13 10:06:48 2007] [notice] Server built: Jul 27 2006 15:55:03 [Wed Jun 13 10:06:48 2007] [notice] Parent: Created child process 3516 PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) 'php_pdo_oci8.dll' in Unknown on line 0 [Wed Jun 13 10:07:01 2007] [notice] Child 3516: Child process is running [Wed Jun 13 10:07:01 2007] [notice] Child 3516: Acquired the start mutex. [Wed Jun 13 10:07:01 2007] [notice] Child 3516: Starting 250 worker threads. The files in my C:\Program Files\PHP\ext folder are: php_oci8.dll php_pdo.dll php_pdo_oci8.dll php_pdo_oci.dll The entries in my php.ini are: [PHP_OCI8] extension=php_oci8.dll [PHP_PDO] extension=php_pdo.dll [PHP_PDO_OCI] extension=php_pdo_oci.dll [PHP_PDO_OCI8] extension=php_pdo_oci8.dll Expected result: ---------------- No startup errors. Actual result: -------------- The following errors are displayed on Apache start up: PHP Startup: Invalid library (maybe not a PHP library) 'php_pdo_oci8.dll' PHP Startup: Invalid library (maybe not a PHP library) 'php_pdo_oci8.dll' -- Edit bug report at http://bugs.php.net/?id=41676&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41676&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41676&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41676&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41676&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41676&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41676&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41676&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41676&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41676&r=support Expected behavior: http://bugs.php.net/fix.php?id=41676&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41676&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41676&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41676&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41676&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41676&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41676&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41676&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41676&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41676&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41676&r=mysqlcfg