Permalink
Browse files

Dropped deprecated split() usage

git-svn-id: http://svn.php.net/repository/pear/packages/PHPDoc/trunk@302922 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 75ea607 commit 56b201c7ecf316b2f3ef927cb67f59d777c08b08 @CloCkWeRX CloCkWeRX committed Aug 31, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 parser/PhpdocParserCore.php
@@ -426,7 +426,8 @@ function getClasses($phpcode) {
*/
function extractPhpdoc($paragraph) {
- $lines = split( $this->PHP_BASE['break'], $paragraph);
+ $lines = preg_split('/' . $this->PHP_BASE['break'] . '/', $paragraph);
+
$phpdoc = '';
reset($lines);
@@ -465,7 +466,7 @@ function getDescription($phpdoc) {
else
$desc = trim(substr($phpdoc, 0, $positions[0]['pos'])); // strip tags
- $lines = split($this->PHP_BASE['break'], $desc);
+ $lines = preg_split('/' . $this->PHP_BASE['break'] . '/', $desc);
// 3/8/2002 - Tim Gallagher<timg@sunflowerroad.com> changed this
// section back to original behavior.
// I don't like putting the short description with the long description.

0 comments on commit 56b201c

Please sign in to comment.