[PECL-BUG] Bug #16726 [NEW]: php5.dll was not found in thread safe php.
[email protected] ("gyoung dot hwa dot kim at gmail dot com")
| Newsgroups | php.pear.webmaster |
|---|---|
| Message-ID | <[email protected]> |
From: gyoung dot hwa dot kim at gmail dot com
Operating system: window
Package version:
PHP version: 5.2.10
Package: Bug System
Bug Type: Bug
Bug description: php5.dll was not found in thread safe php.
Description:
------------
I installed Apache 2.0, php-5.2.10-Win32.zip, db2 Express C. I followed
all the instructions to set up php and phpinfo() can be displayed from the
web page. I wrote a test.php which connects to a DB2 database and ran it
with "php test.php". It failed with the following error message.
"This application has failed to start because php5.dll was not found.
Re-installing the application may fix this problem." In PHP directory, I
have php5ts.dll not php5.dll.
From the dependency walker, php.exe should look for php5ts.dll.
Because of the error, I installed php-5.2.10-nts-Win32.zip, this time I
got error from apache saying "apache is running thread safe mode, and php
is not in thread safe mode, so php cannot be started."
So both of them didn't work with apache.
Reproduce code:
---------------
test.php source code
<?php
$conn = db2_connect('sample', 'userid', 'password');
if ($conn) {
echo "Connection succeeded.\n";
if (db2_autocommit($conn)) {
echo "Autocommit is on.\n";
}
else {
echo "Autocommit is off.\n";
}
db2_close($conn);
}
else {
echo "Connection failed.";
}
$create = 'DROP TABLE xmlTest';
$result = db2_exec($conn, $create);
$create = 'CREATE TABLE xmlTest (id INTEGER, data XML)';
$result = db2_exec($conn, $create);
$insert = "INSERT INTO xmlTest values (0,
'<Client><Address><street>555 Bailey Ave</street><city>San
Jose</city><state>CA</state><zip>95141</zip></Address><email>ranjanr
@us.ibm.com</email></Client>')";
db2_exec( $conn, $insert );
if ($conn) {
$sql = "SELECT data FROM xmlTest";
$stmt = db2_prepare( $conn, $sql );
db2_execute($stmt);
while($result = db2_fetch_assoc($stmt)) {
print_r($result);
echo "\n";
}
db2_close($conn);
} else {
echo "Connection failed.\n";
}
?
Expected result:
----------------
I expected the connection to db2 is established.
Actual result:
--------------
failed with errors.
--
Edit bug report at http://pecl.php.net/bugs/bug.php?id=16726&edit=1
--