Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.1.3

Request #10613 patches to add a attribute 'throws' to a function element
Submitted: 2007-04-04 17:51 UTC
From: dimension Assigned: hholzgra
Status: Assigned Package: CodeGen_PECL (version 1.0.3)
PHP Version: 5.2.1 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2007-04-04 17:51 UTC] dimension (Hideyuki Shimooka)
Description: ------------ Hello. I created a patch (against 1.0.3) to add a attribute 'throws' to a function element. You can be found at http://www.doyouphp.jp/CodeGen_PECL_throws_patch.zip . An example of a spec file and a generated C code was shown at http://d.hatena.ne.jp/shimooka/20070405/1175707692 (sorry, an explanation is in Japanese, but those code are written in ASCII) .

Comments

 [2007-04-06 22:01 UTC] hholzgra (Hartmut Holzgraefe)
Generating registration code for extension specific exception classes makes sense, but i'm not sure about the "throws" attribute to class methods as all it does is generating example code for unimplemented methods. Unlike the parameter parsing template code this one doesn't make that much sense as its always the same one liner, looks more like a job for the mostly non-existant Zend Engine API documentation ... :( Anyway, i'll probably add a top level <exception> tag based on your patches soon ...