]> granicus.if.org Git - php/commit
Try fixing PDO MySQL pconnect test
authorNikita Popov <nikic@php.net>
Sat, 4 Apr 2015 13:58:00 +0000 (15:58 +0200)
committerNikita Popov <nikic@php.net>
Sat, 4 Apr 2015 14:00:17 +0000 (16:00 +0200)
commit30d59aed1c5a27435149c0609ad8a66802df117d
tree7a67402bd42acf51be9ccc0ad5838a4ca64cdd48
parentf3e3d85bb2dec908f348e470f64bd99001345998
Try fixing PDO MySQL pconnect test

Use less aggressive conversion to exceptions, in particular
do not convert warnings that happen during check_liveness. If the
server has gone away this will just reconnect and we still end up
with a valid connection, so it shouldn't throw.

Also drop some unnecessary checks for malloc returning NULL.
ext/pdo/pdo_dbh.c
ext/pdo_mysql/tests/pdo_mysql___construct_uri.phpt