ext_skel replacement

From: Date: Wed, 05 Aug 2009 03:38:48 +0000
Subject: ext_skel replacement
Groups: php.internals php.pecl.dev 
Request: Send a blank email to internals+get-45217@lists.php.net to get a copy of this message
Hi, I just committed an enhancement to pyrus designed for PHP extension authors (pecl and core), details in this commit: http://svn.php.net/viewvc/pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/PackageFile/Commands.php?r1=286823&r2=286822&pathrev=286823 Basically, it's a single command that mirrors ext_skel without some of the rarely needed junk, and strips doc generation as an option since that is now done by far better external tools. The command generates ZEND_ARG_INFO and understands PHP 6 parameter parsing when passing in protos for function stub generation. It also knows about classes, and automatically generates a stub for any class if the function name is specified as Classname::funcname in the proto. This is not intended to be as smart as PECL_Gen, but should be everything a new extension generation will need for current PHP developers. It's also all-PHP and automatically sets up the stuff needed for package.xml and generates a package.xml, so it can be used for new PECL extensions. I point this out because when pyrus has its first alpha (any day(TM)), it will have this feature, and I'd love for you all to test/break/fix it. Thanks, Greg

« previous php.internals (#45217) next »