how to disable extension in cli

php.internals

Wojtek Meler

23 years ago
Is there a way to tell PHP to not include some sources in CLI build? PHP_NEW_EXTENSION( mymodule , mymodule.c , nocli) doesn't work as I expected - it doesn't include extension in main/internal_functions_cli.c but it link mymodule.o to sapi/cli/php. regards, Wojtek

Wojtek Meler

23 years ago
On Wed, Apr 02, 2003 at 02:16:56PM +0200, Wojtek Meler wrote:
> Is there a way to tell PHP to not include some sources in CLI build? > PHP_NEW_EXTENSION( mymodule , mymodule.c , nocli) doesn't work as I expected - it > doesn't include extension in main/internal_functions_cli.c but it link mymodule.o > to sapi/cli/php.
attached patch helps :) Would you be so kind and put it into CVS? regards, Wojtek

(Marcus Börger)

23 years ago
At 07:29 03.04.2003, Wojtek Meler wrote:
>On Wed, Apr 02, 2003 at 02:16:56PM +0200, Wojtek Meler wrote: > > Is there a way to tell PHP to not include some sources in CLI build? > > PHP_NEW_EXTENSION( mymodule , mymodule.c , nocli) doesn't work as I > expected - it > > doesn't include extension in main/internal_functions_cli.c but it link > mymodule.o > > to sapi/cli/php. > >attached patch helps :) > >Would you be so kind and put it into CVS?
From simply looking at it i see at least that without a patch the file is wrong. (The patch is against the wrong file (correct would be acinclude.m4)) marcus

Wojtek Meler

23 years ago
On Tue, Apr 08, 2003 at 01:25:41AM +0200, Marcus Börger wrote:
> From simply looking at it i see at least that without a patch the file is > wrong. > (The patch is against the wrong file (correct would be acinclude.m4))
I'm not familiar with automake. I've attached corrected patch. regards, Wojtek