Re: [PHP-DOC] Reflection API
On Sun, 2004-04-04 at 12:15, Friedhelm Betz wrote: > On Sunday 04 April 2004 11:10, Gabor Hojtsy wrote: > > Ah, then it is better to document it as a feature and get away with > > it. Extensions documented in the manual have things like installation > > instructions, dependencies, php.ini settings, etc. IMHO it is only > > worth to document it as an extension, if these are needed in the > > docs. Otherwise it is a feature. > > I personally would like to see this documented under Language reference > -> classes and Objects -> Reflection API. [...] > Maybe Timm has a clever suggestion/solution where reflection to > document? I'd add it under Language Reference -> Reflection API so it shows up in the main toc. It is, after all, a core feature of PHP5. - Timm
[PHP-DOC] cvs: php-src(PHP_5_3) /ext/sybase_ct php_sybase_ct.c
thekid Mon Nov 10 10:59:45 2008 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/sybase_ct php_sybase_ct.c Log: - Added optional parameter "new" to sybase_connect # [DOC] If a second call is made to sybase_connect() with the same arguments # no new link will be established, but instead, the link identifier of the # already opened link will be returned. The new parameter modifies this # behavior and makes sybase_connect() always open a new link, even if # sybase_connect() was called before with the same parameters. http://cvs.php.net/viewvc.cgi/php-src/ext/sybase_ct/php_sybase_ct.c?r1=1.103.2.5.2.13.2.12&r2=1.103.2.5.2.13.2.13&diff_format=u Index: php-src/ext/sybase_ct/php_sybase_ct.c diff -u php-src/ext/sybase_ct/php_sybase_ct.c:1.103.2.5.2.13.2.12 php-src/ext/sybase_ct/php_sybase_ct.c:1.103.2.5.2.13.2.13 --- php-src/ext/sybase_ct/php_sybase_ct.c:1.103.2.5.2.13.2.12 Sun Nov 9 11:39:14 2008 +++ php-src/ext/sybase_ct/php_sybase_ct.c Mon Nov 10 10:59:44 2008 @@ -18,7 +18,7 @@ +--+ */ -/* $Id: php_sybase_ct.c,v 1.103.2.5.2.13.2.12 2008/11/09 11:39:14 thekid Exp $ */ +/* $Id: php_sybase_ct.c,v 1.103.2.5.2.13.2.13 2008/11/10 10:59:44 thekid Exp $ */ #ifdef HAVE_CONFIG_H @@ -49,6 +49,7 @@ ZEND_ARG_INFO(0, password) ZEND_ARG_INFO(0, charset) ZEND_ARG_INFO(0, appname) + ZEND_ARG_INFO(0, new) ZEND_END_ARG_INFO() static @@ -753,13 +754,19 @@ { char *user, *passwd, *host, *charset, *appname; char *hashed_details; - int hashed_details_length; - int len; + int hashed_details_length, len; + zend_bool new = 0; sybase_link *sybase_ptr; host= user= passwd= charset= appname= NULL; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s", &host, &len, &user, &len, &passwd, &len, &charset, &len, &appname, &len) == FAILURE) { - return; + if (persistent) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s!s!s!s!s!", &host, &len, &user, &len, &passwd, &len, &charset, &len, &appname, &len) == FAILURE) { + return; + } + } else { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s!s!s!s!s!b", &host, &len, &user, &len, &passwd, &len, &charset, &len, &appname, &len, &new) == FAILURE) { + return; + } } hashed_details_length = spprintf( &hashed_details, @@ -865,7 +872,7 @@ * if it doesn't, open a new sybase link, add it to the resource list, * and add a pointer to it with hashed_details as the key. */ - if (zend_hash_find(&EG(regular_list), hashed_details, hashed_details_length+1, (void **) &index_ptr)==SUCCESS) { + if (!new && zend_hash_find(&EG(regular_list), hashed_details, hashed_details_length+1, (void **) &index_ptr)==SUCCESS) { int type, link; void *ptr; @@ -929,7 +936,7 @@ } -/* {{{ proto int sybase_connect([string host [, string user [, string password [, string charset [, string appname]) +/* {{{ proto int sybase_connect([string host [, string user [, string password [, string charset [, string appname [, bool new]]) Open Sybase server connection */ PHP_FUNCTION(sybase_connect) {
[PHP-DOC] [Fwd: Re: [PHP-DEV] [Fwd: [CVS] karma for sybase docs]]
-Forwarded Message- > From: Maxim Maletsky <[EMAIL PROTECTED]> > To: Timm Friebe <[EMAIL PROTECTED]> > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP-DEV] [Fwd: [CVS] karma for sybase docs] > Date: 12 Nov 2002 00:03:01 +0100 > > > try sending this to PHP-DOC list: [EMAIL PROTECTED] > > -- > Maxim Maletsky > [EMAIL PROTECTED] > > > On 11 Nov 2002 18:20:21 +0100 Timm Friebe <[EMAIL PROTECTED]> wrote: > > > Is [EMAIL PROTECTED] the wrong address to send this? There hasn't been any > > response on this so far (neither negative nor positive)... > > > > -Forwarded Message- > > > From: Timm Friebe <[EMAIL PROTECTED]> > > > To: [EMAIL PROTECTED] > > > Subject: [CVS] karma for sybase docs > > > Date: 07 Nov 2002 12:39:42 +0100 > > > > > > thekid@friebes:~/devel/php/phpdoc/en/reference/sybase > cvs com -m '- > > > Added documentation for the new function sybase_fetch_assoc() (Timm)' > > > functions/sybase-fetch-assoc.xml > > > Access denied: insufficient karma > > > (thekid|phpdoc/en/reference/sybase/functions) > > > Contact [EMAIL PROTECTED] for access to > > > phpdoc/en/reference/sybase/functions > > > cvs server: Pre-commit check failed > > > cvs [server aborted]: correct above errors first! > > > > > > I wrote up some documentation about my changes to ext/sybase_ct. > > > > > > - Diff > > > http://sitten-polizei.de/php/documentation.diff > > > > > > - New files > > > http://sitten-polizei.de/php/sybase-fetch-assoc.xml > > > http://sitten-polizei.de/php/sybase-set-message-handler.xml > > > http://sitten-polizei.de/php/sybase-unbuffered-query.xml > > > > > > Could someone either apply these changes or give me the karma to do so? > > > I could also provide documentation in German if needed. > > > > -- > > Timm > > Any sufficiently advanced bug is indistinguishable from a feature > > > > > > -- > > PHP Development Mailing List <http://www.php.net/> > > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- Timm Any sufficiently advanced bug is indistinguishable from a feature -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php