php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49393 Comment Block exiting prematurally
Submitted: 2009-08-27 19:00 UTC Modified: 2009-08-28 17:07 UTC
From: mudoch at gmail dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 5.3.0 OS: Win XPsp3
Private report: No CVE-ID: None
 [2009-08-27 19:00 UTC] mudoch at gmail dot com
Description:
------------
The comment block /* ... */ will exit at the first > in the block verses the action in 5.2.5 where the code was written and tested.



Reproduce code:
---------------
<?
/* *
 * @author Karim Mribti
 * @license LGPL >= 2.1
 * @package barcode-mribti
 * @copyright 2001 Karim Mribti
 * @see image.php
 * @version $Id$
 * 
 * barcode site home page
 * Adapted from 0.0.7a on 2007-05-24 by Fr?d?ric G. MARAND for Agorus S.A.
 * 
 * May2009 Lawrence Sall - modified for a cleaner fit, adjust util.php for
 * desired defaults.
 * 
 *  
*/
include("home.php");
?>

Expected result:
----------------
Page in home.php to be displayed

Actual result:
--------------
= 2.1 * @package barcode-mribti * @copyright 2001 Karim Mribti * @see image.php * @version $Id$ * * barcode site home page * Adapted from 0.0.7a on 2007-05-24 by Fr?d?ric G. MARAND for Agorus S.A. * * May2009 Lawrence Sall - modified for a cleaner fit, adjust util.php for * desired defaults. * * */ include("home.php"); ?>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-08-27 19:16 UTC] sjoerd@php.net
Thank you for your bug report.

I was unable to reproduce the bug you described. Are you sure there is no ?> somewhere in the comment? Did you supplied the right example code? Is there some non-ASCII character in your file? It may help us if you put the file up for download somewhere.
 [2009-08-28 01:17 UTC] carsten_sttgt at gmx dot de
> verses the action in 5.2.5 where the code was written and tested.

In your 5.2.5 installation short_open_tags was enabled. In your current installation it's not.

Regards,
Carsten
 [2009-08-28 17:07 UTC] mudoch at gmail dot com
Thanks, sorry, totally missed that one..... I even marked that for testing, Thought I had tested it.... Sorry, thanks for setting me straight.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 27 21:00:03 2025 UTC