php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47167 E_DEPRECATED errors in PEARCHM theme.
Submitted: 2009-01-20 13:29 UTC Modified: 2009-01-26 12:41 UTC
From: RQuadling at GMail dot com Assigned:
Status: Closed Package: Doc Build problem
PHP Version: Irrelevant OS: Windows XP Pro SP3
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: RQuadling at GMail dot com
New email:
PHP Version: OS:

 

 [2009-01-20 13:29 UTC] RQuadling at GMail dot com
Description:
------------
The pearchm theme is using eregi which is deprecated in PHP5.3.

Patch to fix.

No karma to PEAR portion of phd.

Index: pearchm.php
===================================================================
RCS file: /repository/phd/themes/pear/pearchm.php,v
retrieving revision 1.6
diff -u -r1.6 pearchm.php
--- pearchm.php	1 Nov 2008 09:32:04 -0000	1.6
+++ pearchm.php	31 Dec 2008 11:16:12 -0000
@@ -342,10 +342,10 @@
     public function header($id) {
         $header = parent::header($id);
         // Add CSS link to <head>
-        $header = ereg_replace('( *)</head>','\\1 <link media="all" 
rel="stylesheet" type="text/css" href="reset-fonts.css"/>
- <link media="all" rel="stylesheet" type="text/css" 
href="style.css"/>
- <link media="all" rel="stylesheet" href="manual.css"/>
-\\1</head>', $header);
+        $header = preg_replace('`( *)</head>`','$1 <link media="all" 
rel="stylesheet" type="text/css" href="reset-fonts.css"/>
+$1 <link media="all" rel="stylesheet" type="text/css" 
href="style.css"/>
+$1 <link media="all" rel="stylesheet" href="manual.css"/>
+$1</head>', $header);
         return $header;
     }
 






Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-01-26 12:42 UTC] cweiske@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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 16:01:30 2024 UTC