Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66977 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73122 invoked from network); 5 Apr 2013 12:10:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Apr 2013 12:10:04 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.178 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.210.178 mail-ia0-f178.google.com Received: from [209.85.210.178] ([209.85.210.178:62171] helo=mail-ia0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AB/A2-57919-A1FBE515 for ; Fri, 05 Apr 2013 07:10:02 -0500 Received: by mail-ia0-f178.google.com with SMTP id r13so3179964iar.9 for ; Fri, 05 Apr 2013 05:09:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=Bv0alFEY8BlsUgctAmeb4c2yJJfikuroxS7sPdUKg6w=; b=rIlFws4KZh0xQ7iGLL5739hgopZYRHySmjfI9vd5u2o3VEaqp0ik4tpoq1jb/mejZm KgXgO883m7y5rBKaSllI/vT/koohdU79CQLlHwJr+wT95YgpEzT2KTRaQceHe37hjINE HfE0qC0L84bjKOmhNBACXgivwAalKrsRh1lVexig37xoGTyY1XenD6SMzhqEOX1cTh+z St2NOoUmS+Un3mCqUr4E4geOSgkpvQ1KvE7G0bnaSw4A0YtYuimoyfhFjrnXykT0U6k8 eco1jtGLEwu0HV0KDbM+cQ4ptxeUn1d+pHqZgjYxJnDQnzp4e9fBT7dohdyO7DSZQxVW nKXw== MIME-Version: 1.0 X-Received: by 10.50.186.227 with SMTP id fn3mr1451640igc.17.1365163799400; Fri, 05 Apr 2013 05:09:59 -0700 (PDT) Received: by 10.50.66.207 with HTTP; Fri, 5 Apr 2013 05:09:59 -0700 (PDT) In-Reply-To: References: Date: Fri, 5 Apr 2013 14:09:59 +0200 Message-ID: To: Joe Watkins Cc: PHP Internals Content-Type: multipart/alternative; boundary=14dae93408a552efa404d99bf747 Subject: Re: [PHP-DEV] Proposal to document all of Zend and PHP API and SAPI layers From: tyra3l@gmail.com (Ferenc Kovacs) --14dae93408a552efa404d99bf747 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, Apr 5, 2013 at 1:00 PM, Joe Watkins wrote: > Morning All, > > Further to discussion in IRC this morning, I'd like to propose > what amounts to, I guess, a sub-project to properly document everything, > starting with everything declared ZEND_API in /Zend. > > We put a lot of effort into the generation and maintenance of use= r > land documentation, but there are only scraps of information here and > there, and then ... the accepted way of working with the source is lxr an= d > lots and lots of reading, which is fine, if you require intricate knowled= ge > of every part of the API you are interacting with, which normally you do > not, usually it is enough to know of it's existence, it's usage and > implementation is either obvious or irrelevant in the vast majority of > cases, should the function prototype be documented. > > I am also aware of some documentation included in the PHP manual > currently, which should also be completed, and included, with all of the > API in a searchable format, just like PHP is in userland. > > Ideally, it would be nice to document the API inline, in source, > this means disturbing lots of files, which I'm not keen on, if anyone has > any ideas, speak up. The benefit of inline documentation is that if a > function is changed the changer has the documentation in their peripheral > vision, and the chances of documentation getting stale are less likely th= an > if they have to document using some separate system. > > I'd like to gauge reaction to this idea, and with it a show of > hands, who can actually help ?? > > Thanks for listening :) > > Joe > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > Hi, I think that it everybody would support that idea, unfortunatelly not many people have the knowledge AND the time to write up that kind of documentation. Keeping it up-to-date would be less of a problem, as we could put the burden of updating the docs on that person changing the code. Personally I think it would be nice if we could have inline comments in the code, and using doxygen (or similar) tool to generate some html representation for the docs (helly used this for documenting spl: http://www.php.net/~helly/php/ext/spl/ ). But we also need to have some more high level documentation, where we introduce the concepts and how the pieces fit together, that could be under http://php.net/internals2 I'm curious what others think though. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --14dae93408a552efa404d99bf747--