PHP Classes


Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in

      PHP WSDL Generator  >  All threads  >  PHPParser.php  >  (Un) Subscribe thread alerts  
Summary:Bug in PHPParser.php
Author:Lorenzo Breme
Date:2011-07-19 15:06:31
Update:2011-08-18 21:20:14

  1. PHPParser.php   Reply   Report abuse  
Picture of Lorenzo Breme Lorenzo Breme - 2011-07-19 15:06:31

I discovered a bug in the file PHPParser.php. When the parseFile() function parses every single line of your class code for building the wsdl file, it skips a few function comments and puts generic xsd:anytype parameter in the wsdl file.

I resolved that with the follow code (lines from 420 to 423):

417: $this->currentMethodType = $token[1] ? $token[1] : "public";
418: $this->currentMethod = $this->currentParams = null;
419: $token = $this->getNextToken();
420: if ($token[0] == T_DOC_COMMENT) {
421: $this->getPrevToken();
422: continue;
423: }

  2. Re: PHPParser.php   Reply   Report abuse  
Picture of anders anders - 2011-08-18 21:20:14 - In reply to message 1 from Lorenzo Breme
Very nice find
It's been driving me crazy