I am trying to play with bcompiler, I manage to get it all install after a bit of work, however when I try to execute some code I get a "Segmentation fault (core dumped)"
The class file that I am trying to compile is:
Code: Select all
<?
class test {
function test() {
print "This Does Nothing";
}
}
?>Code: Select all
[root@web1 examples]# php bcompiler_compile.php class.test.php
WRITING TO class.test.php.phb
PARSE: ./class.test.php
ADDED CLASS: test
Array
(
[0] => test
)
Compiling test
COMPILE test extends ''
DONE testCode: Select all
<?
dl('bcompiler.so');
bcompiler_load('/root/bcompiler/examples/class.test.php.phb');
?>Oh, and the output of bcompiler_read.php is:
Code: Select all
load class.test.php.phb
Array
(
[0] => /root/bcompiler/examples/bcompiler_read.php
)
Array
(
[0] => stdClass
[1] => __PHP_Incomplete_Class
[2] => Directory
[3] => test
)
Done