|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-04-03 07:46 UTC] krakjoe@php.net
[2013-04-06 04:50 UTC] alipinokio at yahoo dot com
[2017-01-10 07:59 UTC] kalle@php.net
-Status: Open
+Status: Suspended
[2017-01-10 07:59 UTC] kalle@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 12:00:01 2025 UTC |
Description: ------------ PHP 5.3.23 Apache 2.2.16 i'm using bcompiler to compile my php classes,after compile try to load and exec my class functions,in cli evry thing's fine but when i try to load my page using apache2,Bo00om! apche error.log gives {exit signal Segmentation fault (11) }! first time i'm try install php and apache by ap-get,after that try compile both from source code,few days search evry where for solution but this problem still exist! can anyone help me plzzzzzz:| (sorry for my bad english;) ) Test script: --------------- <?php $bytecode = "bytecode/bcompiler_1.phb"; $fileBytecode = fopen($bytecode,"w"); bcompiler_write_header($fileBytecode); bcompiler_write_class($fileBytecode, "test2"); bcompiler_write_class($fileBytecode, "test"); bcompiler_write_footer($fileBytecode); fclose($fileBytecode); class test2 { public function testOuter($data){ return $this->result($data);} protected function result($data){ return ' test2 testOuter result -> '.$data;} } class test { public static $val; public function __construct($data){ $obj = new test2(); test::$val = $obj;} public function callIt($data){ return test::$val->testOuter($data);} } ?> <?php $fileBytecode2 = fopen("bytecode/bcompiler_1.phb","r"); bcompiler_read($fileBytecode); fclose($fileBytecode); $test = new test(); echo $test->callIt('88888888888'); ?> i also use diferent functions like include,bcompiler_(load,parse class,read,...) but same problem...:( Expected result: ---------------- test2 testOuter result -> 88888888888 Actual result: -------------- web browser gives blank page and apache/error.log --> Segmentation fault (11)