# how to disable extension in cli

- Thread: https://externals.io/message/601
- Original archive: https://news-web.php.net/php.internals/601
- Started by Wojtek Meler on 2003-04-02T12:16:56+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #601 — Wojtek Meler — 2003-04-02T12:16:56+00:00

URL: https://externals.io/message/601#601

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

---

## #625 — Wojtek Meler — 2003-04-03T05:29:47+00:00

URL: https://externals.io/message/601#625 · In reply to: #601

> 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

---

## #779 — marcus.boerger@t-online.de — 2003-04-07T23:25:41+00:00

URL: https://externals.io/message/601#779 · In reply to: #601

At 07:29 03.04.2003, Wojtek Meler wrote:
>
> > […]
> expected - it
> > […]
> mymodule.o
> > […]
>
>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
