bcompiler core dump?
Posted: Tue Oct 04, 2005 5:19 am
Hi,
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:
When I compile is I get:
Which looks fine to me, but when I try and run the following code:
It just results in a segmentation fault.... Anyone have any ideas?
Oh, and the output of bcompiler_read.php is:
The __PHP_Incomplete_Class is probably the only thing that worries me
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