#29976 [Fbk->Csd]: PHP script stops parsing prematurely

From: Date: Sat, 04 Sep 2004 14:28:18 +0000
Subject: #29976 [Fbk->Csd]: PHP script stops parsing prematurely
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-65716@lists.php.net to get a copy of this message
ID: 29976 User updated by: stantoney at firmfoundationtechnology dot com Reported By: stantoney at firmfoundationtechnology dot com -Status: Feedback +Status: Closed Bug Type: Scripting Engine problem Operating System: linux 2.4 PHP Version: 4.3.8 New Comment: I found the error. It was my fault. The new host requires a line in the .htaccess file before php is processed inline in .html files. Stan Previous Comments: ------------------------------------------------------------------------ [2004-09-04 13:53:13] tony2001@php.net Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try avoid embedding huge scripts into the report. ------------------------------------------------------------------------ [2004-09-03 23:08:19] stantoney at firmfoundationtechnology dot com Description: ------------ I'm uploading web pages to a new server and a PHP script is not parsing fully. It reaches a line that has a > in the line and stops. Here is part of the relevant code <?php require_once "cgi-bin/carp.php"; CarpConf('linktarget',1); CarpConf('bilink','<div style="background: #cccccc; width: 180; padding: 2px; border-width: 1px; border-style: inset; border-color: #333333;">'); CarpCacheShow("http://news.com.com/2547-1_3-0-5.xml"); ?> The error occurs at the end of the bilink config line. Once the script hits the > near the end of the line it exits the script. It works fine under PHP 2.3.4. CarpConf refers to a function provided by CaRP, a RSS feed converter at http://www.geckotribe.com/rss/carp/ Reproduce code: --------------- http://s108329740.onlinehome.us/ Expected result: ---------------- Correct (current Site) http://www.firmfoundationtechnology.com/ Here are links to PHPinfo scripts for reference. GOOD Site - http://www.firmfoundationtechnology.com/scripts/phpinfo.php BAD Site - http://s108329740.onlinehome.us/scripts/phpinfo.php ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29976&edit=1

« previous php.bugs (#65716) next »