Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit 56b201c7ecf316b2f3ef927cb67f59d777c08b08 1 parent 75ea607
Daniel O'Connor CloCkWeRX authored

Showing 1 changed file with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. +3 2 parser/PhpdocParserCore.php
5 parser/PhpdocParserCore.php
@@ -426,7 +426,8 @@ function getClasses($phpcode) {
426 426 */
427 427 function extractPhpdoc($paragraph) {
428 428
429   - $lines = split( $this->PHP_BASE['break'], $paragraph);
  429 + $lines = preg_split('/' . $this->PHP_BASE['break'] . '/', $paragraph);
  430 +
430 431 $phpdoc = '';
431 432
432 433 reset($lines);
@@ -465,7 +466,7 @@ function getDescription($phpdoc) {
465 466 else
466 467 $desc = trim(substr($phpdoc, 0, $positions[0]['pos'])); // strip tags
467 468
468   - $lines = split($this->PHP_BASE['break'], $desc);
  469 + $lines = preg_split('/' . $this->PHP_BASE['break'] . '/', $desc);
469 470 // 3/8/2002 - Tim Gallagher<timg@sunflowerroad.com> changed this
470 471 // section back to original behavior.
471 472 // I don't like putting the short description with the long description.

0 comments on commit 56b201c

Please sign in to comment.
Something went wrong with that request. Please try again.