[PHP-users 15343] Re: PHP 4.3.2RC3 Released!!

Rui Hirokawa rui_hirokawa @ ybb.ne.jp
2003年 5月 17日 (土) 17:31:24 JST


廣川です。

私もCVS版(4.3.2RC4-dev)でCGI版をテストしてみました。
(Vine Linux 2.6)

やはり、Segmenation Faultになったのですが、
私のはWezさんの以下の変更(5/16)が原因のようです。

ただし、PHP 4.3.2RC3の不具合は、バージョンが違うので
別の原因かもしれません。

main/output.c
>  static int php_ob_init_named(uint initial_size, uint block_size, char *handler_name, zval *output_handler, uint chunk_size, zend_bool erase TSRMLS_DC)
>  {
> +	if (!zend_is_callable(output_handler, 0, NULL)) {
> +		return FAILURE;
> +	}

添付の変更で直りました。(Wez氏に送付しておきました。)

Index: output.c
===================================================================
RCS file: /repository/php4/main/output.c,v
retrieving revision 1.142.2.11
diff -c -r1.142.2.11 output.c
*** output.c	16 May 2003 19:06:37 -0000	1.142.2.11
--- output.c	17 May 2003 08:12:55 -0000
***************
*** 408,414 ****
   */
  static int php_ob_init_named(uint initial_size, uint block_size, char *handler_name, zval *output_handler, uint chunk_size, zend_bool erase TSRMLS_DC)
  {
! 	if (!zend_is_callable(output_handler, 0, NULL)) {
  		return FAILURE;
  	}
  	if (OG(ob_nesting_level)>0) {
--- 408,414 ----
   */
  static int php_ob_init_named(uint initial_size, uint block_size, char *handler_name, zval *output_handler, uint chunk_size, zend_bool erase TSRMLS_DC)
  {
! 	if (!output_handler || !zend_is_callable(output_handler, 0, NULL)) {
  		return FAILURE;
  	}
  	if (OG(ob_nesting_level)>0) {



-- 
Rui Hirokawa <rui_hirokawa @ ybb.ne.jp>



PHP-users メーリングリストの案内