|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2003-08-12 15:36 UTC] cellog@php.net
 Description:
------------
    function sampleRawMoment($n) {/*{{{*/
        if (!is_int($n) || $n < 1) {
            return PEAR::isError('moment must be a positive integer >= 1.');
should be raiseError()
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 18:00:01 2025 UTC | 
function pow(&$int) {/*{{{*/ if (!$this->_is(&$int, 'Math_Integer_GMP')) { return PEAR::raiseError('Parameter is not a Math_Integer_GMP object'); } if ($int->isNegative()) { return PEAR::raisError('Exponent cannot be negative'); return PEAR::raisError should be PEAR::raiseError *ahem* testing may be in order before committing :)