-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I wouldn't mind such a change myself, however what about all the installations
where people do while (*fetch_row() !== false) ?
Ilia
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE/lrviLKekh381/CERAigRAJ0fRN4pB7YotuUscTQPZIHalgJcaACfel/2
12EFNHs3rQT+/C7w02mDxGs=
=RvvP
-----END PGP SIGNATURE
From: Ilia Alshanetsky [mailto:ilia@prohost.org]
Sent: Wednesday, October 22, 2003 7:18 PM
To: Lukas Smith; 'PHP Development'
Subject: Re: [PHP-DEV] database driver: no more rows-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1I wouldn't mind such a change myself, however what about all the
installations
where people do while (*fetch_row() !== false) ?
Yeah ... php5 would be a good time to make this change.
I don't assume that a lot of people will actually do !== since in those
methods you either get an array or false ..
Regards,
Lukas
I wouldn't mind such a change myself, however what about all the
installations
where people do while (*fetch_row() !== false) ?
Wouldn't it be a lot easier to do it the other way around ?
I mean, the semantics of returning false when a fetch cannot be executed
because aren't any rows left is perfectly clear, and returning NULL when
the result cannot be determined (because of an error) is also better
than returning any other value (like 'false').
This would also be easier to carry out while maintaining BC.
--
Ard