Permalink
Browse files

WARNING: Function 'ereg' is deprecated, please use 'preg_match' inste…

…ad in file ./Net_IRC/examples/client.php line 118

git-svn-id: http://svn.php.net/repository/pear/packages/Net_IRC/trunk@302950 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent ef3eac3 commit 1553466544c8436aac62035534502cbe86eb59f6 @CloCkWeRX CloCkWeRX committed Sep 1, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 examples/client.php
View
@@ -115,7 +115,7 @@ function readlinel()
while (true) {
$line = readlinel();
if (trim($line)) {
- if (!ereg('^[A-Z]', $line)) {
+ if (!preg_match('/^[A-Z]/', $line)) {
$irc->command("PRIVMSG #pear :$line");
} else {
$irc->command($line);

0 comments on commit 1553466

Please sign in to comment.