#27796 [Opn->Fbk]: exec()/system()/etc cannot execute Zerolink executables

From: Date: Fri, 17 Sep 2004 13:22:56 +0000
Subject: #27796 [Opn->Fbk]: exec()/system()/etc cannot execute Zerolink executables
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969364094@lists.php.net to get a copy of this message
ID: 27796 Updated by: vrana@php.net Reported By: wjtregaskis at students dot latrobe dot edu dot au -Status: Open +Status: Feedback Bug Type: Documentation problem Operating System: MacOS 10.3.3 PHP Version: 4.3.4 New Comment: What do you mean by "CLI apps built with Zerolink enabled"? Which part of the documentation should be updated? Previous Comments: ------------------------------------------------------------------------ [2004-04-07 10:06:33] wjtregaskis at students dot latrobe dot edu dot au As an extension of this problem, it's also true the same error code (6, ENXIO) is returned if you try to execute an application which connects to the WindowServer (under Mac OS X). Only the console & root users may do this, which usually [and hopefully] excludes www, which seems to be the user that is used when executing via exec(). ------------------------------------------------------------------------ [2004-03-31 07:23:16] wez@php.net So it's something for the docs. ------------------------------------------------------------------------ [2004-03-31 07:21:38] wjtregaskis at students dot latrobe dot edu dot au P.S. XCode is Apple's universal GUI IDE. Zerolink is (so far as I've seen) too difficult to allow for in a normal makefile, so non-XCode projects are exempt from this problem. ------------------------------------------------------------------------ [2004-03-31 07:20:08] wjtregaskis at students dot latrobe dot edu dot au 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. ------------------------------------------------------------------------ [2004-03-31 07:11:50] wez@php.net Please give a short summary of what zero-link is, and why it is broken. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/27796 -- Edit this bug report at http://bugs.php.net/?id=27796&edit=1

« previous php.doc (#969364094) next »