php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33199 Oversized page
Submitted: 2005-05-31 11:53 UTC Modified: 2006-09-28 13:34 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: tommy at apt dot no Assigned: dave (profile)
Status: Closed Package: Website problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2005-05-31 11:53 UTC] tommy at apt dot no
Description:
------------
The manual page for preg_match is stretched horizontally so that it scrolls sideways, for some reason:
http://no.php.net/preg_match
Same problem in IE and Mozilla

Reproduce code:
---------------
None

Expected result:
----------------
None

Actual result:
--------------
None

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-31 13:29 UTC] richard dot quadling at bandvulc dot co dot uk
The usernote submitted by sam at macrepublic dot com on 29-May-2005 at 12:41 contains <pre>long single line of 536 letters ...</pre>.

The <pre> tag causes the browser to NOT wrap the line.

How the <pre> tag got there for this note and not others, I am not sure.

Richard.
 [2005-05-31 13:56 UTC] vrana@php.net
It seems that the problem is caused by user notes which are not wrapped inside <pre>.
 [2005-05-31 14:12 UTC] richard dot quadling at bandvulc dot co dot uk
Ha. Wrapped (as in contained in) and wrapped (as in broken to fit inside a window).

The <pre> shouldn't be there.
 [2005-06-01 00:06 UTC] mazzanet@php.net
This has been fixed as someone has removed the 'offending' note.
 [2005-06-01 06:19 UTC] dave@php.net
The underlying cause hasn't been fixed though.

The problem is when highlighted code fails the syntax check, phpweb/include/layout.inc:27:

if(strstr($highlighted,"include/layout.inc</b>")) $highlighted = "<pre>".htmlentities($code)."</pre>";

This should probably be replaced with:

if(strstr($highlighted,"include/layout.inc</b>")) $highlighted = '<span class="default">'.htmlentities($code)."</span>";

or something similar.
 [2006-09-28 13:34 UTC] bjori@php.net
This bug has been fixed in CVS. Since the websites are not directly
updated from the CVS server, the fix might need some time to spread
across the globe to all mirror sites, including PHP.net itself.

Thank you for the report, and for helping us make PHP.net better.

Thanks for the patch dave!
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Nov 20 09:00:02 2025 UTC