Error: call to undefined function "var_dump"
Posted: July 26th, 2014, 11:25 am
I try compiling script (Phalanger 3):
<?php
var_dump($_SERVER['argv']);
print 'Hello world!' . PHP_EOL;
by:
phpc /target:exe /root:. /recurse:. /static+ /debug- test.php
i copy PhpNetCore.dll to exe file directory
when execute program test.exe
then i got error
> Error: call to undefined function "var_dump"
same result for print_r($_SERVER['argv']);
> Error: call to undefined function "print_r"
and any other core function such a file_get_contents.
<?php
var_dump($_SERVER['argv']);
print 'Hello world!' . PHP_EOL;
by:
phpc /target:exe /root:. /recurse:. /static+ /debug- test.php
i copy PhpNetCore.dll to exe file directory
when execute program test.exe
then i got error
> Error: call to undefined function "var_dump"
same result for print_r($_SERVER['argv']);
> Error: call to undefined function "print_r"
and any other core function such a file_get_contents.