|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2001-01-18 11:02 UTC] verrue dot jean-pierre at cimafap dot msa dot fr
 It is not possible to use PHP cgi with NETSCAPE E.S. 3.51 and INFORMIX because it is imperatively necessary to have INFORMIXSERVER variable in the environment. Alas the environment of scripts cgi is very limited. To be able to use INFORMIX nevertheless, I supplemented the file php.ini by adding a parameter 'INFORMIX.default_server' then I modified the file ifx.ec in order to read this parameter and to place it in the environment Before calling upon 'ifx_connect'. Is it possible to register my modifiaction in a permanent way in PHP? PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 13:00:01 2025 UTC | 
the 'diff -u' output is : ----------------------------------------------------------------------------------- --- ifx.ec Thu Jul 19 10:34:25 2001 +++ ifx.ec.upd Thu Jul 19 10:34:25 2001 @@ -351,6 +351,8 @@ STD_PHP_INI_ENTRY_EX("ifx.max_links", "-1", PHP_INI_SYSTEM, OnUpdateInt, max_links, php_ifx_globals, ifx_globals, display_link_numbers) + STD_PHP_INI_ENTRY("ifx.default_server", NULL, PHP_INI_SYSTEM, + OnUpdateString, default_server, php_ifx_globals, ifx_globals) STD_PHP_INI_ENTRY("ifx.default_host", NULL, PHP_INI_SYSTEM, OnUpdateString, default_host, php_ifx_globals, ifx_globals) STD_PHP_INI_ENTRY("ifx.default_user", NULL, PHP_INI_SYSTEM, @@ -517,9 +519,16 @@ char *hashed_details; int hashed_details_length; + + static char server[40] ; + IFXLS_FETCH(); PLS_FETCH(); + sprintf(server, "INFORMIXSERVER=%s", IFXG(default_server)) ; + putenv(server); + syslog(LOG_DEBUG, "php:%s", server) ; + if (PG(sql_safe_mode)) { if (ZEND_NUM_ARGS()>0) { php_error(E_NOTICE, ------------------------------------------------------------------------------------