pbiggar / phc

A compiler for PHP
132 stars 37 forks source link

PHP 5.2.12 / Zend Engine v2.2.0 & Apache/2.2.10 on Slackware 12.2 #127

Closed pbiggar closed 9 years ago

pbiggar commented 9 years ago
I've recompiled php with --enable-embed and still won't work to compile
scripts (when run configure it  says that I should have php SAPI, even
though it is enabled). What should I do? Can I help fixing this issue?

Original issue reported on code.google.com by cezar.lucan on 2010-01-04 00:47:34

pbiggar commented 9 years ago
I get the issue too, how to deal?

Original issue reported on code.google.com by fuwencheng on 2010-04-29 16:46:48

pbiggar commented 9 years ago
Me too with PHP 5.3.3: PHP perfectly compiled with sapi (about 7MB, so is obviously
not standard PHP), but ./configure of PHC says it doesn't find SAPI.
I'm gonna try an older version of PHP to see if it works.

Original issue reported on code.google.com by Riksoft on 2010-09-14 08:39:00

pbiggar commented 9 years ago
I presume you have installed php so that phc can find it? Does specifying an install
directory with --with=php=your_dir work? If that's the problem, can you recommend a
way to make this clearer in manual or install docs or whatever? This seems to be a
common problem.

If php is installed OK, please attach a config.log, and I can take a look.

Original issue reported on code.google.com by paul.biggar on 2010-09-14 18:53:57

pbiggar commented 9 years ago
The problem is caused by php version: I used 5.3.3. Repeating all the process with 5.2.14
it's all OK, it found SAPI.

PS: Where I cand read what do I need to deploy a compiled php file? And if I stop to
php-->.c, what do I need to compile that C source in Windows?

Original issue reported on code.google.com by Riksoft on 2010-09-15 07:33:54

pbiggar commented 9 years ago
I don't know how you can compile it in windows, but if you figure it out please let
us know.

The manual describes how to deploy a compiled php file in a web server.

Original issue reported on code.google.com by paul.biggar on 2010-09-22 04:42:16

pbiggar commented 9 years ago
i've spun the PHP 5.3.3 into a new bug, bug 128, but it looks like the problem here
is related to invalid paths. If this is still a problem, please repoen.

(I apologize for how long it took to reply, we stopped getting mail from issues, and
I didn't notice)

Original issue reported on code.google.com by paul.biggar on 2010-09-29 00:56:14

pbiggar commented 9 years ago
did u install sapi as well as the headers?
also when building only 1 sapi client is allowed per compile.
so if yer building the apache sapi, embed sapi will not compile
I have to do two passes, 1 for apache 1 for the embed sapi
also install the headers as well

make
make install-cli install-sapi install-headers

Original issue reported on code.google.com by laffintoo on 2010-12-23 04:34:27

pbiggar commented 9 years ago
It would be very nice having a monolitic .tgz, all-in-one, so that would be impossibile
to have problems with dependencies.

Often this only little tricks make a product spreads all over the world vs been only
used by a small niche. Take my case: after spending some days trying and looking for
a way to compile a script for linux and windows, I got bcompiler though it is only
bytecode compiler.

IMHO, should also be explained how to :
- deploy a compiled php script to other Linux computers 
- how to compile a generated .c file (script->phc->.c) with some c free compiler on
Windows, because one of the strong point of PHP is the Win/*nix presence, and should
be the same with phc compiled programs.

Without those 2 point it's a great software, but it seems a stop 1 mt from the finish
line of the World Championship.

Original issue reported on code.google.com by Riksoft on 2010-12-23 07:26:35

pbiggar commented 9 years ago
Riksoft: that would certainly be a nice addition to the manual. If you wrote it, we
would certainly include it...

Original issue reported on code.google.com by paul.biggar on 2010-12-23 16:52:40

pbiggar commented 9 years ago
I'll be very glad to write it down... if only I knew how to answer the questions I asked!
:-)

Original issue reported on code.google.com by Riksoft on 2010-12-23 17:32:25

pbiggar commented 9 years ago
Riksoft: This isnt a good medium to work it out; maybe ask on the mailing list and we
can get through this.

Original issue reported on code.google.com by paul.biggar on 2010-12-23 17:38:31

pbiggar commented 9 years ago
php5.3.3 sapi not found due to libphp5.so not update even re-configured, so make clean;
make; make install

but, when re-compile phc, something wrong, due to zend-api of 5.3 is slightly difference
with 5.2.

Original issue reported on code.google.com by zouzj.2009 on 2011-01-26 03:57:32

pbiggar commented 9 years ago
Hi. phc does not yet support PHP 5.3.x. Please take a look in the following post: http://www.phpcompiler.org/lists/phc-internals/2010-December/005904.html
. There's a patch there that may enable PHP 5.3.x support for optmizations, but it
is not currently working for codegen.

Original issue reported on code.google.com by logytech on 2011-01-26 10:06:11