Page 1 of 1

Script or executable to test php extensions

Posted: Mon Sep 23, 2002 10:14 am
by lovasco
Dear folks,
when creating a new php extension with the ext_skel script, the process ends with the following information:

> To use your new extension, you will have to execute the following steps:
> 1. $ cd ..
> 2. $ vi ext/pippo/config.m4
> 3. $ ./buildconf
> 4. $ ./configure --[with|enable]-pippo
> 5. $ make
> 6. $ ./php -f ext/pippo/pippo.php
> 7. $ vi ext/pippo/pippo.c
> 8. $ make

Now, step 6 refers to a script or an executable called php, residing in the distribution directory. Unfortunately, that file is not there.
Does any of you know where I can find this executable ?
Thanks in advance,
Luca

Posted: Mon Sep 23, 2002 10:27 am
by nielsene
The php executable reference there is a command-line install of php. Typicall you'll have to configure/make/make install a second copy of php to get this to work. For sanity it often easiest to have to source directories of php so you don't get the web module and your cli-module confused.

With some packaging systems (Debian for example) it is possible to just grab a pre-generated executable, but on most system you'll have to build it yourself.