#3622 [Opn->]: [solved] HTTP_GET/POST vars are not set.

From: Date: Tue, 01 Oct 2002 18:54:47 +0000
Subject: #3622 [Opn->]: [solved] HTTP_GET/POST vars are not set.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-21042@lists.php.net to get a copy of this message
ID: 3622 Updated by: hholzgra@php.net Reported By: kir@astrive.ru -Status: Open +Status: Won\'t fix Bug Type: Other Operating System: Solaris 7 x86 PHP Version: 3.0 Latest CVS (25/02/2000) New Comment: We are sorry, but can not support PHP 3 related problems anymore. Momentum is gathering for PHP 5, and we think supporting PHP 3 will lead to a waste of resources which we want to put into getting PHP 5 ready. Ofcourse PHP 4 will will continue to be supported for the forseeable future. Previous Comments: ------------------------------------------------------------------------ [2000-02-25 11:26:03] kir@astrive.ru My configure line: ./configure \ --with-gd --with-oracle=/u/oracle7 \ --with-mysql \ --with-config-file-path=/h/home/www/conf \ --with-apxs=/h/home/www/bin/apxs \ --enable-debug --enable-magic-quotes=yes \ --enable-memory-limit=yes --enable-url-fopen-wrapper=no \ --enable-sysvsem=yes --enable-sysvshm=yes \ --enable-track-vars=yes --with-system-regex \ --enable-versioning --enable-safe-mode I faced the problem when HTTP_*_VARS were no set. I dig it out and found that sometimes gpc_order variable in php3_ini structure contains garbag like "mod_php3.c" or "<IfModule>". Later I found that in function static void *php3_merge_dir(pool *p, void *basev, void *addv) I get this garbage from basev. So I looked at *php3_create_dir(pool * p, char *dummy) function to find out what is wrong. I changed code of this function to make it more understanable and (IMHO) more correct. So, here is my version of this function (all stuff related to mod_php3.c): /* * Create the per-directory config structure with defaults from php3_ini_master */ static void *php3_create_dir(pool * p, char *dummy) { php3_ini_structure *new; static int first_time = 1; php3_module_startup(); new = (php3_ini_structure *) palloc(p, sizeof(php3_ini_structure)); memcpy(new,&php3_ini_master,sizeof(php3_ini_structure)); return new; } ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=3622&edit=1

« previous php.bugs (#21042) next »