Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
php-7.4.33 /
ext /
pdo_oci /
tests /
Delete
Unzip
Name
Size
Permission
Date
Action
bug41996.phpt
491
B
-rw-rw-r--
2022-10-31 11:36
bug44301.phpt
811
B
-rw-rw-r--
2022-10-31 11:36
bug46274.phpt
1.46
KB
-rw-rw-r--
2022-10-31 11:36
bug46274_2.phpt
1.66
KB
-rw-rw-r--
2022-10-31 11:36
bug54379.phpt
1.12
KB
-rw-rw-r--
2022-10-31 11:36
bug57702.phpt
4.25
KB
-rw-rw-r--
2022-10-31 11:36
bug60994.phpt
4.71
KB
-rw-rw-r--
2022-10-31 11:36
bug_33707.phpt
697
B
-rw-rw-r--
2022-10-31 11:36
checkliveness.phpt
1.16
KB
-rw-rw-r--
2022-10-31 11:36
common.phpt
701
B
-rw-rw-r--
2022-10-31 11:36
pdo_oci_attr_action.phpt
1.18
KB
-rw-rw-r--
2022-10-31 11:36
pdo_oci_attr_autocommit_1.phpt
1.65
KB
-rw-rw-r--
2022-10-31 11:36
pdo_oci_attr_autocommit_2.phpt
3.52
KB
-rw-rw-r--
2022-10-31 11:36
pdo_oci_attr_autocommit_3.phpt
1.29
KB
-rw-rw-r--
2022-10-31 11:36
pdo_oci_attr_case.phpt
1.81
KB
-rw-rw-r--
2022-10-31 11:36
pdo_oci_attr_client.phpt
975
B
-rw-rw-r--
2022-10-31 11:36
pdo_oci_attr_client_identifier.phpt
1.38
KB
-rw-rw-r--
2022-10-31 11:36
pdo_oci_attr_client_info.phpt
1.27
KB
-rw-rw-r--
2022-10-31 11:36
pdo_oci_attr_drivername.phpt
420
B
-rw-rw-r--
2022-10-31 11:36
pdo_oci_attr_module.phpt
1.06
KB
-rw-rw-r--
2022-10-31 11:36
pdo_oci_attr_nulls_1.phpt
1.38
KB
-rw-rw-r--
2022-10-31 11:36
pdo_oci_attr_prefetch_1.phpt
1.54
KB
-rw-rw-r--
2022-10-31 11:36
pdo_oci_attr_prefetch_2.phpt
1.18
KB
-rw-rw-r--
2022-10-31 11:36
pdo_oci_attr_server.phpt
856
B
-rw-rw-r--
2022-10-31 11:36
pdo_oci_class_constants.phpt
1.32
KB
-rw-rw-r--
2022-10-31 11:36
pdo_oci_fread_1.phpt
5.19
KB
-rw-rw-r--
2022-10-31 11:36
pdo_oci_quote1.phpt
2.54
KB
-rw-rw-r--
2022-10-31 11:36
pdo_oci_stmt_getcolumnmeta.phpt
10.35
KB
-rw-rw-r--
2022-10-31 11:36
pdo_oci_stream_1.phpt
3.38
KB
-rw-rw-r--
2022-10-31 11:36
pdo_oci_stream_2a.phpt
2.2
KB
-rw-rw-r--
2022-10-31 11:36
pdo_oci_stream_2b.phpt
1.82
KB
-rw-rw-r--
2022-10-31 11:36
pdo_oci_templob_1.phpt
2.53
KB
-rw-rw-r--
2022-10-31 11:36
pecl_bug_11345.phpt
734
B
-rw-rw-r--
2022-10-31 11:36
pecl_bug_6364.phpt
1.55
KB
-rw-rw-r--
2022-10-31 11:36
Save
Rename
--TEST-- Test PDO->quote() for PDO_OCI --SKIPIF-- <?php if (!extension_loaded('pdo') || !extension_loaded('pdo_oci')) die('skip not loaded'); require(__DIR__.'/../../pdo/tests/pdo_test.inc'); PDOTest::skip(); ?> --FILE-- <?php require __DIR__ . '/../../pdo/tests/pdo_test.inc'; $db = PDOTest::factory(); @$db->exec("drop table poq_tab"); $db->query("create table poq_tab (t varchar2(100))"); $stmt = $db->prepare('select * from poq_tab'); // The intent is that the fetched data be identical to the unquoted string. // Remember!: use bind variables instead of PDO->quote() $a = array(null, "", "a", "ab", "abc", "ab'cd", "a\b\n", "'", "''", "a'", "'z", "a''b", '"'); foreach ($a as $u) { $q = $db->quote($u); echo "Unquoted : "; var_dump($u); echo "Quoted : "; var_dump($q); $db->exec("delete from poq_tab"); $db->query("insert into poq_tab (t) values($q)"); $stmt->execute(); var_dump($stmt->fetchAll(PDO::FETCH_ASSOC)); } echo "Done\n"; @$db->exec("drop table poq_tab"); ?> --EXPECT-- Unquoted : NULL Quoted : string(2) "''" array(1) { [0]=> array(1) { ["t"]=> NULL } } Unquoted : string(0) "" Quoted : string(2) "''" array(1) { [0]=> array(1) { ["t"]=> NULL } } Unquoted : string(1) "a" Quoted : string(3) "'a'" array(1) { [0]=> array(1) { ["t"]=> string(1) "a" } } Unquoted : string(2) "ab" Quoted : string(4) "'ab'" array(1) { [0]=> array(1) { ["t"]=> string(2) "ab" } } Unquoted : string(3) "abc" Quoted : string(5) "'abc'" array(1) { [0]=> array(1) { ["t"]=> string(3) "abc" } } Unquoted : string(5) "ab'cd" Quoted : string(8) "'ab''cd'" array(1) { [0]=> array(1) { ["t"]=> string(5) "ab'cd" } } Unquoted : string(4) "a\b " Quoted : string(6) "'a\b '" array(1) { [0]=> array(1) { ["t"]=> string(4) "a\b " } } Unquoted : string(1) "'" Quoted : string(4) "''''" array(1) { [0]=> array(1) { ["t"]=> string(1) "'" } } Unquoted : string(2) "''" Quoted : string(6) "''''''" array(1) { [0]=> array(1) { ["t"]=> string(2) "''" } } Unquoted : string(2) "a'" Quoted : string(5) "'a'''" array(1) { [0]=> array(1) { ["t"]=> string(2) "a'" } } Unquoted : string(2) "'z" Quoted : string(5) "'''z'" array(1) { [0]=> array(1) { ["t"]=> string(2) "'z" } } Unquoted : string(4) "a''b" Quoted : string(8) "'a''''b'" array(1) { [0]=> array(1) { ["t"]=> string(4) "a''b" } } Unquoted : string(1) """ Quoted : string(3) "'"'" array(1) { [0]=> array(1) { ["t"]=> string(1) """ } } Done