Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.18

Doc Bug #4940 Wrong syntax for the The Backwards compatibility set up in the documentation
Submitted: 2005-07-28 23:07 UTC
From: xavier at atero dot com Assigned: cellog
Status: Closed Package: PEAR
PHP Version: 4.4.0 OS: Win32
Roadmaps: (Not assigned)    
Subscription  
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes. If this is not your bug, you can add a comment by following this link. If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
2006-10-12 20:10 UTC
Package:
Bug Type:
Summary:
From: xavier at atero dot com
New email:
PHP Version: Package Version: OS:

 

 [2005-07-28 23:07 UTC] xavier at atero dot com
Description: ------------ The Backwards compatibility with PEAR_Error, Forward compatibility with PHP 5 Exception (http://pear.php.net/manual/en/core.pear.pear-errorstack.intro.php) describes the call to automatically raise a PEAR_Error using PEAR::raiseError() as: <?php require_once 'PEAR/ErrorStack.php'; $stack = &PEAR_ErrorStack::singleton('mypackage', false, null, 'PEAR_ErrorStack', true); ?> when the method PEAR_ErrorStack::singleton in the documentation has the following syntax: PEAR_ErrorStack& PEAR_ErrorStack::singleton (string $package [, callback $msgCallback = FALSE [, callback $contextCallback = FALSE [, boolean $throwPEAR_Error = FALSE [, string $stackClass = 'PEAR_ErrorStack']]]]) Expected result: ---------------- <?php require_once 'PEAR/ErrorStack.php'; $stack = &PEAR_ErrorStack::singleton('mypackage', false, false, true); ?> Actual result: -------------- <?php require_once 'PEAR/ErrorStack.php'; $stack = &PEAR_ErrorStack::singleton('mypackage', false, null, 'PEAR_ErrorStack', true); ?>

Comments

 [2005-09-22 07:33 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2006-10-12 20:10 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!