Bug #66534 [Opn->Fbk]: extends Exception

From: Date: Tue, 21 Jan 2014 18:06:04 +0000
Subject: Bug #66534 [Opn->Fbk]: extends Exception
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-183940@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66534&edit=1 ID: 66534 Updated by: requinix@php.net Reported by: admin at angosso dot net Summary: extends Exception -Status: Open +Status: Feedback Type: Bug Package: Built-in web server Operating System: tmp PHP Version: 5.4.24 Block user comment: N Private report: N New Comment: Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. ...assuming you're trying to report a bug, because this is not the place to get help troubleshooting your application. Previous Comments: ------------------------------------------------------------------------ [2014-01-21 12:24:37] admin at angosso dot net Description: ------------ Service threw exceptions, A Yar_Server_Exception in client side Server Test script: --------------- Yar_Server_Exception extends Exception { /* Properties */ protected $_type ; /* Methods */ public stringgetType ( void ) /* Inherited methods */ final public stringException::getMessage ( void ) final public ExceptionException::getPrevious ( void ) final public mixedException::getCode ( void ) final public stringException::getFile ( void ) final public intException::getLine ( void ) final public arrayException::getTrace ( void ) final public stringException::getTraceAsString ( void ) public string Exception::__toString ( void ) final private voidException::__clone ( void ) } Contenu de /home/angosson/ Expected result: ---------------- <?php class MySoapService { private $user_is_valid; function MyHeader($header) { if ((isset($header->Username)) && (isset($header->Password))) { if (ValidateUser($header->Username, $header->Password)) { $user_is_valid = true;/home/angosson/public_html/ (www); } } } function MySoapRequest($request) { if ($user_is_valid) { // process request Accueil /home/angosson/ /home/angosson/public_ftp/ /home/angosson/public_html/ (www) index.html.var* index.htm* index.html* index.shtml* index.xhtml* index.wml* index.perl* index.pl* index.plx* index.ppl* index.cgi* index.jsp* index.js* index.jp* index.php4* index.php3* index.php* index.phtml* default.htm* default.html* home.htm* index.php5* Default.html* Default.htm* home.html* } else { throw new MyFault("MySoapRequest", "User not valid."); } } } ?> Actual result: -------------- Called when that header is not received. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=66534&edit=1

« previous php.bugs (#183940) next »