#47167 [NEW]: E_DEPRECATED errors in PEARCHM theme.

From: Date: Tue, 20 Jan 2009 13:29:15 +0000
Subject: #47167 [NEW]: E_DEPRECATED errors in PEARCHM theme.
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-1738@lists.php.net to get a copy of this message
From:             RQuadling at GMail dot com
Operating system: Windows XP Pro SP3
PHP version:      Irrelevant
PHP Bug Type:     Doc Build problem
Bug description:  E_DEPRECATED errors in PEARCHM theme.

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 bug report at http://bugs.php.net/?id=47167&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        http://bugs.php.net/fix.php?id=47167&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        http://bugs.php.net/fix.php?id=47167&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        http://bugs.php.net/fix.php?id=47167&r=trysnapshot60
Fixed in CVS:                        http://bugs.php.net/fix.php?id=47167&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47167&r=needdocs
Fixed in release:                    http://bugs.php.net/fix.php?id=47167&r=alreadyfixed
Need backtrace:                      http://bugs.php.net/fix.php?id=47167&r=needtrace
Need Reproduce Script:               http://bugs.php.net/fix.php?id=47167&r=needscript
Try newer version:                   http://bugs.php.net/fix.php?id=47167&r=oldversion
Not developer issue:                 http://bugs.php.net/fix.php?id=47167&r=support
Expected behavior:                   http://bugs.php.net/fix.php?id=47167&r=notwrong
Not enough info:                     http://bugs.php.net/fix.php?id=47167&r=notenoughinfo
Submitted twice:                     http://bugs.php.net/fix.php?id=47167&r=submittedtwice
register_globals:                    http://bugs.php.net/fix.php?id=47167&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=47167&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=47167&r=dst
IIS Stability:                       http://bugs.php.net/fix.php?id=47167&r=isapi
Install GNU Sed:                     http://bugs.php.net/fix.php?id=47167&r=gnused
Floating point limitations:          http://bugs.php.net/fix.php?id=47167&r=float
No Zend Extensions:                  http://bugs.php.net/fix.php?id=47167&r=nozend
MySQL Configuration Error:           http://bugs.php.net/fix.php?id=47167&r=mysqlcfg



Thread (2 messages)

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