Page Menu
Home
WMGMC Issues
搜索
Configure Global Search
登录
Files
F16199
5to4.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
订阅
标记用于日后
授予令牌
Size
728 B
Referenced Files
None
订阅者
None
5to4.php
View Options
<?php
php5to4
(
"../spyc.php"
,
'spyc-latest.php4'
);
function
php5to4
(
$src
,
$dest
)
{
$code
=
file_get_contents
(
$src
);
$code
=
preg_replace
(
'#(public|private|protected)
\s
+
\$
#i'
,
'var
\$
'
,
$code
);
$code
=
preg_replace
(
'#(public|private|protected)
\s
+static
\s
+
\$
#i'
,
'var
\$
'
,
$code
);
$code
=
preg_replace
(
'#(public|private|protected)
\s
+function#i'
,
'function'
,
$code
);
$code
=
preg_replace
(
'#(public|private|protected)
\s
+static
\s
+function#i'
,
'function'
,
$code
);
$code
=
preg_replace
(
'#throw new Exception
\\
(([^)]*)
\\
)#i'
,
'trigger_error($1,E_USER_ERROR)'
,
$code
);
$code
=
str_replace
(
'self::'
,
'$this->'
,
$code
);
$f
=
fopen
(
$dest
,
'w'
);
fwrite
(
$f
,
$code
);
fclose
(
$f
);
print
"Written to $dest.
\n
"
;
}
File Metadata
详情
附加的
Mime Type
text/x-php
Expires
9月 12 Fri, 2:48 AM (1 d, 2 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5663
默认替代文本
5to4.php (728 B)
Attached To
Mode
rMAILCOW mailcow-tracking
附加的
Detach File
Event Timeline
Log In to Comment