php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #3483 phpinfo, info missing
Submitted: 2000-02-14 23:14 UTC Modified: 2001-02-10 14:07 UTC
From: chlor at schou dot dk Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 3.0.14 OS: Linux
Private report: No CVE-ID: None
 [2000-02-14 23:14 UTC] chlor at schou dot dk
Some text strings are missing when "phpinfo()" output to screen.

Some variables in "build-defs.h.in" was missing.
I fixed them with this line:
 perl -i -pe 's/^(#define PHP_)(\w+)(\s+)""$/$1$2$3"\@$2\@"/' build-defs.h.in

Then I also added them to "configure.in":
*** php-3.0.14/configure.in	Thu Jan 13 14:16:04 2000
--- /usr/src/php/configure.in	Tue Feb 15 03:38:35 2000
***************
*** 1056,1061 ****
--- 1056,1064 ----
  ],[
    AC_MSG_RESULT(no)
  ])
+ AC_SUBST(IMAGICK_INCLUDE)
+ AC_SUBST(IMAGICK_LFLAGS)
+ AC_SUBST(IMAGICK_LIBS)
  
  AC_MSG_CHECKING(for Oracle support)
  AC_ARG_WITH(oracle,
***************
*** 1463,1468 ****
--- 1466,1474 ----
  ],[
    AC_MSG_RESULT(no)
  ])
+ AC_SUBST(MYSQL_INCLUDE)
+ AC_SUBST(MYSQL_LFLAGS)
+ AC_SUBST(MYSQL_LIBS)
  
  AC_MSG_CHECKING(for mSQL support)
  AC_ARG_WITH(msql,
***************
*** 1489,1494 ****
--- 1495,1503 ----
  ],[
    AC_MSG_RESULT(no)
  ])
+ AC_SUBST(MSQL_INCLUDE)
+ AC_SUBST(MSQL_LFLAGS)
+ AC_SUBST(MSQL_LIBS)
  
  AC_MSG_CHECKING(for PostgresSQL support)
  AC_ARG_WITH(pgsql,
***************
*** 1530,1535 ****
--- 1539,1547 ----
  ],[
    AC_MSG_RESULT(no)
  ])
+ AC_SUBST(PGSQL_INCLUDE)
+ AC_SUBST(PGSQL_LFLAGS)
+ AC_SUBST(PGSQL_LIBS)
  
  AC_MSG_CHECKING(for IBM DB2 support)
  AC_ARG_WITH(ibm-db2,
***************
*** 1691,1697 ****
  ],[
    AC_MSG_RESULT(no)
  ])
! 
  AC_MSG_CHECKING(for Cybercash MCK support)
  AC_ARG_WITH(mck,
  [  --with-mck[=DIR]        Include Cybercash MCK support. DIR is the cybercash
--- 1703,1711 ----
  ],[
    AC_MSG_RESULT(no)
  ])
! AC_SUBST(LDAP_LFLAGS)
! AC_SUBST(LDAP_INCLUDE)
! AC_SUBST(LDAP_LIBS)
  AC_MSG_CHECKING(for Cybercash MCK support)
  AC_ARG_WITH(mck,
  [  --with-mck[=DIR]        Include Cybercash MCK support. DIR is the cybercash
***************
*** 2392,2398 ****
    DEBUG_CFLAGS=""
  ]) 
  AC_SUBST(DEBUG_CFLAGS)
! AC_SUBST(PHP_DEBUG)
  
  
  AC_MSG_CHECKING(whether to enable safe mode by default)
--- 2406,2412 ----
    DEBUG_CFLAGS=""
  ]) 
  AC_SUBST(DEBUG_CFLAGS)
! AC_SUBST(DEBUG)
  
  
  AC_MSG_CHECKING(whether to enable safe mode by default)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-02-16 18:24 UTC] sas at cvs dot php dot net
Well, if you want to have this information in phpinfo() you need to find a better way to propagate the information. I don't want zillions of AC_SUBSTs, because they slow down file creation times dramatically.
 [2000-02-16 20:37 UTC] chlor at schou dot dk
There must have been a reason why this information was included in phpinfo(), such as PGSQL_INCLUDE.

One way to include it could be with a new flag:
  --with-info

There is no reason to have
 #define PHP_MYSQL_INCLUDE       "" 
in build-defs.h.in if it is not used. Either 'out or in'.

 [2001-02-10 14:07 UTC] jimw@php.net
php4 has a whole new infrastructure for configuration and phpinfo() that deals with this sort of thing.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 23:01:26 2024 UTC