--SKIPIF--
<?php
include "_skipif.inc";
+_ext("json");
?>
--INI--
date.timezone=UTC
return [ $this->types["hstore"]->oid ];
}
- function convertFromString($string) {
+ function convertFromString($string, $type) {
return eval("return [$string];");
}
- function convertToString($data) {
+ function convertToString($data, $type) {
$string = "";
foreach ($data as $k => $v) {
if (isset($v)) {
];
}
- function convertFromString($string) {
+ function convertFromString($string, $type) {
return array_map("intval", explode(" ", $string));
}
- function convertToString($data) {
+ function convertToString($data, $type) {
return implode(" ", $data);
}
}
return [ $this->types["json"]->oid ];
}
- function convertFromString($string) {
- return json_decode($string);
+ function convertFromString($string, $type) {
+ return json_decode($string, true);
}
- function convertToString($data) {
+ function convertToString($data, $type) {
return json_encode($data);
}
}
int(1343423)
}
[3]=>
- object(stdClass)#%d (3) {
+ array(3) {
["int"]=>
int(123)
["obj"]=>
- object(stdClass)#%d (3) {
+ array(3) {
["a"]=>
int(1)
["b"]=>
string(3) "UTC"
}
[17]=>
- object(pq\DateTime)#159 (4) {
+ object(pq\DateTime)#%d (4) {
["format"]=>
string(14) "Y-m-d H:i:s.uO"
["date"]=>