PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Web Services » SOAP » Bug #4882

missing dependencies

Details

Submitted2005-07-22 11:25 UTC
Fromscholz at digi-info dot de
Assignedyunosh
StatusClosed
PackageSOAP
PHP Version4.3.10
OSDebian Sarge
Roadmaps(Not assigned)

Comments

[2005-07-22 11:25 UTC] scholz at digi-info dot de

Description:
------------
Hi,
if PEAR Package "Mail_mime" isn't installed, i expect a PEAR Error Object, but for now $mul is just an NULL soap_attachment Object.
It seems that something went wrong in SOAP's Value.php on Line 189, where PEAR::raiseError is called.

Test script:
---------------
<?php
require_once 'SOAP/Client.php';

$mul = new SOAP_Attachment (
"MUL",
"text/mul",
"mul.txt"
);

var_dump($mul);
?>

Expected result:
----------------
A PEAR Error if attachment could not created because of missing "Mail_mime"

Actual result:
--------------
empty SOAP_Attachment object