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
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
Patch attached for review that replaces split() with explode().
#3
Committed to both 6.x and 7.x, thank you!
#4
Automatically closed -- issue fixed for 2 weeks with no activity.