#27796 [Fbk->Opn]: exec()/system()/etc cannot execute Zerolink executables
| From: | wjtregaskis at students dot latrobe dot edu dot au | Date: | Wed, 31 Mar 2004 12:20:08 +0000 |
| Subject: | #27796 [Fbk->Opn]: exec()/system()/etc cannot execute Zerolink executables | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-57213@lists.php.net to get a copy of this message | ||
ID: 27796
User updated by: wjtregaskis at students dot latrobe dot edu dot au
Reported By: wjtregaskis at students dot latrobe dot edu dot au
-Status: Feedback
+Status: Open
Bug Type: Unknown/Other Function
Operating System: MacOS 10.3.3
PHP Version: 4.3.4
New Comment:
Just to clarify, Zerolink is Apple's system for linking
object files within an executable at runtime. It's on
by default in XCode. The premise is that for large apps
you can run them immediately after compilation, linking
on-the-fly only the [small, ideally] fraction of them
needed. The side-effect of this is that these apps have
to be launched in some sort of special environment to
facilitate this runtime linking, so you can't execute
them normally.
I guess it would be possible to execute such apps so
that they do work [by extending the exec code], but I
don't see a need - it's easy enough to just compile with
Zerolink off (the "old fashioned way") and it's more the
fact that this can catch you out and is terrible to
debug that concerns me.
Previous Comments:
------------------------------------------------------------------------
[2004-03-31 07:11:50] wez@php.net
Please give a short summary of what zero-link is, and why
it is broken.
------------------------------------------------------------------------
[2004-03-31 06:27:09] wjtregaskis at students dot latrobe dot edu dot
au
Description:
------------
This isn't a php bug as such, more a warning to other
Mac php hackers - any CLI apps built with Zerolink
enabled cannot be launched by any of php's program
control commands - they all return the result '6'. The
solution of course is to rebuild the apps with Zerolink
off.
This is worth noting somewhere on the php pages, as it's
an incredibly hard bug to track down - it took me 4
hours, and that's with the hunch that Zerolink would be
the culprit (given the myriad of other similar problems
it causes).
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27796&edit=1