|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-04-27 16:58 UTC] kfbombar at us dot ibm dot com
[2006-05-01 16:41 UTC] daniel dot savard at ingcanada dot com
[2006-05-02 14:45 UTC] daniel dot savard at ingcanada dot com
[2006-05-09 18:27 UTC] kfbombar at us dot ibm dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 07:00:01 2025 UTC |
Description: ------------ The db2_connect() consumes most of the CPU when connecting and is somewhat slow. Also, the test code end with a Segmentation Fault. Version of ibm_db2.so is: 1.2.1 DB2 is version 8.2 FP 4 (or 8.1 FP 11). Reproduce code: --------------- <?php $User = 'myuser'; $Pass = 'mypassword'; $DB = 'opsmon'; dl("ibm_db2.so"); $conn = db2_connect($DB, $User, $Pass); if ($conn) { echo "Connection to $DB succeeded\n"; db2_close($conn); echo "Connection closed\n"; } ?> Expected result: ---------------- Connection to $DB succeeded echo "Connection closed And CPU consumption below 10%. Actual result: -------------- Connection to $DB succeeded echo "Connection closed Segmentation Fault And consumes 99% CPU while a db2 connect to $DB consumes only 2% CPU.