php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4896 Sometimes for var one letters length produce not correct parsing.
Submitted: 2000-06-08 14:28 UTC Modified: 2000-07-24 09:01 UTC
From: A dot Ivanov at tu-bs dot de Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.0 Release OS: FreeBSD 4.0
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: A dot Ivanov at tu-bs dot de
New email:
PHP Version: OS:

 

 [2000-06-08 14:28 UTC] A dot Ivanov at tu-bs dot de
It can be any script with assume some value.
And it works properly, but sometimes you can get
does not explainable result.

Example:

file: conf.php
$c="808080";

file: html.php
include "conf.php";
<body bgcolor=<?echo $c;?>>

Result1:
<body bgcolor=808080>

Result2:
<body bgcolor=>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-08 20:33 UTC] A dot Ivanov at tu-bs dot de
in the file html.php between include and <body
can be assume condition something like this

if(a) $c = $c1;
else $c = $c2;

echo "<body bgcolor=$c>"; 
 [2000-06-08 20:58 UTC] stas at cvs dot php dot net
Failed to reproducs this. Please provide more info, preferable with real code examples.
 [2000-07-24 09:01 UTC] stas@php.net
no feedback
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 23:00:01 2026 UTC