2011-02-09 08:50:35     PHP5 with appweb

Document created by Aaronwu Employee on Aug 26, 2013
Version 1Show Document
  • View in full screen mode

2011-02-09 08:50:35     PHP5 with appweb

Jürgen Schmitz (GERMANY)

Message: 98026   

 

Hi!

 

Did someone every use PHP on Blackfin? I've ported latest appweb including PHP5 support (see patches section). EJScript is working without problems but calling phpinfo() twice crashes:

 

NULL pointer access

Deferred Exception context

CURRENT PROCESS:

COMM=appweb PID=225  CPU=0

TEXT = 0x02458000-0x0245cb94        DATA = 0x02480b94-0x02481024

BSS = 0x02481024-0x02460000  USER-STACK = 0x0247fe90

 

I know, PHP5 is very big, requires much memory, etc. However, using PHP is not only my decision.

TranslateQuoteReplyEditDelete

 

 

2011-02-09 10:18:53     Re: PHP5 with appweb

Mike Frysinger (UNITED STATES)

Message: 98034   

 

we've used php before, just not really tested appweb

QuoteReplyEditDelete

 

 

2011-02-12 11:50:20     Re: PHP5 with appweb

Robert Cochran (UNITED STATES)

Message: 98114   

 

we've used php before, just not really tested appweb

 

---

 

Mike, did you use it with BOA?  Are there any patch files or info available on the work that was done?

 

I did come across this external link on BOA + PHP:   www.menie.org/georges/uClinux/boa-php.html

 

QuoteReplyEditDelete

 

 

2011-02-12 14:26:25     Re: PHP5 with appweb

Mike Frysinger (UNITED STATES)

Message: 98117   

 

there is no special boa modification needed.  simply build php as a cgi binary, register the php extension in the boa conf as a cgi, and then set the shebang on the php files to point to the php-cgi binary.

 

$ cat test.php

#!/usr/bin/php-cgi

<?php

echo "HI!";

?>

 

$ ./test.php

Content-type: text/html

 

HI!

QuoteReplyEditDelete

 

 

2011-02-14 04:54:49     Re: PHP5 with appweb

Jürgen Schmitz (GERMANY)

Message: 98153   

 

Could you try this:

 

<?php

echo "HI!";

phpinfo();

?>

 

That crashed sometimes with NULL pointer.

 

However, PHP as CGI is a big performance issue, even on multi many core computer center server systems.

TranslateQuoteReplyEditDelete

 

 

2011-02-14 12:37:29     Re: PHP5 with appweb

Mike Frysinger (UNITED STATES)

Message: 98160   

 

this is an embedded system that provides a web server for convenience.  do you really need to be handling thousands of transactions a second ?  if the PHP as a CGI is really too much of a performance issue, then boa wont work at all.

QuoteReplyEditDelete

Attachments

    Outcomes