Hello,
Recently, I've changed ibase_query() to return the number of affected rows, if appropriate. This works like a charm in all cases except the one where the query is successful but no rows are returned.
Returning int(0) in this case would evaluate to 'false' indicating failure. This would break BC.
Right now I just return bool(true) in this case, which evaluates to int(1) in a numerical context, which is also incorrect. [You'd have to test both the type and the value, like in the 'strpos(...) !== false' case]
I would like to change it to return string('0 ') [with space], as it evaluates to bool(true) in a boolean context and to int(0) in a numeric context.
Any thoughts ?
-- Ard
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php