diff options
| author | SVN Migration <svn@php.net> | 2004-01-26 01:59:15 +0000 |
|---|---|---|
| committer | SVN Migration <svn@php.net> | 2004-01-26 01:59:15 +0000 |
| commit | c99a4f4747eac00e5e7fb44eb9e6467e258b30c6 (patch) | |
| tree | 99ab150cf56eb6b75e0c0327d0b608e74445df58 /ext/pgsql/tests/18pg_escape_bytea.phpt | |
| parent | 3507f040622d2267950f26c69b6ac30c1beb94f4 (diff) | |
| download | php-git-RELEASE_1_3b6.tar.gz | |
This commit was manufactured by cvs2svn to create tag 'RELEASE_1_3b6'.RELEASE_1_3b6
Diffstat (limited to 'ext/pgsql/tests/18pg_escape_bytea.phpt')
| -rw-r--r-- | ext/pgsql/tests/18pg_escape_bytea.phpt | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/ext/pgsql/tests/18pg_escape_bytea.phpt b/ext/pgsql/tests/18pg_escape_bytea.phpt deleted file mode 100644 index 43f98c4467..0000000000 --- a/ext/pgsql/tests/18pg_escape_bytea.phpt +++ /dev/null @@ -1,28 +0,0 @@ ---TEST-- -PostgreSQL pg_escape_bytea() functions ---SKIPIF-- -<?php include("skipif.inc"); ?> ---FILE-- -<?php -// optional functions - -include('config.inc'); - -$image = file_get_contents(dirname(__FILE__) . '/php.gif'); -$esc_image = pg_escape_bytea($image); - -$db = pg_connect($conn_str); -pg_query($db, 'INSERT INTO '.$table_name.' (num, bin) VALUES (9876, \''.$esc_image.'\');'); -$result = pg_query($db, 'SELECT * FROM '.$table_name.' WHERE num = 9876'); -$rows = pg_fetch_all($result); -$unesc_image = pg_unescape_bytea($rows[0]['bin']); - -if ($unesc_image !== $image) { - echo "NG"; -} -else { - echo "OK"; -} -?> ---EXPECT-- -OK |
