ID:               31987
 User updated by:  [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Assigned
 Bug Type:         mbstring related
 Operating System: Windows XP PRo SP2
 PHP Version:      5CVS-2005-02-15 (dev)
 Assigned To:      fujimoto
 New Comment:

Here is a patch to solve this problem,
I don't know if it has any side-effect.

*** Zend/zend_language_scanner.l        13 Feb 2005 13:50:48 -0000      1.120
--- Zend/zend_language_scanner.l        19 Feb 2005 07:42:35 -0000
***************
*** 135,140 ****
--- 135,144 ----
        SCNG(script_org_size) = 0;
        SCNG(script_filtered) = NULL;
        SCNG(script_filtered_size) = 0;
+       SCNG(input_filter) = NULL;
+       SCNG(output_filter) = NULL;
+       SCNG(script_encoding) = NULL;
+       SCNG(internal_encoding) = NULL;
  #endif /* ZEND_MULTIBYTE */
  }


Previous Comments:
------------------------------------------------------------------------

[2005-02-15 16:05:12] [EMAIL PROTECTED]

Description:
------------
When ZEND_MULTIBYTE option is defined on Windows XP Pro SP2,
and PHP is compiled as Apache 2 module,
PHP 5.0.x break up by phpinfo().

Here is backtrace by VC6++ for PHP 5.0.4dev,

zif_phpinfo()
 -> php_print_info(-1 TSRMLS_CC);
   -> zend_html_puts(zend_version, 
           strlen(zend_verison TSRMLS_CC)
     -> (L66)
        LANG_SCNG(output_filter)(&filtered, 
           &filtered_len, s, len TSRMLS_CC)

     filtered = 0xcccccccc "";
     &filtered = 0x04fcf54c
     filtered_len = -858993460
     s = "Zend Engine v2.1.0-dev,..."
     len = 66


Reproduce code:
---------------
<?php
 phpinfo();
?>


Expected result:
----------------
php releated info.



Actual result:
--------------
PHP 5.0.4dev executed as Apache 2 module will crash.


------------------------------------------------------------------------


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

Reply via email to