[PHP-DEV] Bug #12853: Crash when open_file_for_scanning is adding handle to CG(open_files)

2001-08-20 Thread dacota

From: [EMAIL PROTECTED]
Operating system: Windows NT 4.0 SP5
PHP version:  4.0CVS-2001-08-20
PHP Bug Type: Reproducible crash
Bug description:  Crash when open_file_for_scanning is adding handle to CG(open_files)

Apache/1.3.19 (Win32) PHP/4.0.7-dev rus/PL30.4
Win32 TS Debug build, only compiled-in modules.

any php scripts (i.e. )

send_php:
if (AP(in_request)) {
zend_file_handle fh;

fh.filename = r->filename;
fh.opened_path = NULL;
fh.free_filename = 0;
fh.type = ZEND_HANDLE_FILENAME;
>   zend_execute_scripts(ZEND_INCLUDE TSRMLS_CC, 1, &fh);
return OK;
}
we falling into this branch and CG struct isn't initialized since will
initialize further in this function.

-- 
Edit bug report at: http://bugs.php.net/?id=12853&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12854: In msvc project debug output directory entered as "..\Debug_TS"

2001-08-20 Thread dacota

From: [EMAIL PROTECTED]
Operating system: Windows NT4.0 SP5
PHP version:  4.0CVS-2001-08-20
PHP Bug Type: Apache related
Bug description:  In msvc project debug output directory entered as "..\Debug_TS"

In msvc project debug output directory entered as "..\Debug_TS" instead of
"..\..\Debug_TS"

-- 
Edit bug report at: http://bugs.php.net/?id=12854&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12861: get_defined_constants gots AV

2001-08-20 Thread dacota

From: [EMAIL PROTECTED]
Operating system: WindowsNT
PHP version:  4.0CVS-2001-08-20
PHP Bug Type: Arrays related
Bug description:  get_defined_constants gots AV

Function get_defined_constants() gots AV in
add_constant_info(zend_constant *constant, void *arg TSRMLS_DC)

Appears on WinNT 4.0 SP5/Apache 1.3.19 and W2K 5.0 SP2/IIS 5.0

-- 
Edit bug report at: http://bugs.php.net/?id=12861&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12853 Updated: Crash on any php scripts when running as apache module

2001-08-27 Thread dacota

ID: 12853
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Summary: Crash when open_file_for_scanning is adding handle to CG(open_files)
Status: Open
Bug Type: Reproducible crash
Operating System: Windows NT 4.0 SP5
Old PHP Version: 4.0CVS-2001-08-20
PHP Version: 4.0CVS-2001-08-27
New Comment:

Checked with the latest sources - the problem remains.
Back trace when running as apache module:

zend_llist_add_element(_zend_llist * 0x0072a364, void * 0x011dfdb4) line 38 + 9 bytes
open_file_for_scanning(_zend_file_handle * 0x011dfdb4, void * * * 0x00729040) line 274 
+ 31 bytes
compile_file(_zend_file_handle * 0x011dfdb4, int 0x0002, void * * * 0x00729040) 
line 356 + 13 bytes
zend_execute_scripts(int 0x0002, void * * * 0x00729040, int 0x0001) line 804 + 
18 bytes
send_php(request_rec * 0x00882f30, int 0x, char * 0x) line 501 + 18 
bytes
send_parsed_php(request_rec * 0x00882f30) line 590 + 13 bytes
ap_invoke_handler(request_rec * 0x00882f30) line 517 + 10 bytes
process_request_internal(request_rec * 0x00882f30) line 1303 + 9 bytes
ap_internal_redirect(const char * 0x00882f08, request_rec * 0x008822c0) line 1427 + 9 
bytes
handle_dir(request_rec * 0x008822c0) line 179
ap_invoke_handler(request_rec * 0x008822c0) line 517 + 10 bytes
process_request_internal(request_rec * 0x008822c0) line 1303 + 9 bytes
ap_process_request(request_rec * 0x008822c0) line 1319 + 9 bytes
child_sub_main(int 0x) line 5447 + 9 bytes
child_main(int 0x) line 5514 + 9 bytes
MSVCRTD! 1020bf53()
KERNEL32! 77f04ee8()


Previous Comments:


[2001-08-20 04:19:22] [EMAIL PROTECTED]

Apache/1.3.19 (Win32) PHP/4.0.7-dev rus/PL30.4
Win32 TS Debug build, only compiled-in modules.

any php scripts (i.e. )

