Bug #13340: get_defined_constants crashed on default value of constant DEFAULT_INCLUDE_PATH
| From: | dacota at iis dot nsk dot su | Date: | Mon, 17 Sep 2001 09:54:13 +0000 |
| Subject: | Bug #13340: get_defined_constants crashed on default value of constant DEFAULT_INCLUDE_PATH | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-66101@lists.php.net to get a copy of this message | ||
From: dacota@iis.nsk.su
Operating system: Win32
PHP version: 4.0CVS-2001-09-17
PHP Bug Type: Reproducible crash
Bug description: get_defined_constants crashed on default value of constant DEFAULT_INCLUDE_PATH
PHP_INCLUDE_PATH defined as NULL in
in config.win32.h
(#define PHP_INCLUDE_PATH NULL)
and when declaring constant in main.c as
REGISTER_MAIN_STRINGL_CONSTANT("DEFAULT_INCLUDE_PATH", PHP_INCLUDE_PATH,
sizeof(PHP_INCLUDE_PATH)-1, CONST_PERSISTENT | CONST_CS);
and it drive to broken zval where str.val = 0
if no value is specified in php.ini
PHP_INCLUDE_PATH should be defined as empty_string or ".;"
--
Edit bug report at: http://bugs.php.net/?id=13340&edit=1