php library Result.php count() function does not work
php library Result.php count() function does not work
paul@dmcreative.com
Posts: 27Questions: 5Answers: 0
in Editor
Downloaded Editor-PHP-1.9.0 libraries.
Found that the API call to the Result object for count() always returns 0.
The code in the file Result.php for this function is hard set to return 0.
Is this the incorrect library file being included with the download?
The copyright date is 2012.
This discussion has been closed.
Replies
Hi,
You are right that the stub class just has a
return 0
method, but as the comment at the top of that class notes, driver files will extend and override those methods.For example this is the
count()
method for MySQL.Can you show me how you are executing the code please?
I should just remove that! The dates are recorded by git, so I've not been updating them!
Allan