Export to GitHub

php-for-android - issue #7

Not working on Xoom/Android 3.0 Honeycomb


Posted on Apr 16, 2011 by Grumpy Bear

This might be "won't fix", but figured I'd log it as a ticket in case there's interest. I don't know my way around in C, but I'm happy to help you debug further if you tell me some things to try!

Specs: Model number: Xoom Android version: 3.0.1 Baseband version: N_02.0F.00R Kernel version: 2.6.36.3-g2a65edc android-build@apa28 #1

I've successfully downloaded and installed both SLA4 version 4 and PHP For Android 0.3 (sl4a_r2).

When I start up SLA4 and attempt to run hello_world.php, the console yields the following:

FIX ME! implement getprotobyname() bionic/libc/bionic/stubs.c:378 FIX ME! implement getprotobyname() bionic/libc/bionic/stubs.c:378

Then, instead of being prompted for my name as shown in the screencast, I instead just get a note that says:

"Process has exited. Close terminal? [ Yes / No ]"

Comment #1

Posted on Apr 16, 2011 by Grumpy Bear

Oh. And repeat that for any of the other scripts.

Comment #2

Posted on Apr 16, 2011 by Massive Dog

FIX ME! implement getprotobyname() bionic/libc/bionic/stubs.c:378 is a known issue, ignore that.

About "Process has exited. Close terminal? [ Yes / No ]"... Have you tried with other interpreters SL4A provides like Python or Ruby? Same error?

Comment #3

Posted on Apr 16, 2011 by Swift Ox

I have the same error on COBY MID 7015 Tablet PC with android 2.1. I can not use PHP and do not know what happend.

Comment #4

Posted on Apr 16, 2011 by Massive Dog

I need to know if you have the same issue with Python and Ruby. If so, escalate the issue to SL4A project.

Thanks in advance.

Comment #5

Posted on Jul 13, 2011 by Massive Camel

I got exactly the same behaviour when I tried out phpforandroid on my ASUS Transformer. I tried installing sl4a from their site and then adding php as an interpreter, I also then tried downloading & installing everything from the phpforandroid.net site all with the same "Process has exited. Close terminal? [ Yes / No ]" result.

Installation and running of python scripts worked without any problem. I have had phpforandroid working on my htc desire before so I am familiar with how it works.

Eventually I found a solution:- first click on PFAfExample1.php or PFAfWhereAmI.php and run them in the terminal (the first icon that pops up when you click). These should popup dialog boxes and run.

After running one of those two scripts phpinfo.php starts working as does horoscope.php and hello_world.php. My guess is that the PFAf.... scripts somehow correctly trigger the php interpreter, while the other php scripts do not. Has the syntax for setup of php changed?

The scripts that do not work until you run the PFAfExample1.php script all begin as follows:-

Comment #6

Posted on Nov 28, 2012 by Swift Bear

This might helps someone. Pay close attention to the last line:

getInput( String title[optional, default SL4A Input]: title of the input box, String message[optional, default Please enter value:]: message to display above the input box)

Queries the user for a text input.

Deprecated in r3! Please use dialogGetInput instead.

Comment #7

Posted on Nov 29, 2012 by Massive Dog

Uhm, weird, I'm preparing a new release targeting sl4a r6, I'll review the scripts.

Status: New

Labels:
Type-Defect Priority-Medium