Skip to content Skip to sidebar Skip to footer

All Exec Related Php Functions Segfault

I build PHP for android using the NDK. Most functions tested so far run perfectly, except... All exec related php function (like exec, shell_exec, popen, ..) all sefgault. php samp

Solution 1:

Thanx to the anonymous who send me an email with some usefull tips.

As it turns out php uses popen for al its exec related code. A some might know androids bionic version of popen was quite buggy up until ICS and it is know the corrupt the stack.

I modified php to use a modified verion of popen Now php exec/shell_exec etc all run without any problems

Post a Comment for "All Exec Related Php Functions Segfault"