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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
22 - 13 = ?
Subscribe to this entry?

 
 [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 Apr 19 14:01:30 2024 UTC