php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66534 extends Exception
Submitted: 2014-01-21 12:24 UTC Modified: 2014-12-30 10:42 UTC
Votes:2
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: admin at angosso dot net Assigned:
Status: No Feedback Package: Built-in web server
PHP Version: 5.4.24 OS: tmp
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: admin at angosso dot net
New email:
PHP Version: OS:

 

 [2014-01-21 12:24 UTC] 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. 

Patches

angosson (last revision 2014-01-21 12:26 UTC by admin at angosso dot net)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-01-21 18:06 UTC] requinix@php.net
-Status: Open +Status: Feedback
 [2014-01-21 18:06 UTC] requinix@php.net
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.
 [2014-12-30 10:42 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Jan 18 18:01:24 2020 UTC