Description of problem: If I include bcompiled file php crashes. Plain PHP works, but not with bcompiled source. I tried to build my own, but it work only with old 0.9.3 version and on only one server. I don't know why, but on other servers self compilation of 0.9.3 have same problems. Main problem is with including bcompiled files containing classes. With PHP CLI works OK everywhere including 1.0.2 from distribution package. Version-Release number of selected component (if applicable): php-bcompiler-1.0.2 How reproducible: just run script Steps to Reproduce: 1. urpmi apache apache-mpm-prefork apache-mod_php php-bcompiler 2. service httpd start 3. copy files from attachment to /var/www/html 4. run from browser http://localhost/testincl.php
Created attachment 2427 [details] test case run testincl.php files testcmp.php is bcompiled test.php file. testcmpx.y.z.php is bcompiled file with this version of bcompiler. index.php is compiler.
Could you try rebuilding php-bcompiler and see if that fixes it? The procedure, if you haven't done this before, is: 1) Locate and download the source RPM from a mirror. It will be called php-bcompiler-1.0.2-2.mga2.src.rpm 2) (As root) urpmi php-bcompiler-1.0.2-2.mga2.src.rpm This will install the build dependencies. 3) rpmbuild --rebuild php-bcompiler-1.0.2-2.mga2.src.rpm This does the rebuild. 4) rpm -Uvh --force php-bcompiler-1.0.2-2.mga2.x86_64.rpm The path to the rpm that was built will be near the end of the output on the screen at the end of step 3. This will install it.
CC: (none) => luigiwalser
It's the same with rebuilded package. I found that if I install package php-eaccelerator, bcompiler 0.9.3 (my compilation) does not work too.
I don't think things like php-apc, php-eaccelerator, and php-bcompiler are meant to be used together. Does php-bcompiler work by itself (either ours or your rebuilt one)?
No, it doesn't. It works only with my compilation of 0.9.3. If I used distribution package or compiled version newer than 0.9.3, it doesn't work.
So rebuilding the package did work for you? Or did you have to compile it some other way for it to work?
As I wrote. Workable is only compiled version 0.9.3. Rebuild of MGA package does not work.
I guess it might work on Mageia 1 since we still have 0.9.3 there. Thomas, do you have any idea about this?
CC: (none) => thomas
Im suffering on allergies and can hardly open my eyes.
Any news with this problem?
CC: (none) => oe
Works fine here on mga2 64bit.
Not for me. You must run index.php for compile script. And after that run testcmp.php.
Keywords: (none) => TriagedCC: (none) => stormi
Please try the latest php-bcompiler-1.0.3-0.svn316143.0.mga2 when it's there.
CC'ing QA. We've asked the original reporter to test and verify that it works, but if anyone from QA wants to get a jump on testing it as well, you may.
CC: (none) => qa-bugs
Before ------ index.php in a browser does nothing # php index.php Extensin loaded OK<hr>Segmentation fault it does produce a testcmp.php though but viewing it in a browser does nothing After ----- rm testcmp.php index.php in a browser still does nothing # php index.php Extensin loaded OK<hr>Segmentation fault Viewing testcmp.php in a browser does nothing
viewing testincl.php does nothing either. I think this should echo some 'stuff'.
Testing with the code from here works ok with either version http://php.net/manual/en/book.bcompiler.php
Closing this now due to Mageia 2 EOL. http://blog.mageia.org/en/2013/11/21/farewell-mageia-2/
Status: NEW => RESOLVEDResolution: (none) => OLD