php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8228 external module not compiled into php binary
Submitted: 2000-12-13 08:22 UTC Modified: 2000-12-14 04:41 UTC
From: gib at pganet dot com Assigned:
Status: Closed Package: Unknown/Other Function
PHP Version: 4.0.3pl1 OS: RedHat 6.2
Private report: No CVE-ID: None
 [2000-12-13 08:22 UTC] gib at pganet dot com
I'm using php4.0.3pl1

I wanted to write my own ext modult to php, so I did this:

tar xvfz php-4.0.3pl1.tar.gz
cd php-4.0.3pl1
cd ext
./ext_skel --extname=gibs --xml --assign-params
(I have also tried w/o --xml and --assign-params
cd ..
./buildconf
vim ext/gibs/config.m4

--config.m4--
PHP_ARG_ENABLE(gibs, whether to enable gibs support,
dnl Make sure that the comment is aligned:
[  --enable-gibs           Enable gibs support])

if test "$PHP_GIBS" != "no"; then
  dnl If you will not be testing anything external, like existence of
  dnl headers, libraries or functions in them, just uncomment the
  dnl following line and you are ready to go.
  dnl Write more examples of tests here...
  PHP_EXTENSION(gibs, $ext_shared)
fi
-------------

./configure --enable-gibs --without-mysql --without-xml
(also tried w/o --without-mysql and --without-xml)
make
./php -f ext/gibs/gibs.php
Module gibs is not compiled into PHP

huh what is the problem?

after many tries I have downloaded php-latest (php4-200012130345)

I followed the previous steps, and after running ./php -f ext/gibs/gibs.php it resonded with:
Congratulations, you have successfully modified ext/gibs/config.m4, module gibs is compiled into PHP

Is php4pl1 buggy?

can I use php4-200012130345 (it is stable enough?) or I should wait for php 4.0.4, or am I doing something wrong?


regards, gib

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-14 04:41 UTC] hholzgra@php.net
you lost one line from the config.m4 template

add

  AC_DEFINE(HAVE_GIBS, 1, [ ])

immediately before 

  PHP_EXTENSION(gibs, $ext_shared)

and it should work
 [2022-03-20 19:28 UTC] git@php.net
Automatic comment on behalf of shriekdj (author) and web-flow (committer)
Revision: https://github.com/php/php-src/commit/3b9af50465c9279987c842b2f61f2f24e21c543b
Log: Fixed #8228 - updated details for filling bugs to GitHub Issue (#8231)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 05:01:28 2024 UTC