projects
/
pharext
/
pharext
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
better help for positional args
[pharext/pharext]
/
tests
/
autoload.php
1
<
?php
2
set_include_path
(
__DIR__
.
"/../src:"
.
get_include_path
());
3
spl_autoload_register
(
function
(
$class
) {
4
if
(
strncmp
(
$class
,
"pharext
\\
"
,
strlen
(
"pharext
\\
"
))) {
5
return false
;
6
}
7
return include
__DIR__
.
"/../src/"
.
strtr
(
$class
,
"_
\\
"
,
"//"
).
".php"
;
8
});