FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
msgpack/php/msgpack.php at java-0.5.1 · WanderWalker/msgpack · GitHub
WanderWalker
msgpack
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
msgpack
/
php
/
msgpack.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
21 lines (20 loc) · 502 Bytes
Breadcrumbs
msgpack
/
php
/
msgpack.php
Copy path
File metadata and controls
21 lines (20 loc) · 502 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
$
br
= (
php_sapi_name
() ==
"
cli
"
)?
""
:
"
<br>
"
;
if
(!
extension_loaded
(
'
msgpack
'
)) {
dl
(
'
msgpack.
'
.
PHP_SHLIB_SUFFIX
);
}
$
module
=
'
msgpack
'
;
$
functions
=
get_extension_funcs
(
$
module
);
echo
"
Functions available in the test extension:
$
br
\n"
;
foreach
(
$
functions
as
$
func
) {
echo
$
func
.
"
$
br
\n"
;
}
echo
"
$
br
\n"
;
$
function
=
$
module
.
'
_serialize
'
;
if
(
extension_loaded
(
$
module
)) {
$
str
=
$
function
(
$
module
);
}
else
{
$
str
=
"
Module
$
module
is not compiled into PHP
"
;
}
echo
"
$
str
\n"
;
?>
Back
|
FazBrowse Home
|
New Git URL