php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #29208 The variable name which ext_skel generates, and the variable name which configu
Submitted: 2004-07-16 13:43 UTC Modified: 2010-12-03 17:35 UTC
From: khagiya1 at yahoo dot co dot jp Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.3.7 OS: linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: khagiya1 at yahoo dot co dot jp
New email:
PHP Version: OS:

 

 [2004-07-16 13:43 UTC] khagiya1 at yahoo dot co dot jp
Description:
------------
The form of an extended module is created by ext_skel.
(_ is contained in that case.)
ex. ext_skel --extname=aaa_bbb_ccc

// config.m4 generated
PHP_ARG_ENABLE(aaa_bbb_ccc, whether to enable aaa_bbb_ccc support,
[  --enable-aaa_bbb_ccc           Enable aaa_bbb_ccc support])
if test "$PHP_AAA_BBB_CCC" != "no"; then
  PHP_NEW_EXTENSION(aaa_bbb_ccc, aaa_bbb_ccc.c, $ext_shared)
fi

I want to take in on a PHP itself.(It isn't extension module, such as .so and .dll.)
I did autoconf by the root directory.

// configure generated
...
echo "$as_me:$LINENO: checking whether to enable aaa_bbb_ccc support" >&5
echo $ECHO_N "checking whether to enable aaa_bbb_ccc support... $ECHO_C" >&6
# Check whether --enable-aaa_bbb_ccc or --disable-aaa_bbb_ccc was given.
if test "${enable_aaa_bbb_ccc+set}" = set; then
  enableval="$enable_aaa_bbb_ccc"
  PHP_AAABBBCCC=$enableval
else

  PHP_AAABBBCCC=no
...

Although we expected that PHP_AAA_BBB_CCC was outputted, we are outputted with PHP_AAABBBCCC.
It will be linked even if it doesn't specify an option( --enable-aaa_bbb_ccc ) to be configure.

It was avoidable when performing it as follows.
[[patch]]

Index: aclocal.m4
===================================================================
RCS file: /home/cvsroot/Framework/php/php-4.3.7/aclocal.m4,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 aclocal.m4
*** aclocal.m4  14 Jun 2004 01:09:21 -0000      1.1.1.1
--- aclocal.m4  16 Jul 2004 11:17:29 -0000
***************
*** 512,518 ****
  dnl the PHP_ARG_ANALYZE_EX.
  dnl
  AC_DEFUN([PHP_ARG_ENABLE],[
! PHP_REAL_ARG_ENABLE([$1],[$2],[$3],[$4],PHP_[]translit($1,a-z-,A-Z_),[ifelse($
5,,yes,$5)])
  ])

  AC_DEFUN([PHP_REAL_ARG_ENABLE],[
--- 512,518 ----
  dnl the PHP_ARG_ANALYZE_EX.
  dnl
  AC_DEFUN([PHP_ARG_ENABLE],[
! PHP_REAL_ARG_ENABLE([$1],[$2],[$3],[$4],PHP_[]translit($1,a-z_-,A-Z__),[ifelse
($5,,yes,$5)])
  ])

  AC_DEFUN([PHP_REAL_ARG_ENABLE],[


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-03 17:35 UTC] jani@php.net
-Status: Open +Status: Bogus -Package: Feature/Change Request +Package: *General Issues
 [2010-12-03 17:35 UTC] jani@php.net
Incomprehensible report. Plus if I understood correctly, this works fine nowadays..
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 25 15:00:03 2025 UTC