repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix memoization of functions called with keyset arguments
[hiphop-php.git]
/
hphp
/
test
/
quick
/
json_last_error_scalar.php
blob
4974cae18c8e9cd5c8efa26b77cee57f2a4fe8fc
1
<
?php
2
$data
= [
3
'null'
,
4
'false'
,
5
'true'
,
6
'"abc"'
,
7
'"ab
\"
c"'
,
8
'0'
,
9
'0.45'
,
10
'-0.5'
,
11
'invalid'
,
12
];
13
14
foreach
(
$data
as
$str
) {
15
echo
"JSON:
$str\n
"
;
16
var_dump
(
json_decode
(
$str
));
17
echo
"Error: "
,
json_last_error
(),
"
\n
"
;
18
}