Bug #66534 [NEW]: extends Exception
From: admin at angosso dot net
Operating system: tmp
PHP version: 5.4.24
Package: Built-in web server
Bug Type: Bug
Bug description:extends Exception
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 bug report at https://bugs.php.net/bug.php?id=66534&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66534&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66534&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66534&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=66534&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=66534&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=66534&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=66534&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=66534&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=66534&r=support
Expected behavior: https://bugs.php.net/fix.php?id=66534&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=66534&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=66534&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=66534&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66534&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=66534&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=66534&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=66534&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=66534&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=66534&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=66534&r=mysqlcfg
Thread (3 messages)
- admin at angosso dot net