[PHP-DOC] cvs: phpdoc /en/reference/oci8/functions oci-bind-by-name.xml
yannick Mon Mar 26 07:25:26 2007 UTC Modified files: /phpdoc/en/reference/oci8/functions oci-bind-by-name.xml Log: typo http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/oci8/functions/oci-bind-by-name.xml?r1=1.13&r2=1.14&diff_format=u Index: phpdoc/en/reference/oci8/functions/oci-bind-by-name.xml diff -u phpdoc/en/reference/oci8/functions/oci-bind-by-name.xml:1.13 phpdoc/en/reference/oci8/functions/oci-bind-by-name.xml:1.14 --- phpdoc/en/reference/oci8/functions/oci-bind-by-name.xml:1.13Mon Mar 5 20:46:09 2007 +++ phpdoc/en/reference/oci8/functions/oci-bind-by-name.xml Mon Mar 26 07:25:26 2007 @@ -1,5 +1,5 @@ - + oci_bind_by_name @@ -154,7 +154,7 @@ &reftitle.examples; -oci_bind_by_nameexample +oci_bind_by_name example
[PHP-DOC] cvs: pecl /phar TODO phar.c phar_internal.h phar_object.c
cellog Mon Mar 26 00:00:55 2007 UTC Modified files: /pecl/phar TODO phar.c phar_internal.h phar_object.c Log: [DOC] implement setSignatureAlgorithm() and add class constants Phar::MD5, Phar::SHA1, Phar::SHA256, Phar::SHA512, Phar::PGP http://cvs.php.net/viewvc.cgi/pecl/phar/TODO?r1=1.31&r2=1.32&diff_format=u Index: pecl/phar/TODO diff -u pecl/phar/TODO:1.31 pecl/phar/TODO:1.32 --- pecl/phar/TODO:1.31 Sun Mar 25 21:43:48 2007 +++ pecl/phar/TODO Mon Mar 26 00:00:55 2007 @@ -40,6 +40,8 @@ * [optional] Phar->rollback() to abort a write transaction * implement GPG signing X add SHA-2 (256, 512) support [Marcus] + X setSignatureAlgorithm() and Phar::MD5 Phar::SHA1 Phar::SHA256 Phar::SHA512 Phar::PGP to + choose the kind of signature to use (PGP falls back to SHA1) [Greg] * ability to match files containing a metadata key opendir('phar://a.phar/?mime-type=image/jpeg') or foreach ($p->match('mime-type', 'image/jpeg') as $file) * Phar::copy($from, $to); http://cvs.php.net/viewvc.cgi/pecl/phar/phar.c?r1=1.185&r2=1.186&diff_format=u Index: pecl/phar/phar.c diff -u pecl/phar/phar.c:1.185 pecl/phar/phar.c:1.186 --- pecl/phar/phar.c:1.185 Sun Mar 25 23:42:48 2007 +++ pecl/phar/phar.cMon Mar 26 00:00:55 2007 @@ -17,7 +17,7 @@ +--+ */ -/* $Id: phar.c,v 1.185 2007/03/25 23:42:48 cellog Exp $ */ +/* $Id: phar.c,v 1.186 2007/03/26 00:00:55 cellog Exp $ */ #define PHAR_MAIN #include "phar_internal.h" @@ -2522,9 +2522,7 @@ efree(archive->signature); } - switch(PHAR_SIG_USE) { - case PHAR_SIG_PGP: - /* TODO: currently fall back to sha1,later do both */ + switch(archive->sig_flags) { #if HAVE_HASH_EXT case PHAR_SIG_SHA512: { unsigned char digest[64]; @@ -2566,6 +2564,8 @@ } return EOF; #endif + case PHAR_SIG_PGP: + /* TODO: currently fall back to sha1,later do both */ default: case PHAR_SIG_SHA1: { unsigned char digest[20]; @@ -3376,7 +3376,7 @@ php_info_print_table_header(2, "Phar: PHP Archive support", "enabled"); php_info_print_table_row(2, "Phar EXT version", PHAR_EXT_VERSION_STR); php_info_print_table_row(2, "Phar API version", PHAR_API_VERSION_STR); - php_info_print_table_row(2, "CVS revision", "$Revision: 1.185 $"); + php_info_print_table_row(2, "CVS revision", "$Revision: 1.186 $"); php_info_print_table_row(2, "gzip compression", #if HAVE_ZLIB "enabled"); http://cvs.php.net/viewvc.cgi/pecl/phar/phar_internal.h?r1=1.26&r2=1.27&diff_format=u Index: pecl/phar/phar_internal.h diff -u pecl/phar/phar_internal.h:1.26 pecl/phar/phar_internal.h:1.27 --- pecl/phar/phar_internal.h:1.26 Sun Mar 25 21:43:48 2007 +++ pecl/phar/phar_internal.h Mon Mar 26 00:00:55 2007 @@ -17,7 +17,7 @@ +--+ */ -/* $Id: phar_internal.h,v 1.26 2007/03/25 21:43:48 helly Exp $ */ +/* $Id: phar_internal.h,v 1.27 2007/03/26 00:00:55 cellog Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -83,8 +83,6 @@ #define PHAR_SIG_SHA512 0x0004 #define PHAR_SIG_PGP 0x0010 -#define PHAR_SIG_USE PHAR_SIG_SHA1 - /* flags byte for each file adheres to these bitmasks. All unused values are reserved */ #define PHAR_ENT_COMPRESSION_MASK 0xF000 http://cvs.php.net/viewvc.cgi/pecl/phar/phar_object.c?r1=1.43&r2=1.44&diff_format=u Index: pecl/phar/phar_object.c diff -u pecl/phar/phar_object.c:1.43 pecl/phar/phar_object.c:1.44 --- pecl/phar/phar_object.c:1.43Sun Mar 25 21:43:48 2007 +++ pecl/phar/phar_object.c Mon Mar 26 00:00:55 2007 @@ -17,7 +17,7 @@ +--+ */ -/* $Id: phar_object.c,v 1.43 2007/03/25 21:43:48 helly Exp $ */ +/* $Id: phar_object.c,v 1.44 2007/03/26 00:00:55 cellog Exp $ */ #include "phar_internal.h" @@ -350,6 +350,51 @@ } /* }}} */ +/* {{{ proto array Phar::setSignatureAlgorithm(int sigtype) + * set the signature algorithm for a phar and apply it. The + * signature algorithm must be one of Phar::MD5, Phar::SHA1, + * Phar::SHA256 or Phar::SHA512 + */ +PHP_METHOD(Phar, setSignatureAlgorithm) +{ + long algo; + char *error; + PHAR_ARCHIVE_OBJECT(); + + if (PHAR_G(readonly)) { + zend_throw_exception_ex(spl_ce_UnexpectedValueException, 0 TSRMLS_CC, + "Cannot change stub, phar is read-only"); + } + + if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "l", &algo) != SUCCESS) { + return; + } + + switch (algo) { +
[PHP-DOC] #39937 [Opn->Bgs]: max_execution_time / set_time_limit could use better documentation
ID: 39937 Updated by: [EMAIL PROTECTED] Reported By: mike503+php at gmail dot com -Status: Open +Status: Bogus Bug Type: Documentation problem Operating System: Linux PHP Version: 5.2.0 New Comment: Already documented: "Any time spent on activity that happens outside the execution of the script such as system calls using system(), stream operations, database queries, etc. is not included when determining the maximum time that the script has been running." There is no function for limiting human seconds AFAIK. Previous Comments: [2006-12-23 15:04:25] mike503+php at gmail dot com Description: The manual does not clearly state how the seconds are determined for set_time_limit and max_execution_time - it keeps saying "seconds" - but on many of my apps i do not use sleep() or anything that shouldn't count as part of the timeout, yet it seems to never timeout; even with set_time_limit(20) set. something that low should be okay, but it doesn't appear to be. for instance in a script i have, i set_time_limit(20) - and the script normally takes at lest 2-5 minutes of actual time to run. it uses curl a lot and string work; no sleep() involved when i exit the script i see this: real0m52.776s user0m0.084s sys 0m0.078s it far surpassed "real" time - but apparently did not use much user/sys time. is that the reason for it not terminating yet? does it need to use 20 seconds of "user" time? is there any way for a function to be defined or a parameter to be added to tell it to measure in actual script execution time (without any concern for sleep() or external system calls or anything - flat out limiting how long a script runs based on human seconds?) -- Edit this bug report at http://bugs.php.net/?id=39937&edit=1
[PHP-DOC] cvs: pecl /phar TODO package.xml phar.c phar_internal.h phar_object.c /phar/tests extracted.inc extracted_001.phpt
helly Sun Mar 25 19:03:37 2007 UTC Added files: /pecl/phar/testsextracted.inc extracted_001.phpt Modified files: /pecl/phar TODO package.xml phar.c phar_internal.h phar_object.c Log: - Add ini: phar.extract_list - Add Phar::getExtractList - Both allow to set a mapping to [[DOC]] http://cvs.php.net/viewvc.cgi/pecl/phar/TODO?r1=1.28&r2=1.29&diff_format=u Index: pecl/phar/TODO diff -u pecl/phar/TODO:1.28 pecl/phar/TODO:1.29 --- pecl/phar/TODO:1.28 Sat Feb 3 04:04:16 2007 +++ pecl/phar/TODO Sun Mar 25 19:03:36 2007 @@ -32,9 +32,14 @@ Version 1.1.0 + X Ability connect a phar file 'phar://whatever' to a directory. That way all + access to that phat archive are directed to the extracted directory. This + allows to have the installed files and the archieve keep the same includes. + [Marcus] * ability to have Phar object return file class as offsetGet() result * [optional] Phar->rollback() to abort a write transaction * implement GPG signing + * add SHA-2 support * ability to match files containing a metadata key opendir('phar://a.phar/?mime-type=image/jpeg') or foreach ($p->match('mime-type', 'image/jpeg') as $file) * Phar::copy($from, $to); http://cvs.php.net/viewvc.cgi/pecl/phar/package.xml?r1=1.19&r2=1.20&diff_format=u Index: pecl/phar/package.xml diff -u pecl/phar/package.xml:1.19 pecl/phar/package.xml:1.20 --- pecl/phar/package.xml:1.19 Thu Mar 22 17:12:08 2007 +++ pecl/phar/package.xml Sun Mar 25 19:03:36 2007 @@ -98,6 +98,8 @@ + + http://cvs.php.net/viewvc.cgi/pecl/phar/phar.c?r1=1.182&r2=1.183&diff_format=u Index: pecl/phar/phar.c diff -u pecl/phar/phar.c:1.182 pecl/phar/phar.c:1.183 --- pecl/phar/phar.c:1.182 Wed Mar 21 17:14:45 2007 +++ pecl/phar/phar.cSun Mar 25 19:03:36 2007 @@ -17,10 +17,11 @@ +--+ */ -/* $Id: phar.c,v 1.182 2007/03/21 17:14:45 cellog Exp $ */ +/* $Id: phar.c,v 1.183 2007/03/25 19:03:36 helly Exp $ */ #define PHAR_MAIN #include "phar_internal.h" +#include "SAPI.h" ZEND_DECLARE_MODULE_GLOBALS(phar) @@ -69,9 +70,98 @@ } /* }}}*/ +static void phar_split_extract_list(TSRMLS_D) +{ + char *tmp = estrdup(PHAR_GLOBALS->extract_list); + char *key; + char *lasts; + char *q; + int keylen; + + zend_hash_clean(&(PHAR_GLOBALS->phar_plain_map)); + + for (key = php_strtok_r(tmp, ",", &lasts); + key; + key = php_strtok_r(NULL, ",", &lasts)) + { + char *val = strchr(key, '='); + + if (val) { + *val++ = '\0'; + for (q = key; *q; q++) { + *q = tolower(*q); + } + keylen = q - key + 1; + zend_hash_add(&(PHAR_GLOBALS->phar_plain_map), key, keylen, val, strlen(val)+1, NULL); + } + } + efree(tmp); +} +/* }}} */ + +ZEND_INI_MH(phar_ini_extract_list) /* {{{ */ +{ + PHAR_G(extract_list) = new_value; + + if (stage == ZEND_INI_STAGE_RUNTIME) { + phar_split_extract_list(TSRMLS_C); + } + + return SUCCESS; +} +/* }}} */ + +ZEND_INI_DISP(phar_ini_extract_list_disp) /*void name(zend_ini_entry *ini_entry, int type) {{{ */ +{ + char *value; + + if (type==ZEND_INI_DISPLAY_ORIG && ini_entry->modified) { + value = ini_entry->orig_value; + } else if (ini_entry->value) { + value = ini_entry->value; + } else { + value = NULL; + } + + if (value) { + char *tmp = strdup(value); + char *key; + char *lasts; + char *q; + + if (!sapi_module.phpinfo_as_text) { + php_printf(""); + } + for (key = php_strtok_r(tmp, ",", &lasts); + key; + key = php_strtok_r(NULL, ",", &lasts)) + { + char *val = strchr(key, '='); + + if (val) { + *val++ = '\0'; + for (q = key; *q; q++) { + *q = tolower(*q); + } + if (sapi_module.phpinfo_as_text) { + php_printf("%s => %s", key, val); + } else { + php_printf("%s => %s", key, val); + } + } + } + if (!sapi_module.phpinfo_as_text) { + php_printf(""); + } + free(tmp); + } +} +/* }}} */ + PHP_INI_BEGIN() -
[PHP-DOC] cvs: phpdoc /en/reference/mysqli/functions mysqli-fetch-row.xml
yannick Sun Mar 25 18:08:03 2007 UTC Modified files: /phpdoc/en/reference/mysqli/functions mysqli-fetch-row.xml Log: typo http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mysqli/functions/mysqli-fetch-row.xml?r1=1.19&r2=1.20&diff_format=u Index: phpdoc/en/reference/mysqli/functions/mysqli-fetch-row.xml diff -u phpdoc/en/reference/mysqli/functions/mysqli-fetch-row.xml:1.19 phpdoc/en/reference/mysqli/functions/mysqli-fetch-row.xml:1.20 --- phpdoc/en/reference/mysqli/functions/mysqli-fetch-row.xml:1.19 Sun Mar 25 10:51:56 2007 +++ phpdoc/en/reference/mysqli/functions/mysqli-fetch-row.xml Sun Mar 25 18:08:03 2007 @@ -1,5 +1,5 @@ - + mysqli_fetch_row @@ -42,7 +42,7 @@ &reftitle.returnvalues; - mysqli_fetch_row returns an array of strnigs that corresponds to the fetched row + mysqli_fetch_row returns an array of strings that corresponds to the fetched row or &null; if there are no more rows in result set. &database.fetch-null;
[PHP-DOC] cvs: phpdoc /en/reference/mysqli/functions mysqli-fetch-assoc.xml
yannick Sun Mar 25 18:05:58 2007 UTC Modified files: /phpdoc/en/reference/mysqli/functions mysqli-fetch-assoc.xml Log: typo http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mysqli/functions/mysqli-fetch-assoc.xml?r1=1.21&r2=1.22&diff_format=u Index: phpdoc/en/reference/mysqli/functions/mysqli-fetch-assoc.xml diff -u phpdoc/en/reference/mysqli/functions/mysqli-fetch-assoc.xml:1.21 phpdoc/en/reference/mysqli/functions/mysqli-fetch-assoc.xml:1.22 --- phpdoc/en/reference/mysqli/functions/mysqli-fetch-assoc.xml:1.21Sun Mar 25 10:51:56 2007 +++ phpdoc/en/reference/mysqli/functions/mysqli-fetch-assoc.xml Sun Mar 25 18:05:58 2007 @@ -1,5 +1,5 @@ - + mysqli_fetch_assoc @@ -42,7 +42,7 @@ &reftitle.returnvalues; - Returns an associative array of strnigs representing the fetched row in the result + Returns an associative array of strings representing the fetched row in the result set, where each key in the array represents the name of one of the result set's columns or &null; if there are no more rows in resultset.
[PHP-DOC] cvs: phpdoc /en/reference/mysqli/functions mysqli-fetch-array.xml
yannick Sun Mar 25 18:04:43 2007 UTC Modified files: /phpdoc/en/reference/mysqli/functions mysqli-fetch-array.xml Log: typo http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mysqli/functions/mysqli-fetch-array.xml?r1=1.23&r2=1.24&diff_format=u Index: phpdoc/en/reference/mysqli/functions/mysqli-fetch-array.xml diff -u phpdoc/en/reference/mysqli/functions/mysqli-fetch-array.xml:1.23 phpdoc/en/reference/mysqli/functions/mysqli-fetch-array.xml:1.24 --- phpdoc/en/reference/mysqli/functions/mysqli-fetch-array.xml:1.23Sun Mar 25 10:51:56 2007 +++ phpdoc/en/reference/mysqli/functions/mysqli-fetch-array.xml Sun Mar 25 18:04:43 2007 @@ -1,5 +1,5 @@ - + mysqli_fetch_array @@ -77,7 +77,7 @@ &reftitle.returnvalues; - Returns an array of strnigs that corresponds to the fetched row or &null; if there + Returns an array of strings that corresponds to the fetched row or &null; if there are no more rows in resultset.
[PHP-DOC] #40914 [NEW]: readcvs instructions for PHPDOC HOWTO
From: [EMAIL PROTECTED] Operating system: PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: readcvs instructions for PHPDOC HOWTO Description: Add instructions to http://doc.php.net/php/dochowto/cvs-login.php how to access repository in a readonly way and how to provide a patch for documentation to help people start without PHPDOC CVS account. Include instructions from http://www.php.net/anoncvs.php -- Edit bug report at http://bugs.php.net/?id=40914&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40914&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40914&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40914&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=40914&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=40914&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=40914&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=40914&r=needscript Try newer version:http://bugs.php.net/fix.php?id=40914&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=40914&r=support Expected behavior:http://bugs.php.net/fix.php?id=40914&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=40914&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=40914&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=40914&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40914&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=40914&r=dst IIS Stability:http://bugs.php.net/fix.php?id=40914&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=40914&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=40914&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=40914&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=40914&r=mysqlcfg
[PHP-DOC] #19069 [Bgs->Csd]: PHP Documentation HOWTO is unreadable
ID: 19069 Updated by: [EMAIL PROTECTED] Reported By: yueban at netease dot com -Status: Bogus +Status: Closed Bug Type:Documentation problem PHP Version: 4CVS-2002-08-23 New Comment: The howto is fixed and now accessible from the internet. Previous tar.gz version doesn't exist no more. http://doc.php.net/php/dochowto/ Previous Comments: [2002-08-23 09:14:07] [EMAIL PROTECTED] Internet Explorer is having issues with downloading the howto, the easiest way of resolving this is to use another browser or some kind of download manager. [2002-08-23 08:13:34] yueban at netease dot com What the hell is going on with the PHP Documentation HOWTO? It's complete the mass! Starting from Chapter 6, then Chapter 3, then Chapter 17, then Chapter 5 ... I can't get any idea from this document! Is that this file supposed to be? Or did anyone actually read it before put it on this location: http://cvs.php.net/co.php/phpdoc/howto/howto.html.tar.gz Please check it out! -- Edit this bug report at http://bugs.php.net/?id=19069&edit=1
[PHP-DOC] cvs: phpdoc /en/reference/http reference.xml
bjori Sun Mar 25 16:46:48 2007 UTC Modified files: /phpdoc/en/reference/http reference.xml Log: Fix markup (see bug#40723) http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/http/reference.xml?r1=1.16&r2=1.17&diff_format=u Index: phpdoc/en/reference/http/reference.xml diff -u phpdoc/en/reference/http/reference.xml:1.16 phpdoc/en/reference/http/reference.xml:1.17 --- phpdoc/en/reference/http/reference.xml:1.16 Sun Mar 4 08:38:38 2007 +++ phpdoc/en/reference/http/reference.xml Sun Mar 25 16:46:48 2007 @@ -1,5 +1,5 @@ - + @@ -8,7 +8,7 @@ http - + &reftitle.intro; This HTTP extension aims to provide a convenient and powerful @@ -35,9 +35,9 @@ Global Constants Resource Types - + - + Classes HttpMessage @@ -48,11 +48,11 @@ HttpRequestPool HttpResponse - + - + Functions - + Built-in Functions Built-in HTTP related functions previously listed on this page can be found in the @@ -63,23 +63,23 @@ header, headers_list, headers_sent, setcookie &listendand; setrawcookie. - - + + Caching http_cache_etag http_cache_last_modified - - + + Encodings http_chunked_decode http_deflate http_inflate - - + + Miscellaneous http_build_cookie @@ -92,24 +92,24 @@ http_match_request_header http_support - - + + Negotiation http_negotiate_charset http_negotiate_content_type http_negotiate_language - - + + Outputhandlers ob_deflatehandler ob_etaghandler ob_inflatehandler - - + + Parsers http_parse_cookie @@ -117,8 +117,8 @@ http_parse_message http_parse_params - - + + Requests http_get @@ -135,8 +135,8 @@ http_request_method_unregister http_request - - + + Responses http_redirect @@ -149,15 +149,15 @@ http_send_stream http_throttle - - + + URLs http_build_str http_build_url - - + +
[PHP-DOC] #40723 [Asn->Bgs]: new build system truncates pp.
ID: 40723 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Assigned +Status: Bogus Bug Type:Documentation problem PHP Version: Irrelevant Assigned To: bjori New Comment: It is expected behavior of docbook-xsl. You should be using there, not (see: http://www.sagehill.net/docbookxsl/Chunking.html) Previous Comments: [2007-03-05 06:44:43] [EMAIL PROTECTED] Description: As you can see when comparing http/reference.xml and php.net/http, the (new?) build system truncates any subsequent sections. -- Edit this bug report at http://bugs.php.net/?id=40723&edit=1
[PHP-DOC] #40386 [Asn->Csd]: Bad encoding declaration
ID: 40386 Updated by: [EMAIL PROTECTED] Reported By: bugsmail at seznam dot cz -Status: Assigned +Status: Closed Bug Type:Documentation problem PHP Version: Irrelevant Assigned To: derick New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Should be fixed now. Previous Comments: [2007-02-07 13:15:17] bugsmail at seznam dot cz Description: >From page http://www.php.net/download-docs.php I downloaded file php_manual_cs.tar.gz. In HTML files is coded in UTF-8, but in head section is declaration "CONTENT="text/html; charset=ISO-8859-2". That's why browser uses bad charset. -- Edit this bug report at http://bugs.php.net/?id=40386&edit=1
[PHP-DOC] Notes Status, 17216 total
Following are the top 20 pages of the manual, sorted by the number of user notes contributed. These sections could use a polish, those notes represent 8.9% of the 17216 total user notes. Notes | Page ---+- 113 | http://php.net/manual/en/function.header.php 99 | http://php.net/manual/en/function.strtotime.php 95 | http://php.net/manual/en/ref.session.php 90 | http://php.net/manual/en/function.preg-match.php 82 | http://php.net/manual/en/ref.image.php 81 | http://php.net/manual/en/function.fsockopen.php 81 | http://php.net/manual/en/features.file-upload.php 78 | http://php.net/manual/en/function.readdir.php 76 | http://php.net/manual/en/function.array-search.php 71 | http://php.net/manual/en/ref.array.php 71 | http://php.net/manual/en/reserved.variables.php 70 | http://php.net/manual/en/function.rand.php 69 | http://php.net/manual/en/function.preg-replace.php 69 | http://php.net/manual/en/function.fgetcsv.php 68 | http://php.net/manual/en/ref.com.php 67 | http://php.net/manual/en/function.mssql-connect.php 66 | http://php.net/manual/en/function.date.php 65 | http://php.net/manual/en/function.in-array.php 63 | http://php.net/manual/en/ref.curl.php 63 | http://php.net/manual/en/function.strpos.php
[PHP-DOC] #40206 [Opn->Csd]: should note that mysql functions all fetch strings, not corresponding data type
ID: 40206 Updated by: [EMAIL PROTECTED] Reported By: stepheneliotdewey at gmail dot com -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: irrelevant PHP Version: Irrelevant New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. "Returns an array of strings" Previous Comments: [2007-01-23 10:22:47] stepheneliotdewey at gmail dot com Description: You should note in your documentation that the MySQL and MySQLi extensions all return strings, not the corresponding data types. E.g., if you pull out a column that is an integer column in MySQL, it will still be represented as a string in PHP, not an integer. I think adding this simple statement would help users a lot. I will add this as a user note on one of the pages, but this should be mentioned with the functions like mysqli_fetch_row, mysqli_fetch_assoc, etc. -- Edit this bug report at http://bugs.php.net/?id=40206&edit=1
[PHP-DOC] cvs: phpdoc /en/reference/mysql/functions mysql-fetch-array.xml mysql-fetch-assoc.xml mysql-fetch-object.xml mysql-fetch-row.xml
vrana Sun Mar 25 10:52:00 2007 UTC Modified files: /phpdoc/en/reference/mysql/functionsmysql-fetch-array.xml mysql-fetch-assoc.xml mysql-fetch-object.xml mysql-fetch-row.xml Log: fetch functions return string (bug #40206) http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mysql/functions/mysql-fetch-array.xml?r1=1.24&r2=1.25&diff_format=u Index: phpdoc/en/reference/mysql/functions/mysql-fetch-array.xml diff -u phpdoc/en/reference/mysql/functions/mysql-fetch-array.xml:1.24 phpdoc/en/reference/mysql/functions/mysql-fetch-array.xml:1.25 --- phpdoc/en/reference/mysql/functions/mysql-fetch-array.xml:1.24 Fri Aug 26 12:10:46 2005 +++ phpdoc/en/reference/mysql/functions/mysql-fetch-array.xml Sun Mar 25 10:51:59 2007 @@ -1,5 +1,5 @@ - + mysql_fetch_array @@ -42,7 +42,7 @@ &reftitle.returnvalues; - Returns an array that corresponds to the fetched row, or &false; + Returns an array of strings that corresponds to the fetched row, or &false; if there are no more rows. The type of returned array depends on how result_type is defined. By using MYSQL_BOTH (default), you'll get an array with both http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mysql/functions/mysql-fetch-assoc.xml?r1=1.15&r2=1.16&diff_format=u Index: phpdoc/en/reference/mysql/functions/mysql-fetch-assoc.xml diff -u phpdoc/en/reference/mysql/functions/mysql-fetch-assoc.xml:1.15 phpdoc/en/reference/mysql/functions/mysql-fetch-assoc.xml:1.16 --- phpdoc/en/reference/mysql/functions/mysql-fetch-assoc.xml:1.15 Tue May 31 08:59:48 2005 +++ phpdoc/en/reference/mysql/functions/mysql-fetch-assoc.xml Sun Mar 25 10:51:59 2007 @@ -1,5 +1,5 @@ - + mysql_fetch_assoc @@ -33,7 +33,7 @@ &reftitle.returnvalues; - Returns an associative array that corresponds to the fetched row, or + Returns an associative array of strings that corresponds to the fetched row, or &false; if there are no more rows. http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mysql/functions/mysql-fetch-object.xml?r1=1.15&r2=1.16&diff_format=u Index: phpdoc/en/reference/mysql/functions/mysql-fetch-object.xml diff -u phpdoc/en/reference/mysql/functions/mysql-fetch-object.xml:1.15 phpdoc/en/reference/mysql/functions/mysql-fetch-object.xml:1.16 --- phpdoc/en/reference/mysql/functions/mysql-fetch-object.xml:1.15 Thu Aug 31 22:09:10 2006 +++ phpdoc/en/reference/mysql/functions/mysql-fetch-object.xml Sun Mar 25 10:51:59 2007 @@ -1,5 +1,5 @@ - + mysql_fetch_object @@ -50,7 +50,7 @@ &reftitle.returnvalues; - Returns an object with properties that correspond to the + Returns an object with string properties that correspond to the fetched row, or &false; if there are no more rows. http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mysql/functions/mysql-fetch-row.xml?r1=1.12&r2=1.13&diff_format=u Index: phpdoc/en/reference/mysql/functions/mysql-fetch-row.xml diff -u phpdoc/en/reference/mysql/functions/mysql-fetch-row.xml:1.12 phpdoc/en/reference/mysql/functions/mysql-fetch-row.xml:1.13 --- phpdoc/en/reference/mysql/functions/mysql-fetch-row.xml:1.12Tue May 31 08:59:48 2005 +++ phpdoc/en/reference/mysql/functions/mysql-fetch-row.xml Sun Mar 25 10:52:00 2007 @@ -1,5 +1,5 @@ - + mysql_fetch_row @@ -30,7 +30,7 @@ &reftitle.returnvalues; - Returns an numerical array that corresponds to the fetched row, or + Returns an numerical array of strings that corresponds to the fetched row, or &false; if there are no more rows.
[PHP-DOC] cvs: phpdoc /en/reference/mysqli/functions mysqli-fetch-array.xml mysqli-fetch-assoc.xml mysqli-fetch-object.xml mysqli-fetch-row.xml
vrana Sun Mar 25 10:51:56 2007 UTC Modified files: /phpdoc/en/reference/mysqli/functions mysqli-fetch-array.xml mysqli-fetch-assoc.xml mysqli-fetch-object.xml mysqli-fetch-row.xml Log: fetch functions return string (bug #40206) http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mysqli/functions/mysqli-fetch-array.xml?r1=1.22&r2=1.23&diff_format=u Index: phpdoc/en/reference/mysqli/functions/mysqli-fetch-array.xml diff -u phpdoc/en/reference/mysqli/functions/mysqli-fetch-array.xml:1.22 phpdoc/en/reference/mysqli/functions/mysqli-fetch-array.xml:1.23 --- phpdoc/en/reference/mysqli/functions/mysqli-fetch-array.xml:1.22Sun Jan 28 04:25:57 2007 +++ phpdoc/en/reference/mysqli/functions/mysqli-fetch-array.xml Sun Mar 25 10:51:56 2007 @@ -1,5 +1,5 @@ - + mysqli_fetch_array @@ -77,7 +77,7 @@ &reftitle.returnvalues; - Returns an array that corresponds to the fetched row or &null; if there + Returns an array of strnigs that corresponds to the fetched row or &null; if there are no more rows in resultset. http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mysqli/functions/mysqli-fetch-assoc.xml?r1=1.20&r2=1.21&diff_format=u Index: phpdoc/en/reference/mysqli/functions/mysqli-fetch-assoc.xml diff -u phpdoc/en/reference/mysqli/functions/mysqli-fetch-assoc.xml:1.20 phpdoc/en/reference/mysqli/functions/mysqli-fetch-assoc.xml:1.21 --- phpdoc/en/reference/mysqli/functions/mysqli-fetch-assoc.xml:1.20Sun Jan 28 04:25:57 2007 +++ phpdoc/en/reference/mysqli/functions/mysqli-fetch-assoc.xml Sun Mar 25 10:51:56 2007 @@ -1,5 +1,5 @@ - + mysqli_fetch_assoc @@ -42,7 +42,7 @@ &reftitle.returnvalues; - Returns an associative array representing the fetched row in the result + Returns an associative array of strnigs representing the fetched row in the result set, where each key in the array represents the name of one of the result set's columns or &null; if there are no more rows in resultset. http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mysqli/functions/mysqli-fetch-object.xml?r1=1.19&r2=1.20&diff_format=u Index: phpdoc/en/reference/mysqli/functions/mysqli-fetch-object.xml diff -u phpdoc/en/reference/mysqli/functions/mysqli-fetch-object.xml:1.19 phpdoc/en/reference/mysqli/functions/mysqli-fetch-object.xml:1.20 --- phpdoc/en/reference/mysqli/functions/mysqli-fetch-object.xml:1.19 Sun Jan 28 04:25:57 2007 +++ phpdoc/en/reference/mysqli/functions/mysqli-fetch-object.xmlSun Mar 25 10:51:56 2007 @@ -1,5 +1,5 @@ - + mysqli_fetch_object @@ -58,7 +58,8 @@ &reftitle.returnvalues; - Returns an object that corresponds to the fetched row or &null; if there are no more rows in resultset. + Returns an object with string properties that corresponds to the fetched + row or &null; if there are no more rows in resultset. &database.field-case; &database.fetch-null; http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mysqli/functions/mysqli-fetch-row.xml?r1=1.18&r2=1.19&diff_format=u Index: phpdoc/en/reference/mysqli/functions/mysqli-fetch-row.xml diff -u phpdoc/en/reference/mysqli/functions/mysqli-fetch-row.xml:1.18 phpdoc/en/reference/mysqli/functions/mysqli-fetch-row.xml:1.19 --- phpdoc/en/reference/mysqli/functions/mysqli-fetch-row.xml:1.18 Sun Jan 28 04:25:57 2007 +++ phpdoc/en/reference/mysqli/functions/mysqli-fetch-row.xml Sun Mar 25 10:51:56 2007 @@ -1,5 +1,5 @@ - + mysqli_fetch_row @@ -42,7 +42,7 @@ &reftitle.returnvalues; - mysqli_fetch_row returns an array that corresponds to the fetched row + mysqli_fetch_row returns an array of strnigs that corresponds to the fetched row or &null; if there are no more rows in result set. &database.fetch-null;
[PHP-DOC] #40223 [Opn->Csd]: ReflectionMethod is not an subclass of ReflectionFunction
ID: 40223 Updated by: [EMAIL PROTECTED] Reported By: baldurien at bbnwn dot eu -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: * PHP Version: * New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. class ReflectionFunction extends ReflectionFunctionAbstract implements Reflector { } class ReflectionMethod extends ReflectionFunctionAbstract implements Reflector { } Previous Comments: [2007-01-24 20:23:50] [EMAIL PROTECTED] Method and Functions are in no way derived. Thus the following design approach was taken: class ReflectionMethod extends ReflectionFunctionAbstract implements Reflector class ReflectionFunction extends ReflectionFunctionAbstract implements Reflector [2007-01-24 19:47:02] [EMAIL PROTECTED] The documentation is wrong, both ReflectionMethod & ReflectionFunction extend abstract class called "ReflectionFunctionAbstract". [2007-01-24 19:46:19] [EMAIL PROTECTED] (reclassified as documentation problem) The docs are wrong (and really outdated). ReflectionMethod and ReflectionFunction both extend ReflectionFunctionAbstract. (see: php --rc ReflectionMethod && php --rc ReflectionFunction or php --re reflection) [2007-01-24 19:39:00] baldurien at bbnwn dot eu Description: The doc (http://fr.php.net/manual/en/language.oop5.reflection.php) state that ReflectioMethod be a ReflectionFunction. class ReflectionFunction implements Reflector { } class ReflectionMethod extends ReflectionFunction { } But this is not how it works in PHP : when using type hinting, any ReflectionMethod passed to a function or method that expect a ReflectionFunction fails instead of working like with normal type hinting. Reproduce code: --- class Foo { public function bar(ReflectionFunction $fct) { ... } } $c = new ReflectionClass('Foo'); $foo = new Foo(); $foo->bar($c->getMethod('bar')); Expected result: This should work because ReflectionMethod is a sub class of a ReflectionFunction, and type hinting normally allows such thing (or the documentation [http://fr.php.net/manual/en/language.oop5.typehinting.php] should say it clearly...) Actual result: -- [E_RECOVERABLE_ERROR] Argument 1 passed to Foo::bar() must be an instance of ReflectionFunction, instance of ReflectionMethod given, called in ... on line ... and defined' in ... -- Edit this bug report at http://bugs.php.net/?id=40223&edit=1
[PHP-DOC] cvs: phpdoc /en/language/oop5 reflection.xml
vrana Sun Mar 25 10:39:10 2007 UTC Modified files: /phpdoc/en/language/oop5reflection.xml Log: ReflectionFunction and ReflectionMethod extends ReflectionFunctionAbstract (bug #40223) http://cvs.php.net/viewvc.cgi/phpdoc/en/language/oop5/reflection.xml?r1=1.19&r2=1.20&diff_format=u Index: phpdoc/en/language/oop5/reflection.xml diff -u phpdoc/en/language/oop5/reflection.xml:1.19 phpdoc/en/language/oop5/reflection.xml:1.20 --- phpdoc/en/language/oop5/reflection.xml:1.19 Mon Apr 3 15:31:21 2006 +++ phpdoc/en/language/oop5/reflection.xml Sun Mar 25 10:39:10 2007 @@ -1,5 +1,5 @@ - + Reflection @@ -21,9 +21,9 @@ class Reflection { } interface Reflector { } class ReflectionException extends Exception { } -class ReflectionFunction implements Reflector { } +class ReflectionFunction extends ReflectionFunctionAbstract implements Reflector { } class ReflectionParameter implements Reflector { } -class ReflectionMethod extends ReflectionFunction { } +class ReflectionMethod extends ReflectionFunctionAbstract implements Reflector { } class ReflectionClass implements Reflector { } class ReflectionObject extends ReflectionClass { } class ReflectionProperty implements Reflector { } @@ -130,7 +130,7 @@
[PHP-DOC] #40292 [Opn->Csd]: PHP 4.* does not support calling object methods in complex (curly) syntax
ID: 40292 Updated by: [EMAIL PROTECTED] Reported By: Jonah at whalehosting dot ca -Status: Open +Status: Closed Bug Type:Documentation problem PHP Version: Irrelevant New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. "Functions and method calls works since PHP 5." Previous Comments: [2007-01-30 22:08:29] Jonah at whalehosting dot ca Description: PHP 4.* does not support calling object methods in the complex (curly) syntax. The doc page at http://php.net/string does not have any version information for the complex syntax. Reproduce code: --- class foobar{ function bar(){ echo 'blah'; } } $foo = new foobar(); echo << this does NOT work on PHP 4.*: {$foo->bar()} EOD; Expected result: PHP 5.1.6 prints 'blah' as expected. Actual result: -- PHP 4.4.0 and 4.4.4 print this error: Parse error: syntax error, unexpected '(', expecting '}' in ... -- Edit this bug report at http://bugs.php.net/?id=40292&edit=1
[PHP-DOC] cvs: phpdoc /en/language types.xml
vrana Sun Mar 25 10:34:55 2007 UTC Modified files: /phpdoc/en/language types.xml Log: Function calls in string complex variables (bug #40292) http://cvs.php.net/viewvc.cgi/phpdoc/en/language/types.xml?r1=1.176&r2=1.177&diff_format=u Index: phpdoc/en/language/types.xml diff -u phpdoc/en/language/types.xml:1.176 phpdoc/en/language/types.xml:1.177 --- phpdoc/en/language/types.xml:1.176 Thu Feb 15 09:24:35 2007 +++ phpdoc/en/language/types.xmlSun Mar 25 10:34:55 2007 @@ -1,5 +1,5 @@ - + Types @@ -1076,6 +1076,12 @@ --> + + + +Functions and method calls works since PHP 5. + +