From:             remi
Operating system: GNU/Linux
PHP version:      5.4.16
Package:          PostgreSQL related
Bug Type:         Bug
Bug description:Test skip on client / server version

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 bug report at https://bugs.php.net/bug.php?id=65047&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=65047&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=65047&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=65047&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=65047&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=65047&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=65047&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=65047&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=65047&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=65047&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=65047&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=65047&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=65047&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=65047&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65047&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=65047&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=65047&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=65047&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=65047&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=65047&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=65047&r=mysqlcfg

Reply via email to