send_php:
if (AP(in_request)) {
zend_file_handle fh;

fh.filename = r->filename;
fh.opened_path = NULL;
fh.free_filename = 0;
fh.type = ZEND_HANDLE_FILENAME;
>   zend_execute_scripts(ZEND_INCLUDE TSRMLS_CC, 1, &fh);
return OK;
}
we falling into this branch and CG struct isn't initialized since will initialize 
further in this function.






Edit this bug report at http://bugs.php.net/?id=12853&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12861 Updated: get_defined_constants gots AV

2001-08-27 Thread dacota

ID: 12861
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Arrays related
Operating System: WindowsNT
Old PHP Version: 4.0CVS-2001-08-20
PHP Version: 4.0CVS-2001-08-27
New Comment:

Here is the call stack for this bug:

_zval_copy_ctor(_zval_struct * 0x00fddff8, char * 0x1024b014 `string', unsigned int 
0x0401) line 105 + 11 bytes
add_constant_info(_zend_constant * 0x00ee2b70, void * 0x00fdd1e8, void * * * 
0x00ed1940) line 1025 + 25 bytes
zend_hash_apply_with_argument(_hashtable * 0x00ed22d0, int (void *, void *, void * * 
*)* 0x101465b0 add_constant_info(_zend_constant *, void *, void * * *), void * 
0x00fdd1e8, void * * * 0x00ed1940) line 688 + 20 bytes
zif_get_defined_constants(int 0x, _zval_struct * 0x00fdd1e8, _zval_struct * 
0x, int 0x, void * * * 0x00ed1940) line 1054 + 40 bytes
execute(_zend_op_array * 0x00fdce30, void * * * 0x00ed1940) line 1590 + 47 bytes
zend_execute_scripts(int 0x0008, void * * * 0x00ed1940, int 0x0003) line 807 + 
33 bytes
php_execute_script(_zend_file_handle * 0x0012ff48, void * * * 0x00ed1940) line 1310 + 
25 bytes
main(int 0x0003, char * * 0x00ed19b0) line 737 + 14 bytes
mainCRTStartup() line 338 + 17 bytes
KERNEL32! 77f1ba06()


Previous Comments:


[2001-08-20 11:12:53] [EMAIL PROTECTED]

Function get_defined_constants() gots AV in
add_constant_info(zend_constant *constant, void *arg TSRMLS_DC)

Appears on WinNT 4.0 SP5/Apache 1.3.19 and W2K 5.0 SP2/IIS 5.0






Edit this bug report at http://bugs.php.net/?id=12861&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #13340: get_defined_constants crashed on default value of constant DEFAULT_INCLUDE_PATH

2001-09-17 Thread dacota

From: [EMAIL PROTECTED]
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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #13340 Updated: get_defined_constants crashed on default value of constant DEFAULT_INCLUDE_PATH

2001-09-17 Thread dacota

ID: 13340
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Reproducible crash
Operating System: Win32
PHP Version: 4.0CVS-2001-09-17
New Comment:

This also apply to PHP_EXTENSION_DIR, which is defined as NULL in config.win32.h

PHP_EXTENSION_DIR also should be defined as empty_string or ""


Previous Comments:


[2001-09-17 05:54:13] [EMAIL PROTECTED]

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 this bug report at http://bugs.php.net/?id=13340&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12861 Updated: get_defined_constants gots AV

2001-09-17 Thread dacota

ID: 12861
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Arrays related
Operating System: WindowsNT
PHP Version: 4.0CVS-2001-08-27
New Comment:

See bug #13340


Previous Comments:


[2001-08-28 01:14:36] [EMAIL PROTECTED]

Here is the call stack for this bug:

_zval_copy_ctor(_zval_struct * 0x00fddff8, char * 0x1024b014 `string', unsigned int 
0x0401) line 105 + 11 bytes
add_constant_info(_zend_constant * 0x00ee2b70, void * 0x00fdd1e8, void * * * 
0x00ed1940) line 1025 + 25 bytes
zend_hash_apply_with_argument(_hashtable * 0x00ed22d0, int (void *, void *, void * * 
*)* 0x101465b0 add_constant_info(_zend_constant *, void *, void * * *), void * 
0x00fdd1e8, void * * * 0x00ed1940) line 688 + 20 bytes
zif_get_defined_constants(int 0x, _zval_struct * 0x00fdd1e8, _zval_struct * 
0x, int 0x, void * * * 0x00ed1940) line 1054 + 40 bytes
execute(_zend_op_array * 0x00fdce30, void * * * 0x00ed1940) line 1590 + 47 bytes
zend_execute_scripts(int 0x0008, void * * * 0x00ed1940, int 0x0003) line 807 + 
33 bytes
php_execute_script(_zend_file_handle * 0x0012ff48, void * * * 0x00ed1940) line 1310 + 
25 bytes
main(int 0x0003, char * * 0x00ed19b0) line 737 + 14 bytes
mainCRTStartup() line 338 + 17 bytes
KERNEL32! 77f1ba06()




