projects
/
m6w6
/
ext-pq
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
b44c00e
)
fix test if builtin json converter is not available
author
Michael Wallner
<mike@php.net>
Fri, 29 May 2015 09:17:49 +0000
(11:17 +0200)
committer
Michael Wallner
<mike@php.net>
Fri, 29 May 2015 09:17:49 +0000
(11:17 +0200)
tests/conv001.phpt
patch
|
blob
|
history
diff --git
a/tests/conv001.phpt
b/tests/conv001.phpt
index 64488b5164e95c2ae11e6495697942e47b80af23..8533753abc0f6962ca3942125f543ad9603673c3 100644
(file)
--- a/
tests/conv001.phpt
+++ b/
tests/conv001.phpt
@@
-131,7
+131,7
@@
$t = new pq\Types($c);
$c->setConverter(new HStoreConverter($t));
$c->setConverter(new IntVectorConverter($t));
-if (!
defined("pq\\Types::JSON"
)) {
+if (!
(defined("pq\\Types::JSON") && defined("pq\\Result::CONV_JSON")
)) {
$c->setConverter(new JSONConverter($t));
}
$c->setConverter(new BoxConverter($t));