php library Result.php count() function does not work

php library Result.php count() function does not work

paul@dmcreative.compaul@dmcreative.com Posts: 27Questions: 5Answers: 0

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.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    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?

    The copyright date is 2012.

    I should just remove that! The dates are recorded by git, so I've not been updating them!

    Allan

This discussion has been closed.