[2001-08-20 11:12:53] [EMAIL PROTECTED]

Function get_defined_constants() gots AV in
add_constant_info(zend_constant *constant, void *arg TSRMLS_DC)

Appears on WinNT 4.0 SP5/Apache 1.3.19 and W2K 5.0 SP2/IIS 5.0






Edit this bug report at http://bugs.php.net/?id=12861&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12853 Updated: Crash when open_file_for_scanning is adding handle to CG(open_files)

2001-09-17 Thread dacota

ID: 12853
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Reproducible crash
Operating System: Windows NT 4.0 SP5
PHP Version: 4.0CVS-2001-08-27
New Comment:

Fixed sapi/apache/mod_php4.h in version 1.15

Previous Comments:


[2001-08-27 04:43:42] [EMAIL PROTECTED]

Checked with the latest sources - the problem remains.
Back trace when running as apache module:

zend_llist_add_element(_zend_llist * 0x0072a364, void * 0x011dfdb4) line 38 + 9 bytes
open_file_for_scanning(_zend_file_handle * 0x011dfdb4, void * * * 0x00729040) line 274 
+ 31 bytes
compile_file(_zend_file_handle * 0x011dfdb4, int 0x0002, void * * * 0x00729040) 
line 356 + 13 bytes
zend_execute_scripts(int 0x0002, void * * * 0x00729040, int 0x0001) line 804 + 
18 bytes
send_php(request_rec * 0x00882f30, int 0x, char * 0x) line 501 + 18 
bytes
send_parsed_php(request_rec * 0x00882f30) line 590 + 13 bytes
ap_invoke_handler(request_rec * 0x00882f30) line 517 + 10 bytes
process_request_internal(request_rec * 0x00882f30) line 1303 + 9 bytes
ap_internal_redirect(const char * 0x00882f08, request_rec * 0x008822c0) line 1427 + 9 
bytes
handle_dir(request_rec * 0x008822c0) line 179
ap_invoke_handler(request_rec * 0x008822c0) line 517 + 10 bytes
process_request_internal(request_rec * 0x008822c0) line 1303 + 9 bytes
ap_process_request(request_rec * 0x008822c0) line 1319 + 9 bytes
child_sub_main(int 0x) line 5447 + 9 bytes
child_main(int 0x) line 5514 + 9 bytes
MSVCRTD! 1020bf53()
KERNEL32! 77f04ee8()




[2001-08-20 04:19:22] [EMAIL PROTECTED]

Apache/1.3.19 (Win32) PHP/4.0.7-dev rus/PL30.4
Win32 TS Debug build, only compiled-in modules.

any php scripts (i.e. )

send_php:
if (AP(in_request)) {
zend_file_handle fh;

fh.filename = r->filename;
fh.opened_path = NULL;
fh.free_filename = 0;
fh.type = ZEND_HANDLE_FILENAME;
>   zend_execute_scripts(ZEND_INCLUDE TSRMLS_CC, 1, &fh);
return OK;
}
we falling into this branch and CG struct isn't initialized since will initialize 
further in this function.






Edit this bug report at http://bugs.php.net/?id=12853&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #13340 Updated: get_defined_constants crashed on default value of constant DEFAULT_INCLUDE_PATH

2001-09-18 Thread dacota

ID: 13340
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Reproducible crash
Operating System: Win32
PHP Version: 4.0CVS-2001-09-17
New Comment:

I thought that maybe better to add check to
zend_register_stringl_constant
for NULL?

replacing
c.value.value.str.val = strval;
by
c.value.value.str.val = strval ? strval : empty_string;
?


Previous Comments:


[2001-09-17 07:27:44] [EMAIL PROTECTED]

This also apply to PHP_EXTENSION_DIR, which is defined as NULL in config.win32.h

PHP_EXTENSION_DIR also should be defined as empty_string or ""




[2001-09-17 05:54:13] [EMAIL PROTECTED]

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 this bug report at http://bugs.php.net/?id=13340&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]