php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43228 undefined function return in ext/soap/tests/server02[1|8].phpt
Submitted: 2007-11-09 16:56 UTC Modified: 2007-11-11 13:38 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: david at hisel dot com Assigned:
Status: Closed Package: SOAP related
PHP Version: 5.2.4 OS: Mac OS X
Private report: No CVE-ID: None
 [2007-11-09 16:56 UTC] david at hisel dot com
Description:
------------
need to add "new" keyword, otherwise call to "return SoapFault(...)" gives undefined function error.

ext/soap/tests/server021.phpt: line 12


      return SoapFault("Server","Function $name doesn't exist");

should read:

      return new SoapFault("Server","Function $name doesn't exist");

Regards,
.dave.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-09 17:04 UTC] david at hisel dot com
I ran a grep on the tests directory and found one more...

ext/soap/tests/server028.phpt: line 12

Regards,
.dave.
 [2007-11-11 13:38 UTC] iliaa@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 08 05:01:33 2024 UTC