Script or executable to test php extensions

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
lovasco
Forum Newbie
Posts: 15
Joined: Fri May 17, 2002 4:25 am
Location: Milan - Italy

Script or executable to test php extensions

Post 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
User avatar
nielsene
DevNet Resident
Posts: 1834
Joined: Fri Aug 16, 2002 8:57 am
Location: Watertown, MA

Post 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.
Post Reply