|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: gib at pganet dot com
New email:
PHP Version: OS:


 [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 ..
vim ext/gibs/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)

./configure --enable-gibs --without-mysql --without-xml
(also tried w/o --without-mysql and --without-xml)
./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


Add a Patch

Pull Requests

Add a Pull Request


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



immediately before 

  PHP_EXTENSION(gibs, $ext_shared)

and it should work
 [2022-03-20 19:28 UTC]
Automatic comment on behalf of shriekdj (author) and web-flow (committer)
Log: Fixed #8228 - updated details for filling bugs to GitHub Issue (#8231)
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Dec 01 10:01:28 2023 UTC