Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27960 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84680 invoked by uid 1010); 9 Feb 2007 19:27:48 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 84620 invoked from network); 9 Feb 2007 19:27:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Feb 2007 19:27:48 -0000 Received: from [127.0.0.1] ([127.0.0.1:28146]) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ECSTREAM id 5E/80-36013-3D4CCC54 for ; Fri, 09 Feb 2007 14:00:36 -0500 Authentication-Results: pb1.pair.com smtp.mail=thruska@cubiclesoft.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=thruska@cubiclesoft.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain cubiclesoft.com from 217.160.255.148 cause and error) X-PHP-List-Original-Sender: thruska@cubiclesoft.com X-Host-Fingerprint: 217.160.255.148 u15187375.onlinehome-server.com Windows 2000 SP4, XP SP1 Received: from [217.160.255.148] ([217.160.255.148:2856] helo=U15187375.cubiclesoft.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1F/57-18147-630CCC54 for ; Fri, 09 Feb 2007 13:40:54 -0500 Received: from [192.168.0.101] ([67.162.214.214]) by cubiclesoft.com with MailEnable ESMTP; Fri, 09 Feb 2007 13:40:49 -0500 Message-ID: <45CCC024.8070405@cubiclesoft.com> Date: Fri, 09 Feb 2007 13:40:36 -0500 User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: PHP 5.2.1 crashing Apache/IIS... From: thruska@cubiclesoft.com (Thomas Hruska) Heads up! Installed the latest Win32 binaries of thread-safe PHP 5.2.1 on Win32 Apache and IIS. PHP started crashing (definitely PHP - php5ts.dll) when I went to access the MyProBB web forum. (Win32 Apache flat out crashes, IIS bails with HTTP 500 errors). Forum crashes PHP 5.2.1: http://www.cubiclesoft.com/Forum/ Source to the forum software is here: http://www.cubiclesoft.com/MyProBB/ Worked fine under 5.2.0. I only depend on PHP for the forum. A straight-up phpinfo(); page seems to work fine. I upgraded by killing each webserver instance, copying the files from the ZIP file over the existing PHP directories and files, and restarting the server. So I then took the hard route of deleting the PHP directory and dumping the binaries into it from scratch and putting together a working php.ini file again...crash. So I tried to narrow down the problem and it appeared to be crashing in a VERY bizarre location: $Data = str_ireplace("\n", "
", $Data); So, I created a test script and eventually narrowed it down to: ", $Data); $Data = str_ireplace("\n", "
", $Data); $Data = str_ireplace("\r\n", "
", $Data); $Data = str_ireplace("\n", "
", $Data); $Data = str_ireplace("\r\n", "
", $Data); $Data = str_ireplace("\n", "
", $Data); $Data = str_ireplace("\r\n", "
", $Data); $Data = str_ireplace("\n", "
", $Data); $Data = str_ireplace("\r\n", "
", $Data); $Data = str_ireplace("\n", "
", $Data); $Data = str_ireplace("\r\n", "
", $Data); $Data = str_ireplace("\n", "
", $Data); $Data = str_ireplace("\r\n", "
", $Data); $Data = str_ireplace("\n", "
", $Data); ?> This script crashes PHP 5.2.1 everywhere. Command-line and web server (module and CGI modes). IMO, there's a bug somewhere in str_ireplace(). But it could be also more fundamental with how Zend treats variables. All that showing data around assigning a variable to itself. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 http://www.CubicleSoft.com/