PHP 5.3 incompability: split() deprecated

Boobaa - August 5, 2009 - 17:43
Project:Translation template extractor
Version:6.x-3.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

After upgrading to latest PHP, I get several screenfuls of this error when I want to extract any strings:

Function split() is deprecated in /home/boobaa/public_html/d6/sites/all/modules/potx/potx.inc on line 176.

The extraction runs fine and yields the expected results, though.

#1

Gábor Hojtsy - August 6, 2009 - 10:03
Category:task» bug report

Right. We only use split() for stuff which an explode() can do just as well. (As far as I've seen we only have split() called two times in the code).

#2

Dave Reid - August 22, 2009 - 20:57
Title:PHP 5.3 incompability» PHP 5.3 incompability: split() deprecated
Version:6.x-3.0» 6.x-3.x-dev
Status:active» needs review

Patch attached for review that replaces split() with explode().

AttachmentSize
541000-potx-split-deprecated-D6-3.patch 759 bytes

#3

Gábor Hojtsy - August 24, 2009 - 07:30
Status:needs review» fixed

Committed to both 6.x and 7.x, thank you!

#4

System Message - September 7, 2009 - 07:40
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.