Am 05.09.2011 11:37, schrieb Stas Malyshev:
Hi!

On 9/5/11 2:29 AM, Ulf Wendel wrote:
- BC breakage is impossible because behavior is undefined
- update test, issue gone

OK, since you say it's not the intended behavior to be relied upon, I'll
remove this check from the test (if nobody beats me to it).

No, please don't change it that way.

Returning a relevant value for stmt_num_rows() seems a valid feature request that makes perfectly sense to me and is somewhat in line with the vague non-PS documentation of the case.

To the end user the message is "undefined, do not rely on". Towards the library implementor the message is "try to make libmysql become better in the future, keep reasonable value in mysqlnd implementation meanwhile".

Do something like:

 if ($IS_MYSQLND)
    /* TO END USER: no promise on this assumption */
    ...

Please, do not drop the information of the difference by removal of the assertion.



Ulf










--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to