Skip to content
Browse files

Bug #17773 Patch: avoid using ereg

  • Loading branch information...
1 parent c279281 commit a6977ec9d6f818f4a862400716f9428660f60b02 @CloCkWeRX CloCkWeRX committed Aug 24, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 Packaging.php
View
2 Packaging.php
@@ -958,7 +958,7 @@ function _getChannelAlias($package_name, $chan_name = null)
// telling between the two, but we try to make an
// intelligent guess: if the package name is supplied
// and starts with a lowercase letter, it's PECL.
- if (ereg('^[a-z]', $package_name)) {
+ if (preg_match('/^[a-z]/', $package_name)) {
$alias = 'PECL';
} else {
$alias = 'PEAR';

0 comments on commit a6977ec

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