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
/
incdec-string.php
blob
d3101c56772d7b26ea48b2b740f1333339535dbc
1
<
?php
2
3
function
foo
() {
4
$go
=
function
(
$start
) {
5
$x
=
$start
;
6
for
(
$i
=
0
;
$i
<
10000
;
++
$i
) {
7
++
$x
;
8
if
((
$i
%
101
) ==
0
) {
var_dump
(
$x
);
var_dump
(
strlen
(
$x
)); }
9
}
10
};
11
$go
(
'a'
);
12
$go
(
'A'
);
13
$go
(
'A1'
);
14
$go
(
'a1'
);
15
}
16
foo
();
17
18
function
bar
() {
19
$x
=
'1'
;
20
var_dump
(
is_int
(
++
$x
));
21
}
22
bar
();