|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-01-31 05:57 UTC] steve at dundeecity dot gov dot uk
[2008-01-31 06:01 UTC] grant dot croker at ingres dot com
[2017-10-24 08:41 UTC] kalle@php.net
-Status: Verified
+Status: Suspended
[2017-10-24 08:41 UTC] kalle@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 17:00:01 2025 UTC |
Description: ------------ I've recently installed php-5.2.5 on Apache-2.2.8 and compiled in the PECL ingres extension. Our production code is presently running on php-4.4.2 on Apache-1.3.33 using the old ingres_ii extension. This has been running great for several years now, but we wanted to move up to php5 and apache2 to reap the memory/speed benefits and generally keep up. I copied our production test code over to the apache2 php5 server and found that there seem to be either a backwards compatibility issue or it may be we are using the original extension incorrectly. Reproduce code: --------------- I seem to be getting an error from ingres_num_rows, we used to write $rowcount=ingres_num_rows($conn) we get ingres_num_rows() supplied resource is not a valid Ingres Resource I have changed this to point to the result set intead of the resource $rowcount=ingres_num_rows($result) however the result is always 0 We have extensively used ingres_num_rows in our applications and wonder if the above behaviour is correct and if there is a workaround. Expected result: ---------------- correct number of rows affected. Actual result: -------------- returns 0 and requires to operate on the result set rather than the connection resource.