#47167 [Opn->Csd]: E_DEPRECATED errors in PEARCHM theme.

From: Date: Mon, 26 Jan 2009 12:42:11 +0000
Subject: #47167 [Opn->Csd]: E_DEPRECATED errors in PEARCHM theme.
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-1762@lists.php.net to get a copy of this message
 ID:               47167
 Updated by:       cweiske@php.net
 Reported By:      RQuadling at GMail dot com
-Status:           Open
+Status:           Closed
 Bug Type:         Doc Build problem
 Operating System: Windows XP Pro SP3
 PHP Version:      Irrelevant
 New Comment:

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.




Previous Comments:
------------------------------------------------------------------------

[2009-01-20 13:29:14] 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;
     }
 







------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=47167&edit=1



Thread (2 messages)

« previous php.doc.bugs (#1762) next »