php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29976 PHP script stops parsing prematurely
Submitted: 2004-09-03 23:08 UTC Modified: 2004-09-04 16:48 UTC
From: stantoney at firmfoundationtechnology dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.3.8 OS: linux 2.4
Private report: No CVE-ID: None
 [2004-09-03 23:08 UTC] 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



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-04 13:53 UTC] 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-04 16:28 UTC] stantoney at firmfoundationtechnology dot com
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
 [2004-09-04 16:48 UTC] tony2001@php.net
No error -> bogus.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Nov 13 18:01:30 2024 UTC