Edit report at https://bugs.php.net/bug.php?id=65047&edit=1
ID: 65047 Updated by: mbecc...@php.net Reported by: r...@php.net Summary: Test skip on client / server version -Status: Open +Status: Closed Type: Bug Package: PostgreSQL related Operating System: GNU/Linux PHP Version: 5.4.16 Block user comment: N Private report: N New Comment: Automatic comment on behalf of mbeccati Revision: http://git.php.net/?p=php-src.git;a=commit;h=c666239265048abd3cc0b2c48493a5db1eacc28e Log: Fixed bug #65047 (Test skip on client / server version) Previous Comments: ------------------------------------------------------------------------ [2013-06-17 14:09:13] r...@php.net On a opposite side pgsql/tests/bug37100.phpt could use skip_client_version('8.5dev', '>='); It will be run and will succeed with client version 8.4 ------------------------------------------------------------------------ [2013-06-17 13:11:33] r...@php.net Description: ------------ Hi, Running the php test suite, using a client library version 8.4.13 (RHEL-6) against a server running version 9.2.4 (RHEL-6 + RHSCL 1.0beta) reports some failures /tmp/php-5.4.16/ext/pgsql/tests/08escape.phpt /tmp/php-5.4.16/ext/pgsql/tests/10pg_convert_85.phpt /tmp/php-5.4.16/ext/pgsql/tests/12pg_insert_85.phpt /tmp/php-5.4.16/ext/pgsql/tests/14pg_update_85.phpt /tmp/php-5.4.16/ext/pgsql/tests/18pg_escape_bytea.phpt /tmp/php-5.4.16/ext/pgsql/tests/bug37100_85.phpt /tmp/php-5.4.16/ext/pdo_pgsql/tests/bug46274.phpt /tmp/php-5.4.16/ext/pdo_pgsql/tests/bug46274_2.phpt For example PQunescapeBytea function is a pure client side function. So result depends on the client version, not on the server version. Proposal, keep (or add where is missing): skip_server_version('8.5dev', '<'); And add: skip_client_version('8.5dev', '<'); I agree, using a 8.4 client to access a 9.2 server is something which should be avoid... What is your thoughts ? (I prefer asking before committing something perhaps stupid) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=65047&edit=1