PHP 4.2.1 ������ɽ����Ȥä��Ȥ����ʲ��Υ��顼��Ф��� apache ������롣
����ɽ�������ѥ��ڡ�����ޤ�ʸ����� trim ����ݤˤ������꤬�Ф���
��ɡ�Ĺ���ʤ뤪����Τ���ʸ�����ɸ��� trim() �Τ߹Ԥ����Ȥ������Ȥˤ�����
����ɽ�����ִ�����Ȥ��������оݤȤʤ�ʸ�����ޤ��Ĺ�����ˤ��θ��ݤ�������褦�����ʲ��������Ƹ��Ǥ��륳���ɡ�Ĺ�����ɡ�
$ tail -f /var/log/httpd/error_log
[Tue Dec 3 20:58:50 2002] [notice] child pid 6053 exit signal Segmentation fault (11)
����ɽ�������ѥ��ڡ�����ޤ�ʸ����� trim ����ݤˤ������꤬�Ф���
��ɡ�Ĺ���ʤ뤪����Τ���ʸ�����ɸ��� trim() �Τ߹Ԥ����Ȥ������Ȥˤ�����
����ɽ�����ִ�����Ȥ��������оݤȤʤ�ʸ�����ޤ��Ĺ�����ˤ��θ��ݤ�������褦�����ʲ��������Ƹ��Ǥ��륳���ɡ�Ĺ�����ɡ�
<?php
$base_str = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">';
$Zspace = '(?:\xA1\xA1)'; // ���ѥ��ڡ���
$ascii = '[\x00-\x7F]'; # 1�Х��� EUC-JPʸ��
$twoBytes = '(?:[\x8E\xA1-\xFE][\xA1-\xFE])'; # 2�Х��� EUC-JPʸ��
$threeBytes = '(?:\x8F[\xA1-\xFE][\xA1-\xFE])'; # 3�Х��� EUC-JPʸ��
$character = "(?:$ascii|$twoBytes|$threeBytes)"; # EUC-JPʸ��
$count = 1000;
$str = '';
for ($i = 0; $i < $count; $i++) {
$str .= $base_str;
}
// $str �� EUC-JP ��
$str = preg_replace("/^($character*?)(?:\s|$Zspace)+$/", "$1", $str);
print htmlspecialchars($str);
?>
[PHP-users 11299] �˽�����sonic �ǥƥ��Ȥ��Ƥߤ롣
knowhow �� pro �ǥƥ��Ȥ���ʤ�С�
knowhow �� pro �ǥƥ��Ȥ���ʤ�С�
./configure --with-pgsql --enable-track-vars --with-apxs=/usr/local/apache/bin/apxs --enable-versioning --without-gd --enable-trans-sid --enable-mbstring --enable-mbregex --enable-mbstr-enc-trans && time nice -19 make test�Ȥ������ץ����ˤʤ뤬��sonic �� apache �� OS �Υǥե���ȤΤޤޤʤΤǡ�
./configure --with-pgsql --enable-track-vars --with-apxs=/usr/sbin/apxs --enable-versioning --without-gd --enable-trans-sid --enable-mbstring --enable-mbregex --enable-mbstr-enc-trans && time nice -19 make test�Ȥʤ롣