#31987 [Asn->Csd]: hirokawa
| From: | hirokawa@php.net | Date: | Sat, 19 Feb 2005 14:36:46 +0000 |
| Subject: | #31987 [Asn->Csd]: hirokawa | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-74294@lists.php.net to get a copy of this message | ||
ID: 31987
Updated by: hirokawa@php.net
Reported By: hirokawa@php.net
-Status: Assigned
+Status: Closed
Bug Type: mbstring related
Operating System: Windows XP PRo SP2
PHP Version: 5CVS-2005-02-15 (dev)
Assigned To: fujimoto
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2005-02-19 09:01:08] hirokawa@php.net
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 */
}
------------------------------------------------------------------------
[2005-02-15 16:05:12] hirokawa@php.net
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