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
Remove windows encoding from `.php` files
[hiphop-php.git]
/
hphp
/
test
/
zend
/
bad
/
Zend
/
tests
/
str_offset_001.php
blob
d58b1e7bdb72ec01bbe298f6229d95cd1d89c2bb
1
<
?php
2
function
foo
(
$x
) {
3
var_dump
(
$x
);
4
}
5
6
$str
=
"abc"
;
7
var_dump
(
$str
[-
1
]);
8
var_dump
(
$str
[
0
]);
9
var_dump
(
$str
[
1
]);
10
var_dump
(
$str
[
2
]);
11
var_dump
(
$str
[
3
]);
12
var_dump
(
$str
[
1
][
0
]);
13
var_dump
(
$str
[
2
][
1
]);
14
15
foo
(
$str
[-
1
]);
16
foo
(
$str
[
0
]);
17
foo
(
$str
[
1
]);
18
foo
(
$str
[
2
]);
19
foo
(
$str
[
3
]);
20
foo
(
$str
[
1
][
0
]);
21
foo
(
$str
[
2
][
1
]);
22
?
>