cvs: pear /PHP_Compat/Compat/Function strpbrk.php

From: Date: Mon, 13 Nov 2006 10:14:25 +0000
Subject: cvs: pear /PHP_Compat/Compat/Function strpbrk.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-43058@lists.php.net to get a copy of this message
aidan Mon Nov 13 10:14:25 2006 UTC Modified files: /pear/PHP_Compat/Compat/Function strpbrk.php Log: Patch by Gordon Stratton <tsr2600@gmail.com> http://cvs.php.net/viewvc.cgi/pear/PHP_Compat/Compat/Function/strpbrk.php?r1=1.5&r2=1.6&diff_format=u Index: pear/PHP_Compat/Compat/Function/strpbrk.php diff -u pear/PHP_Compat/Compat/Function/strpbrk.php:1.5 pear/PHP_Compat/Compat/Function/strpbrk.php:1.6 --- pear/PHP_Compat/Compat/Function/strpbrk.php:1.5 Mon Dec 19 23:45:30 2005 +++ pear/PHP_Compat/Compat/Function/strpbrk.php Mon Nov 13 10:14:25 2006 @@ -15,7 +15,7 @@ // | Authors: Stephan Schmidt <schst@php.net> | // +----------------------------------------------------------------------+ // -// $Id: strpbrk.php,v 1.5 2005/12/19 23:45:30 aidan Exp $ +// $Id: strpbrk.php,v 1.6 2006/11/13 10:14:25 aidan Exp $ /** @@ -25,7 +25,7 @@ * @package PHP_Compat * @link http://php.net/function.strpbrk * @author Stephan Schmidt <schst@php.net> - * @version $Revision: 1.5 $ + * @version $Revision: 1.6 $ * @since PHP 5 * @require PHP 4.0.0 (user_error) */ @@ -38,8 +38,8 @@ } if (!is_scalar($char_list)) { - user_error('strpbrk() expects parameter 2 to be scalar, ' . - gettype($needle) . ' given', E_USER_WARNING); + user_error('strpbrk() expects parameter 2 to be string, ' . + gettype($char_list) . ' given', E_USER_WARNING); return false; }

« previous php.pear.cvs (#43058) next »