[PHP-DOC] cvs: phpdoc /en/reference/phar/functions Phar-loadPhar.xml Phar-mapPhar.xml Phar-offsetExists.xml Phar-offsetSet.xml Phar-offsetUnset.xml PharFileInfo-isCRCChecked.xml
vrana Thu Jan 18 08:45:26 2007 UTC Modified files: /phpdoc/en/reference/phar/functions Phar-loadPhar.xml Phar-mapPhar.xml Phar-offsetExists.xml Phar-offsetSet.xml Phar-offsetUnset.xml PharFileInfo-isCRCChecked.xml Log: Fix protos http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/phar/functions/Phar-loadPhar.xml?r1=1.1r2=1.2diff_format=u Index: phpdoc/en/reference/phar/functions/Phar-loadPhar.xml diff -u phpdoc/en/reference/phar/functions/Phar-loadPhar.xml:1.1 phpdoc/en/reference/phar/functions/Phar-loadPhar.xml:1.2 --- phpdoc/en/reference/phar/functions/Phar-loadPhar.xml:1.1Thu Jan 18 00:24:34 2007 +++ phpdoc/en/reference/phar/functions/Phar-loadPhar.xmlThu Jan 18 08:45:26 2007 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.1 $ -- +!-- $Revision: 1.2 $ -- refentry id=function.Phar-loadPhar refnamediv refnamePhar::loadPhar/refname @@ -8,7 +8,7 @@ refsect1 role=description reftitle.description; methodsynopsis - typemixed/typemethodnamePhar::loadPhar/methodname + typebool/typemethodnamePhar::loadPhar/methodname methodparamtypestring/typeparameterfilename/parameter/methodparam methodparam choice=opttypestring/typeparameteralias/parameter/methodparam /methodsynopsis http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/phar/functions/Phar-mapPhar.xml?r1=1.1r2=1.2diff_format=u Index: phpdoc/en/reference/phar/functions/Phar-mapPhar.xml diff -u phpdoc/en/reference/phar/functions/Phar-mapPhar.xml:1.1 phpdoc/en/reference/phar/functions/Phar-mapPhar.xml:1.2 --- phpdoc/en/reference/phar/functions/Phar-mapPhar.xml:1.1 Thu Jan 18 00:24:34 2007 +++ phpdoc/en/reference/phar/functions/Phar-mapPhar.xml Thu Jan 18 08:45:26 2007 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.1 $ -- +!-- $Revision: 1.2 $ -- refentry id=function.Phar-mapPhar refnamediv refnamePhar::mapPhar/refname @@ -8,8 +8,8 @@ refsect1 role=description reftitle.description; methodsynopsis - typemixed/typemethodnamePhar::mapPhar/methodname - methodparamtypestring/typeparameteralias/parameter/methodparam + typebool/typemethodnamePhar::mapPhar/methodname + methodparam choice=opttypestring/typeparameteralias/parameter/methodparam /methodsynopsis para http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/phar/functions/Phar-offsetExists.xml?r1=1.1r2=1.2diff_format=u Index: phpdoc/en/reference/phar/functions/Phar-offsetExists.xml diff -u phpdoc/en/reference/phar/functions/Phar-offsetExists.xml:1.1 phpdoc/en/reference/phar/functions/Phar-offsetExists.xml:1.2 --- phpdoc/en/reference/phar/functions/Phar-offsetExists.xml:1.1Thu Jan 18 00:24:34 2007 +++ phpdoc/en/reference/phar/functions/Phar-offsetExists.xmlThu Jan 18 08:45:26 2007 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.1 $ -- +!-- $Revision: 1.2 $ -- refentry id=function.Phar-offsetExists refnamediv refnamePhar::offsetExists/refname @@ -8,7 +8,7 @@ refsect1 role=description reftitle.description; methodsynopsis - typeint/typemethodnamePhar::offsetExists/methodname + typebool/typemethodnamePhar::offsetExists/methodname methodparamtypestring/typeparameteroffset/parameter/methodparam /methodsynopsis http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/phar/functions/Phar-offsetSet.xml?r1=1.1r2=1.2diff_format=u Index: phpdoc/en/reference/phar/functions/Phar-offsetSet.xml diff -u phpdoc/en/reference/phar/functions/Phar-offsetSet.xml:1.1 phpdoc/en/reference/phar/functions/Phar-offsetSet.xml:1.2 --- phpdoc/en/reference/phar/functions/Phar-offsetSet.xml:1.1 Thu Jan 18 00:24:34 2007 +++ phpdoc/en/reference/phar/functions/Phar-offsetSet.xml Thu Jan 18 08:45:26 2007 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.1 $ -- +!-- $Revision: 1.2 $ -- refentry id=function.Phar-offsetSet refnamediv refnamePhar::offsetSet/refname @@ -8,7 +8,7 @@ refsect1 role=description reftitle.description; methodsynopsis - typeint/typemethodnamePhar::offsetSet/methodname + typevoid/typemethodnamePhar::offsetSet/methodname methodparamtypestring/typeparameteroffset/parameter/methodparam methodparamtypestring/typeparametervalue/parameter/methodparam /methodsynopsis http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/phar/functions/Phar-offsetUnset.xml?r1=1.1r2=1.2diff_format=u Index: phpdoc/en/reference/phar/functions/Phar-offsetUnset.xml diff -u phpdoc/en/reference/phar/functions/Phar-offsetUnset.xml:1.1 phpdoc/en/reference/phar/functions/Phar-offsetUnset.xml:1.2 --- phpdoc/en/reference/phar/functions/Phar-offsetUnset.xml:1.1 Thu Jan 18 00:24:34 2007 +++ phpdoc/en/reference/phar/functions/Phar-offsetUnset.xml Thu Jan 18 08:45:26 2007 @@ -1,5 +1,5
[PHP-DOC] cvs: phpdoc /en/reference/phar/functions Phar-getModified.xml Phar-loadPhar.xml Phar-mapPhar.xml Phar-offsetGet.xml Phar-offsetSet.xml Phar-offsetUnset.xml PharFileInfo-getCRC32.xml PharFile
vrana Thu Jan 18 08:49:59 2007 UTC Modified files: /phpdoc/en/reference/phar/functions Phar-getModified.xml Phar-loadPhar.xml Phar-mapPhar.xml Phar-offsetGet.xml Phar-offsetSet.xml Phar-offsetUnset.xml PharFileInfo-getCRC32.xml PharFileInfo-getCompressedSize.xml PharFileInfo-getPharFlags.xml apiVersion.xml canCompress.xml Log: Return values http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/phar/functions/Phar-getModified.xml?r1=1.1r2=1.2diff_format=u Index: phpdoc/en/reference/phar/functions/Phar-getModified.xml diff -u phpdoc/en/reference/phar/functions/Phar-getModified.xml:1.1 phpdoc/en/reference/phar/functions/Phar-getModified.xml:1.2 --- phpdoc/en/reference/phar/functions/Phar-getModified.xml:1.1 Thu Jan 18 00:24:34 2007 +++ phpdoc/en/reference/phar/functions/Phar-getModified.xml Thu Jan 18 08:49:59 2007 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.1 $ -- +!-- $Revision: 1.2 $ -- refentry id=function.Phar-getModified refnamediv refnamePhar-getModified/refname @@ -27,7 +27,7 @@ refsect1 role=returnvalues reftitle.returnvalues; para - true; if the phar has been modified since opened, false; if not + true; if the phar has been modified since opened, false; if not. /para /refsect1 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/phar/functions/Phar-loadPhar.xml?r1=1.2r2=1.3diff_format=u Index: phpdoc/en/reference/phar/functions/Phar-loadPhar.xml diff -u phpdoc/en/reference/phar/functions/Phar-loadPhar.xml:1.2 phpdoc/en/reference/phar/functions/Phar-loadPhar.xml:1.3 --- phpdoc/en/reference/phar/functions/Phar-loadPhar.xml:1.2Thu Jan 18 08:45:26 2007 +++ phpdoc/en/reference/phar/functions/Phar-loadPhar.xmlThu Jan 18 08:49:59 2007 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.2 $ -- +!-- $Revision: 1.3 $ -- refentry id=function.Phar-loadPhar refnamediv refnamePhar::loadPhar/refname @@ -49,7 +49,7 @@ refsect1 role=returnvalues reftitle.returnvalues; para - returns true; if successful, false; otherwise + return.success; /para /refsect1 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/phar/functions/Phar-mapPhar.xml?r1=1.2r2=1.3diff_format=u Index: phpdoc/en/reference/phar/functions/Phar-mapPhar.xml diff -u phpdoc/en/reference/phar/functions/Phar-mapPhar.xml:1.2 phpdoc/en/reference/phar/functions/Phar-mapPhar.xml:1.3 --- phpdoc/en/reference/phar/functions/Phar-mapPhar.xml:1.2 Thu Jan 18 08:45:26 2007 +++ phpdoc/en/reference/phar/functions/Phar-mapPhar.xml Thu Jan 18 08:49:59 2007 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.2 $ -- +!-- $Revision: 1.3 $ -- refentry id=function.Phar-mapPhar refnamediv refnamePhar::mapPhar/refname @@ -36,6 +36,7 @@ refsect1 role=returnvalues reftitle.returnvalues; para + return.success; /para /refsect1 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/phar/functions/Phar-offsetGet.xml?r1=1.1r2=1.2diff_format=u Index: phpdoc/en/reference/phar/functions/Phar-offsetGet.xml diff -u phpdoc/en/reference/phar/functions/Phar-offsetGet.xml:1.1 phpdoc/en/reference/phar/functions/Phar-offsetGet.xml:1.2 --- phpdoc/en/reference/phar/functions/Phar-offsetGet.xml:1.1 Thu Jan 18 00:24:34 2007 +++ phpdoc/en/reference/phar/functions/Phar-offsetGet.xml Thu Jan 18 08:49:59 2007 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.1 $ -- +!-- $Revision: 1.2 $ -- refentry id=function.Phar-offsetGet refnamediv refnamePhar::offsetGet/refname @@ -38,7 +38,7 @@ refsect1 role=returnvalues reftitle.returnvalues; para - a classnamePharFileInfo/classname object is returned that can be used to + A classnamePharFileInfo/classname object is returned that can be used to iterate over a file's contents or to retrieve information about the current file. /para /refsect1 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/phar/functions/Phar-offsetSet.xml?r1=1.2r2=1.3diff_format=u Index: phpdoc/en/reference/phar/functions/Phar-offsetSet.xml diff -u phpdoc/en/reference/phar/functions/Phar-offsetSet.xml:1.2 phpdoc/en/reference/phar/functions/Phar-offsetSet.xml:1.3 --- phpdoc/en/reference/phar/functions/Phar-offsetSet.xml:1.2 Thu Jan 18 08:45:26 2007 +++ phpdoc/en/reference/phar/functions/Phar-offsetSet.xml Thu Jan 18 08:49:59 2007 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.2 $ -- +!-- $Revision: 1.3 $ -- refentry id=function.Phar-offsetSet refnamediv refnamePhar::offsetSet/refname @@ -37,7 +37,7 @@ termparametervalue/parameter/term
[PHP-DOC] cvs: phpdoc /en/reference/cpdf/functions cpdf-setmiterlimit.xml
samesch Thu Jan 18 09:56:17 2007 UTC Modified files: /phpdoc/en/reference/cpdf/functions cpdf-setmiterlimit.xml Log: typo http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/cpdf/functions/cpdf-setmiterlimit.xml?r1=1.6r2=1.7diff_format=u Index: phpdoc/en/reference/cpdf/functions/cpdf-setmiterlimit.xml diff -u phpdoc/en/reference/cpdf/functions/cpdf-setmiterlimit.xml:1.6 phpdoc/en/reference/cpdf/functions/cpdf-setmiterlimit.xml:1.7 --- phpdoc/en/reference/cpdf/functions/cpdf-setmiterlimit.xml:1.6 Thu Jan 11 00:17:19 2007 +++ phpdoc/en/reference/cpdf/functions/cpdf-setmiterlimit.xml Thu Jan 18 09:56:17 2007 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.6 $ -- +!-- $Revision: 1.7 $ -- refentry id=function.cpdf-setmiterlimit refnamediv refnamecpdf_setmiterlimit/refname @@ -22,7 +22,7 @@ variablelist cpdf.pdf-document.description; varlistentry - termparameterwidth/parameter/term + termparametervalue/parameter/term listitem para The miter limit. Must be greater or equal than 1
[PHP-DOC] cpdf-setrgbcolor-fill.xml
Hi, in cpdf-setrgbcolor-fill.xml ... Shouldn't - red_value The red value, as a float between 0.0 (black) and 1.0 (white) green_value The green value, as a float between 0.0 (black) and 1.0 (white) blue_value The blue value, as a float between 0.0 (black) and 1.0 (white) - rather be - red_value The red value, as a float between 0.0 (black) and 1.0 (red) green_value The green value, as a float between 0.0 (black) and 1.0 (green) blue_value The blue value, as a float between 0.0 (black) and 1.0 (blue) - same with cpdf_setrgbcolor_stroke, cpdf_setrgbcolor? Cheers, Martin
[PHP-DOC] cvs: phpdoc /en/reference/cpdf/functions cpdf-text.xml
samesch Thu Jan 18 11:40:55 2007 UTC Modified files: /phpdoc/en/reference/cpdf/functions cpdf-text.xml Log: typo http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/cpdf/functions/cpdf-text.xml?r1=1.8r2=1.9diff_format=u Index: phpdoc/en/reference/cpdf/functions/cpdf-text.xml diff -u phpdoc/en/reference/cpdf/functions/cpdf-text.xml:1.8 phpdoc/en/reference/cpdf/functions/cpdf-text.xml:1.9 --- phpdoc/en/reference/cpdf/functions/cpdf-text.xml:1.8Thu Jan 11 00:17:19 2007 +++ phpdoc/en/reference/cpdf/functions/cpdf-text.xmlThu Jan 18 11:40:55 2007 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.8 $ -- +!-- $Revision: 1.9 $ -- refentry id=function.cpdf-text refnamediv refnamecpdf_text/refname @@ -63,7 +63,7 @@ termparameteralignmode/parameter/term listitem para - Ddetermines how the text is aligned. See the ClibPDF documentation for + Determines how the text is aligned. See the ClibPDF documentation for possible values. /para /listitem
Re: [PHP-DOC] http docs
Hi, just a question: Michael Wallner wrote: this is just a heads up, that I just committed http extension docs to reference/en/http. | refentry id=function.HttpQueryString-construct [...] | methodparam choice=opttypebool/typeparameterglobal = TRUE/parameter/methodparam [...] | para | Operates on and modifies $_GET and $_SERVER['QUERY_STRING'] if global is TRUE. | /para shouldnt the last paragraph looks like this? para Operates on and modifies $_GET and $_SERVER['QUERY_STRING'] if parameterglobal/parameter is true;. /para Regards, Sammy
Re: [PHP-DOC] http docs
Carola 'Sammy' Kummert wrote: Hi, just a question: Michael Wallner wrote: this is just a heads up, that I just committed http extension docs to reference/en/http. | refentry id=function.HttpQueryString-construct [...] | methodparam choice=opttypebool/typeparameterglobal = TRUE/parameter/methodparam [...] | para | Operates on and modifies $_GET and $_SERVER['QUERY_STRING'] if global is TRUE. | /para shouldnt the last paragraph looks like this? para Operates on and modifies $_GET and $_SERVER['QUERY_STRING'] if parameterglobal/parameter is true;. /para Yeah, probably... updates to the docs are on my, well, TODO :-/ -- Michael
[PHP-DOC] cvs: phpdoc /en/reference/cpdf/functions cpdf-setrgbcolor-fill.xml
nlopess Thu Jan 18 15:17:34 2007 UTC Modified files: /phpdoc/en/reference/cpdf/functions cpdf-setrgbcolor-fill.xml Log: fix parameter color description http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/cpdf/functions/cpdf-setrgbcolor-fill.xml?r1=1.6r2=1.7diff_format=u Index: phpdoc/en/reference/cpdf/functions/cpdf-setrgbcolor-fill.xml diff -u phpdoc/en/reference/cpdf/functions/cpdf-setrgbcolor-fill.xml:1.6 phpdoc/en/reference/cpdf/functions/cpdf-setrgbcolor-fill.xml:1.7 --- phpdoc/en/reference/cpdf/functions/cpdf-setrgbcolor-fill.xml:1.6Thu Jan 11 00:17:19 2007 +++ phpdoc/en/reference/cpdf/functions/cpdf-setrgbcolor-fill.xmlThu Jan 18 15:17:34 2007 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.6 $ -- +!-- $Revision: 1.7 $ -- refentry id=function.cpdf-setrgbcolor-fill refnamediv refnamecpdf_setrgbcolor_fill/refname @@ -27,7 +27,7 @@ termparameterred_value/parameter/term listitem para - The red value, as a float between 0.0 (black) and 1.0 (white) + The red value, as a float between 0.0 (black) and 1.0 (red) /para /listitem /varlistentry @@ -35,7 +35,7 @@ termparametergreen_value/parameter/term listitem para - The green value, as a float between 0.0 (black) and 1.0 (white) + The green value, as a float between 0.0 (black) and 1.0 (green) /para /listitem /varlistentry @@ -43,7 +43,7 @@ termparameterblue_value/parameter/term listitem para - The blue value, as a float between 0.0 (black) and 1.0 (white) + The blue value, as a float between 0.0 (black) and 1.0 (blue) /para /listitem /varlistentry
Re: [PHP-DOC] cpdf-setrgbcolor-fill.xml
Fixed. Thanks, Nuno - Original Message - Hi, in cpdf-setrgbcolor-fill.xml ... Shouldn't - red_value The red value, as a float between 0.0 (black) and 1.0 (white) green_value The green value, as a float between 0.0 (black) and 1.0 (white) blue_value The blue value, as a float between 0.0 (black) and 1.0 (white) - rather be - red_value The red value, as a float between 0.0 (black) and 1.0 (red) green_value The green value, as a float between 0.0 (black) and 1.0 (green) blue_value The blue value, as a float between 0.0 (black) and 1.0 (blue) - same with cpdf_setrgbcolor_stroke, cpdf_setrgbcolor? Cheers, Martin
[PHP-DOC] #40161 [NEW]: Syntax Error in PDO-prepare example 1
From: peter dot maxwell at yahoo dot co dot uk Operating system: N/A PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: Syntax Error in PDO-prepare example 1 Description: Example 1 in http://uk.php.net/manual/en/function.pdo-prepare.php. Incorrect syntax in the given example; the array of PDO attributes should be specified as array( PDO::ATTR_CURSOR = PDO::CURSOR_FWDONLY ), not as written using a comma. The syntax in the example will not work for users who change from the default PDO::CURSOR_FWDONLY to PDO::CURSOR_SCROLL. -- Edit bug report at http://bugs.php.net/?id=40161edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40161r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40161r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40161r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=40161r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=40161r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=40161r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=40161r=needscript Try newer version:http://bugs.php.net/fix.php?id=40161r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=40161r=support Expected behavior:http://bugs.php.net/fix.php?id=40161r=notwrong Not enough info: http://bugs.php.net/fix.php?id=40161r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=40161r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=40161r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40161r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=40161r=dst IIS Stability:http://bugs.php.net/fix.php?id=40161r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=40161r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=40161r=float No Zend Extensions: http://bugs.php.net/fix.php?id=40161r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=40161r=mysqlcfg
[PHP-DOC] cvs: phpdoc /en/reference/mbstring/functions mb-check-encoding.xml
nlopess Thu Jan 18 15:20:05 2007 UTC Modified files: /phpdoc/en/reference/mbstring/functions mb-check-encoding.xml Log: fix typo (per user note) http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mbstring/functions/mb-check-encoding.xml?r1=1.1r2=1.2diff_format=u Index: phpdoc/en/reference/mbstring/functions/mb-check-encoding.xml diff -u phpdoc/en/reference/mbstring/functions/mb-check-encoding.xml:1.1 phpdoc/en/reference/mbstring/functions/mb-check-encoding.xml:1.2 --- phpdoc/en/reference/mbstring/functions/mb-check-encoding.xml:1.1Sat Sep 23 06:34:37 2006 +++ phpdoc/en/reference/mbstring/functions/mb-check-encoding.xmlThu Jan 18 15:20:05 2007 @@ -1,6 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.1 $ -- -!-- Generated by xml_proto.php v2.4. Found in /scripts directory of phpdoc. -- +!-- $Revision: 1.2 $ -- refentry id=function.mb-check-encoding refnamediv refnamemb_check_encoding/refname @@ -38,7 +37,7 @@ termparameterencoding/parameter/term listitem para - Excepted encoding. + Expected encoding. /para /listitem /varlistentry
[PHP-DOC] #40161 [Opn-Csd]: Syntax Error in PDO-prepare example 1
ID: 40161 Updated by: [EMAIL PROTECTED] Reported By: peter dot maxwell at yahoo dot co dot uk -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: N/A 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. Previous Comments: [2007-01-18 15:18:57] peter dot maxwell at yahoo dot co dot uk Description: Example 1 in http://uk.php.net/manual/en/function.pdo-prepare.php. Incorrect syntax in the given example; the array of PDO attributes should be specified as array( PDO::ATTR_CURSOR = PDO::CURSOR_FWDONLY ), not as written using a comma. The syntax in the example will not work for users who change from the default PDO::CURSOR_FWDONLY to PDO::CURSOR_SCROLL. -- Edit this bug report at http://bugs.php.net/?id=40161edit=1
[PHP-DOC] cvs: phpdoc /en/reference/pdo/functions PDO-prepare.xml
nlopess Thu Jan 18 15:30:06 2007 UTC Modified files: /phpdoc/en/reference/pdo/functions PDO-prepare.xml Log: fix bug #40161: error in the example 1 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/pdo/functions/PDO-prepare.xml?r1=1.13r2=1.14diff_format=u Index: phpdoc/en/reference/pdo/functions/PDO-prepare.xml diff -u phpdoc/en/reference/pdo/functions/PDO-prepare.xml:1.13 phpdoc/en/reference/pdo/functions/PDO-prepare.xml:1.14 --- phpdoc/en/reference/pdo/functions/PDO-prepare.xml:1.13 Sun Jan 7 20:57:47 2007 +++ phpdoc/en/reference/pdo/functions/PDO-prepare.xml Thu Jan 18 15:30:06 2007 @@ -1,5 +1,5 @@ ?xml version='1.0' encoding='iso-8859-1'? -!-- $Revision: 1.13 $ -- +!-- $Revision: 1.14 $ -- refentry id=function.PDO-prepare refnamediv refnamePDO-prepare()/refname @@ -100,7 +100,7 @@ $sql = 'SELECT name, colour, calories FROM fruit WHERE calories :calories AND colour = :colour'; -$sth = $dbh-prepare($sql, array(PDO::ATTR_CURSOR, PDO::CURSOR_FWDONLY)); +$sth = $dbh-prepare($sql, array(PDO::ATTR_CURSOR = PDO::CURSOR_FWDONLY)); $sth-execute(array(':calories' = 150, ':colour' = 'red')); $red = $sth-fetchAll(); $sth-execute(array(':calories' = 175, ':colour' = 'yellow'));
[PHP-DOC] cvs: phpdoc /en/reference/stream constants.xml /en/reference/stream/functions stream-socket-shutdown.xml
nlopess Thu Jan 18 16:21:02 2007 UTC Added files: /phpdoc/en/reference/stream/functions stream-socket-shutdown.xml Modified files: /phpdoc/en/reference/stream constants.xml Log: add initial docs for stream_socket_shutdown http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/stream/constants.xml?r1=1.14r2=1.15diff_format=u Index: phpdoc/en/reference/stream/constants.xml diff -u phpdoc/en/reference/stream/constants.xml:1.14 phpdoc/en/reference/stream/constants.xml:1.15 --- phpdoc/en/reference/stream/constants.xml:1.14 Thu Dec 16 11:29:35 2004 +++ phpdoc/en/reference/stream/constants.xmlThu Jan 18 16:21:02 2007 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.14 $ -- +!-- $Revision: 1.15 $ -- section id=stream.constants reftitle.constants; extension.constants; @@ -277,6 +277,27 @@ for out-of-band data (TCP, for example). /entry /row + row + entryconstantSTREAM_SHUT_RD/constant/entry + entry + Used with functionstream_socket_shutdown/function to disable + further receptions. Added in PHP 5.2.1. + /entry + /row + row + entryconstantSTREAM_SHUT_WR/constant/entry + entry + Used with functionstream_socket_shutdown/function to disable + further transmissions. Added in PHP 5.2.1. + /entry + /row + row + entryconstantSTREAM_SHUT_RDWR/constant/entry + entry + Used with functionstream_socket_shutdown/function to disable + further receptions and transmissions. Added in PHP 5.2.1. + /entry + /row /tbody /tgroup /informaltable http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/stream/functions/stream-socket-shutdown.xml?view=markuprev=1.1 Index: phpdoc/en/reference/stream/functions/stream-socket-shutdown.xml +++ phpdoc/en/reference/stream/functions/stream-socket-shutdown.xml ?xml version=1.0 encoding=iso-8859-1? !-- $Revision: 1.1 $ -- refentry id=function.stream-socket-shutdown refnamediv refnamestream_socket_shutdown/refname refpurposeShutdown a full-duplex connection/refpurpose /refnamediv refsect1 role=description reftitle.description; methodsynopsis typeint/typemethodnamestream_socket_shutdown/methodname methodparamtyperesource/typeparameterstream/parameter/methodparam methodparamtypeint/typeparameterhow/parameter/methodparam /methodsynopsis para Shutdowns (partially or not) a full-duplex connection. /para /refsect1 refsect1 role=parameters reftitle.parameters; para variablelist varlistentry termparameterstream/parameter/term listitem para An open stream (opened with functionstream_socket_client/function, for example) /para /listitem /varlistentry varlistentry termparameterhow/parameter/term listitem para One of the following constants: constantSTREAM_SHUT_RD/constant (disable further receptions), constantSTREAM_SHUT_WR/constant (disable further transmissions) or constantSTREAM_SHUT_RDWR/constant (disable further receptions and transmissions). /para /listitem /varlistentry /variablelist /para /refsect1 refsect1 role=returnvalues reftitle.returnvalues; para return.success; /para /refsect1 refsect1 role=examples reftitle.examples; para example titleA functionstream_socket_shutdown/function example/title programlisting role=php ![CDATA[ ?php $server = stream_socket_server('tcp://127.0.0.1:1337'); $client = stream_socket_client('tcp://127.0.0.1:1337'); var_dump(fputs($client, hello)); stream_socket_shutdown($client, STREAM_SHUT_WR); var_dump(fputs($client, hello)); // doesn't work now ? ]] /programlisting example.outputs.similar; screen ![CDATA[ int(5) Notice: fputs(): send of 5 bytes failed with errno=32 Broken pipe in test.php on line 9 int(0) ]] /screen /example /para /refsect1 refsect1 role=seealso reftitle.seealso; para simplelist memberfunctionfclose/function/member /simplelist /para /refsect1 /refentry !-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:../../../../manual.ced sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --
[PHP-DOC] cvs: phpdoc /en/reference/session ini.xml
nlopess Thu Jan 18 16:40:54 2007 UTC Modified files: /phpdoc/en/reference/sessionini.xml Log: session.hash_function supports ext/hash algos in php 6 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/session/ini.xml?r1=1.45r2=1.46diff_format=u Index: phpdoc/en/reference/session/ini.xml diff -u phpdoc/en/reference/session/ini.xml:1.45 phpdoc/en/reference/session/ini.xml:1.46 --- phpdoc/en/reference/session/ini.xml:1.45Tue Dec 19 22:00:01 2006 +++ phpdoc/en/reference/session/ini.xml Thu Jan 18 16:40:54 2007 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.45 $ -- +!-- $Revision: 1.46 $ -- section id=session.configuration reftitle.runtime; extension.runtime; @@ -627,7 +627,7 @@ varlistentry id=ini.session.hash-function term parametersession.hash_function/parameter -typeinteger/type +typemixed/type /term listitem simpara @@ -635,6 +635,13 @@ algorithm used to generate the session IDs. '0' means MD5 (128 bits) and '1' means SHA-1 (160 bits). /simpara +para + Since PHP 6.0.0 it is also possible to specify any of the algorithms + provided by the link linkend=ref.hashhash extension/link (if it is + available), like literalsha512/literal or + literalwhirlpool/literal. A complete list of supported algorithms can + be obtained with the functionhash_algos/function function. +/para note para This was introduced in PHP 5.
[PHP-DOC] cvs: phpdoc /en/reference/exec/functions proc-open.xml
nlopess Thu Jan 18 17:02:24 2007 UTC Modified files: /phpdoc/en/reference/exec/functions proc-open.xml Log: document bypass_shell option comment the pty docs, as the code was disabled on php sources for a loong time http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/exec/functions/proc-open.xml?r1=1.14r2=1.15diff_format=u Index: phpdoc/en/reference/exec/functions/proc-open.xml diff -u phpdoc/en/reference/exec/functions/proc-open.xml:1.14 phpdoc/en/reference/exec/functions/proc-open.xml:1.15 --- phpdoc/en/reference/exec/functions/proc-open.xml:1.14 Sun Feb 27 12:33:11 2005 +++ phpdoc/en/reference/exec/functions/proc-open.xmlThu Jan 18 17:02:24 2007 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.14 $ -- +!-- $Revision: 1.15 $ -- !-- splitted from ./en/functions/exec.xml, last change in rev 1.28 -- refentry id='function.proc-open' refnamediv @@ -23,6 +23,8 @@ functionproc_open/function is similar to functionpopen/function but provides a much greater degree of control over the program execution. /para + +!-- ptys are currently disabled in the sources para PHP 5 introduces pty support for systems with Unix98 ptys. This allows your script to interact with applications that expect to be talking to a @@ -33,6 +35,8 @@ times. In a future version of PHP, it might be possible to do more than just read and write to the pty. /para +-- + /refsect1 refsect1 role=parameters @@ -56,8 +60,8 @@ process. 0 is stdin, 1 is stdout, while 2 is stderr. /para para - The currently supported pipe types are literalfile/literal, - literalpipe/literal and literalpty/literal. + The currently supported pipe types are literalfile/literal and + literalpipe/literal !-- and literalpty/literal--. /para para The file descriptor numbers are not limited to 0, 1 and 2 - you may @@ -103,9 +107,18 @@ termparameterother_options/parameter/term listitem para - Allows you to specify additional options. Currently only - literalsuppress_errors/literal is supported, which suppresses - errors generated by this function when it's set to true; + Allows you to specify additional options. Currently supported options + include: + simplelist +member + literalsuppress_errors/literal (windows only): suppresses errors + generated by this function when it's set to true; +/member +member + literalbypass_shell/literal (windows only): bypass + literalcmd.exe/literal shell when set to true; +/member + /simplelist /para /listitem /varlistentry @@ -135,11 +148,17 @@ /thead tbody row + entry5.2.1./entry + entry +Added the literalbypass_shell/literal option to the +parameterother_options/parameter parameter. + /entry + /row + row entry5.0.0./entry entry Added the parametercwd/parameter, parameterenv/parameter and -parameterother_options/parameter parameters. Added support for -Unix98 ptys. +parameterother_options/parameter parameters. /entry /row /tbody @@ -203,6 +222,8 @@ /screen /example /para + +!-- ptys are currently disabled para example titleptys usage/title @@ -224,6 +245,8 @@ /programlisting /example /para +-- + /refsect1 refsect1 role=notes
[PHP-DOC] cvs: phpdoc /en/reference/cpdf/functions cpdf-setrgbcolor-stroke.xml cpdf-setrgbcolor.xml
samesch Thu Jan 18 18:28:32 2007 UTC Modified files: /phpdoc/en/reference/cpdf/functions cpdf-setrgbcolor-stroke.xml cpdf-setrgbcolor.xml Log: fix parameter color description http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/cpdf/functions/cpdf-setrgbcolor-stroke.xml?r1=1.6r2=1.7diff_format=u Index: phpdoc/en/reference/cpdf/functions/cpdf-setrgbcolor-stroke.xml diff -u phpdoc/en/reference/cpdf/functions/cpdf-setrgbcolor-stroke.xml:1.6 phpdoc/en/reference/cpdf/functions/cpdf-setrgbcolor-stroke.xml:1.7 --- phpdoc/en/reference/cpdf/functions/cpdf-setrgbcolor-stroke.xml:1.6 Thu Jan 11 00:17:19 2007 +++ phpdoc/en/reference/cpdf/functions/cpdf-setrgbcolor-stroke.xml Thu Jan 18 18:28:32 2007 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.6 $ -- +!-- $Revision: 1.7 $ -- refentry id=function.cpdf-setrgbcolor-stroke refnamediv refnamecpdf_setrgbcolor_stroke/refname @@ -27,7 +27,7 @@ termparameterred_value/parameter/term listitem para - The red value, as a float between 0.0 (black) and 1.0 (white) + The red value, as a float between 0.0 (black) and 1.0 (red) /para /listitem /varlistentry @@ -35,7 +35,7 @@ termparametergreen_value/parameter/term listitem para - The green value, as a float between 0.0 (black) and 1.0 (white) + The green value, as a float between 0.0 (black) and 1.0 (green) /para /listitem /varlistentry @@ -43,7 +43,7 @@ termparameterblue_value/parameter/term listitem para - The blue value, as a float between 0.0 (black) and 1.0 (white) + The blue value, as a float between 0.0 (black) and 1.0 (blue) /para /listitem /varlistentry http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/cpdf/functions/cpdf-setrgbcolor.xml?r1=1.6r2=1.7diff_format=u Index: phpdoc/en/reference/cpdf/functions/cpdf-setrgbcolor.xml diff -u phpdoc/en/reference/cpdf/functions/cpdf-setrgbcolor.xml:1.6 phpdoc/en/reference/cpdf/functions/cpdf-setrgbcolor.xml:1.7 --- phpdoc/en/reference/cpdf/functions/cpdf-setrgbcolor.xml:1.6 Thu Jan 11 00:17:19 2007 +++ phpdoc/en/reference/cpdf/functions/cpdf-setrgbcolor.xml Thu Jan 18 18:28:32 2007 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.6 $ -- +!-- $Revision: 1.7 $ -- refentry id=function.cpdf-setrgbcolor refnamediv refnamecpdf_setrgbcolor/refname @@ -27,7 +27,7 @@ termparameterred_value/parameter/term listitem para - The red value, as a float between 0.0 (black) and 1.0 (white) + The red value, as a float between 0.0 (black) and 1.0 (red) /para /listitem /varlistentry @@ -35,7 +35,7 @@ termparametergreen_value/parameter/term listitem para - The green value, as a float between 0.0 (black) and 1.0 (white) + The green value, as a float between 0.0 (black) and 1.0 (green) /para /listitem /varlistentry @@ -43,7 +43,7 @@ termparameterblue_value/parameter/term listitem para - The blue value, as a float between 0.0 (black) and 1.0 (white) + The blue value, as a float between 0.0 (black) and 1.0 (blue) /para /listitem /varlistentry
[PHP-DOC] cvs: phpdoc /en/reference/exec/functions proc-open.xml
nlopess Thu Jan 18 18:58:59 2007 UTC Modified files: /phpdoc/en/reference/exec/functions proc-open.xml Log: add context and binary_pipes opts http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/exec/functions/proc-open.xml?r1=1.15r2=1.16diff_format=u Index: phpdoc/en/reference/exec/functions/proc-open.xml diff -u phpdoc/en/reference/exec/functions/proc-open.xml:1.15 phpdoc/en/reference/exec/functions/proc-open.xml:1.16 --- phpdoc/en/reference/exec/functions/proc-open.xml:1.15 Thu Jan 18 17:02:24 2007 +++ phpdoc/en/reference/exec/functions/proc-open.xmlThu Jan 18 18:58:59 2007 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.15 $ -- +!-- $Revision: 1.16 $ -- !-- splitted from ./en/functions/exec.xml, last change in rev 1.28 -- refentry id='function.proc-open' refnamediv @@ -118,6 +118,14 @@ literalbypass_shell/literal (windows only): bypass literalcmd.exe/literal shell when set to true; /member +member + literalcontext/literal: stream context used when opening files + (created with functionstream_context_create/function) +/member +member + literalbinary_pipes/literal: open pipes in binary mode, instead + of using the usual literalstream_encoding/literal +/member /simplelist /para /listitem @@ -148,14 +156,22 @@ /thead tbody row - entry5.2.1./entry + entry6.0.0/entry + entry +Added the literalcontext/literal and +literalbinary_pipes/literal options to the +parameterother_options/parameter parameter. + /entry + /row + row + entry5.2.1/entry entry Added the literalbypass_shell/literal option to the parameterother_options/parameter parameter. /entry /row row - entry5.0.0./entry + entry5.0.0/entry entry Added the parametercwd/parameter, parameterenv/parameter and parameterother_options/parameter parameters.
[PHP-DOC] cvs: phpdoc /en/reference/datetime/functions date.xml
nlopess Thu Jan 18 19:08:12 2007 UTC Modified files: /phpdoc/en/reference/datetime/functions date.xml Log: fix description of date(T) http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/datetime/functions/date.xml?r1=1.36r2=1.37diff_format=u Index: phpdoc/en/reference/datetime/functions/date.xml diff -u phpdoc/en/reference/datetime/functions/date.xml:1.36 phpdoc/en/reference/datetime/functions/date.xml:1.37 --- phpdoc/en/reference/datetime/functions/date.xml:1.36Sat Dec 2 07:43:35 2006 +++ phpdoc/en/reference/datetime/functions/date.xml Thu Jan 18 19:08:12 2007 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.36 $ -- +!-- $Revision: 1.37 $ -- refentry id=function.date refnamediv refnamedate/refname @@ -239,7 +239,7 @@ /row row entryliteralT/literal/entry - entryTimezone setting of this machine/entry + entryTimezone abbreviation/entry entryExamples: literalEST/literal, literalMDT/literal .../entry /row row
[PHP-DOC] cvs: phpdoc /en/install ini.xml
nlopess Thu Jan 18 19:22:01 2007 UTC Modified files: /phpdoc/en/install ini.xml Log: add windows registry versioned keys (php 5.2) http://cvs.php.net/viewvc.cgi/phpdoc/en/install/ini.xml?r1=1.15r2=1.16diff_format=u Index: phpdoc/en/install/ini.xml diff -u phpdoc/en/install/ini.xml:1.15 phpdoc/en/install/ini.xml:1.16 --- phpdoc/en/install/ini.xml:1.15 Thu Nov 9 15:50:45 2006 +++ phpdoc/en/install/ini.xml Thu Jan 18 19:22:01 2007 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.15 $ -- +!-- $Revision: 1.16 $ -- chapter id=configuration titleRuntime Configuration/title @@ -33,6 +33,16 @@ /listitem listitem para + Since PHP 5.2.0, the following registry locations are searched in + order: + literalHKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath\x.y.z/literal, + literalHKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath\x.y/literal and + literalHKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath\x/literal, where + x, y and z mean the PHP major, minor and release versions. + /para + /listitem + listitem + para literalHKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath/literal (Windows Registry location) /para
[PHP-DOC] cvs: phpdoc /en/install ini.xml
nlopess Thu Jan 18 19:44:02 2007 UTC Modified files: /phpdoc/en/install ini.xml Log: since - as of http://cvs.php.net/viewvc.cgi/phpdoc/en/install/ini.xml?r1=1.16r2=1.17diff_format=u Index: phpdoc/en/install/ini.xml diff -u phpdoc/en/install/ini.xml:1.16 phpdoc/en/install/ini.xml:1.17 --- phpdoc/en/install/ini.xml:1.16 Thu Jan 18 19:22:01 2007 +++ phpdoc/en/install/ini.xml Thu Jan 18 19:44:01 2007 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.16 $ -- +!-- $Revision: 1.17 $ -- chapter id=configuration titleRuntime Configuration/title @@ -33,7 +33,7 @@ /listitem listitem para - Since PHP 5.2.0, the following registry locations are searched in + As of PHP 5.2.0, the following registry locations are searched in order: literalHKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath\x.y.z/literal, literalHKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath\x.y/literal and
[PHP-DOC] cvs: phpdoc /en/reference/image/functions imagepng.xml
nlopess Thu Jan 18 19:49:05 2007 UTC Modified files: /phpdoc/en/reference/image/functionsimagepng.xml Log: add quality param http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/image/functions/imagepng.xml?r1=1.8r2=1.9diff_format=u Index: phpdoc/en/reference/image/functions/imagepng.xml diff -u phpdoc/en/reference/image/functions/imagepng.xml:1.8 phpdoc/en/reference/image/functions/imagepng.xml:1.9 --- phpdoc/en/reference/image/functions/imagepng.xml:1.8Sun Jan 14 03:15:21 2007 +++ phpdoc/en/reference/image/functions/imagepng.xmlThu Jan 18 19:49:05 2007 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.8 $ -- +!-- $Revision: 1.9 $ -- refentry id=function.imagepng refnamediv refnameimagepng/refname @@ -11,6 +11,7 @@ typebool/typemethodnameimagepng/methodname methodparamtyperesource/typeparameterimage/parameter/methodparam methodparam choice=opttypestring/typeparameterfilename/parameter/methodparam + methodparam choice=opttypeint/typeparameterquality/parameter/methodparam /methodsynopsis para Outputs or saves a acronymPNG/acronym image from the given @@ -31,6 +32,14 @@ /para /listitem /varlistentry +varlistentry + termparameterquality/parameter/term + listitem + para + Compression level: from 0 (no compression) to 9. + /para + /listitem +/varlistentry /variablelist /para /refsect1 @@ -40,6 +49,31 @@ return.success; /para /refsect1 + + refsect1 role=changelog + reftitle.changelog; + para + informaltable +tgroup cols=2 + thead + row + entryVersion;/entry + entryDescription;/entry + /row + /thead + tbody + row + entry5.1.0/entry + entry +Added the parameterquality/parameter parameter. + /entry + /row + /tbody +/tgroup + /informaltable + /para + /refsect1 + refsect1 role=examples reftitle.examples; para
[PHP-DOC] cvs: phpdoc /en/reference/image/functions imagepng.xml
nlopess Thu Jan 18 19:52:51 2007 UTC Modified files: /phpdoc/en/reference/image/functionsimagepng.xml Log: oops. the quality parameter is available as of 5.1.2 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/image/functions/imagepng.xml?r1=1.9r2=1.10diff_format=u Index: phpdoc/en/reference/image/functions/imagepng.xml diff -u phpdoc/en/reference/image/functions/imagepng.xml:1.9 phpdoc/en/reference/image/functions/imagepng.xml:1.10 --- phpdoc/en/reference/image/functions/imagepng.xml:1.9Thu Jan 18 19:49:05 2007 +++ phpdoc/en/reference/image/functions/imagepng.xmlThu Jan 18 19:52:51 2007 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.9 $ -- +!-- $Revision: 1.10 $ -- refentry id=function.imagepng refnamediv refnameimagepng/refname @@ -63,7 +63,7 @@ /thead tbody row - entry5.1.0/entry + entry5.1.2/entry entry Added the parameterquality/parameter parameter. /entry
[PHP-DOC] cvs: phpdoc /en/reference/mysql/functions mysql-real-escape-string.xml
colder Thu Jan 18 20:36:11 2007 UTC Modified files: /phpdoc/en/reference/mysql/functionsmysql-real-escape-string.xml Log: improve the example of best practice http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mysql/functions/mysql-real-escape-string.xml?r1=1.26r2=1.27diff_format=u Index: phpdoc/en/reference/mysql/functions/mysql-real-escape-string.xml diff -u phpdoc/en/reference/mysql/functions/mysql-real-escape-string.xml:1.26 phpdoc/en/reference/mysql/functions/mysql-real-escape-string.xml:1.27 --- phpdoc/en/reference/mysql/functions/mysql-real-escape-string.xml:1.26 Sat Mar 11 11:53:41 2006 +++ phpdoc/en/reference/mysql/functions/mysql-real-escape-string.xmlThu Jan 18 20:36:11 2007 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.26 $ -- +!-- $Revision: 1.27 $ -- refentry id=function.mysql-real-escape-string refnamediv refnamemysql_real_escape_string/refname @@ -121,30 +121,44 @@ programlisting role=php ![CDATA[ ?php -// Quote variable to make safe -function quote_smart($value) -{ -// Stripslashes -if (get_magic_quotes_gpc()) { -$value = stripslashes($value); -} -// Quote if not a number or a numeric string -if (!is_numeric($value)) { -$value = ' . mysql_real_escape_string($value) . '; -} -return $value; -} -// Connect -$link = mysql_connect('mysql_host', 'mysql_user', 'mysql_password') -OR die(mysql_error()); +if (isset($_POST['product_name']) isset($_POST['product_description']) isset($_POST['user_id'])) { +// Connect -// Make a safe query -$query = sprintf(SELECT * FROM users WHERE user=%s AND password=%s, -quote_smart($_POST['username']), -quote_smart($_POST['password'])); +$link = mysql_connect('mysql_host', 'mysql_user', 'mysql_password'); -mysql_query($query); +if(!is_resource($link)) { + +echo Failed to connect to the server\n; +// ... log the error properly + +} else { + +// Reverse magic_quotes_gpc effects on those vars if ON. + +if(get_magic_quotes_gpc()) { +$product_name= stripslashes($_POST['product_name']); +$product_description = stripslashes($_POST['product_description']); +} else { +$product_name= $_POST['product_name']; +$product_description = $_POST['product_description']; +} + +// Make a safe query +$query = sprintf(INSERT INTO products (`name`, `description`, `user_id`) VALUES ('%s', '%s', '%d'), +mysql_real_escape_string($product_name, $link), +mysql_real_escape_string($product_description, $link), +$_POST['user_id']); + +mysql_query($query, $link); + +if (mysql_affected_rows($link) 0) { +echo Product inserted\n; +} +} +} else { +echo Fill the form properly\n; +} ? ]] /programlisting
[PHP-DOC] cvs: phpdoc /scripts script-skel.php
colder Thu Jan 18 21:29:59 2007 UTC Added files: /phpdoc/scripts script-skel.php Log: Script skeleton that already contains functions to look inside doc files http://cvs.php.net/viewvc.cgi/phpdoc/scripts/script-skel.php?view=markuprev=1.1 Index: phpdoc/scripts/script-skel.php +++ phpdoc/scripts/script-skel.php ?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: +--+ | PHP Documentation Site Source Code | +--+ | Copyright (c) 1997-2005 The PHP Group| +--+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is| | available at through the world-wide-web at | | http://www.php.net/license/3_01.txt. | | If you did not receive a copy of the PHP license and are unable to | | obtain it through the world-wide-web, please send a note to | | [EMAIL PROTECTED] so we can mail you a copy immediately. | +--+ | Authors: Etienne Kneuss [EMAIL PROTECTED] | +--+ $Id: script-skel.php,v 1.1 2007/01/18 21:29:59 colder Exp $ */ if (PHP_SAPI !== 'cli') { echo This script is ment to be run under CLI\n; exit(1); } if ($_SERVER['argc'] == 2 in_array($_SERVER['argv'][1], array('--help', '-help', '-h', '-?')) || $_SERVER['argc'] 2) { echo Description\n\n; echo Usage: {$_SERVER['argv'][0]} path\n; echo --help, -help, -h, -? - to get this help\n; die; } // Ensure the trailing / $fullpath_dir = rtrim($_SERVER['argv'][1], '/').'/'; if (!is_dir($fullpath_dir)) { echo ERROR: ($fullpath_dir) is not a directory.\n; exit(1); } $log = array('nonfiles' = array(), 'error' = array(), 'rewritten' = array()); // Start the processing list_files($fullpath_dir, '', $log); echo count($log['rewritten']). file(s) have been affected.\n; if (!empty($log['error'])) { echo count($log['error']). error(s) occured:\n; foreach($log['error'] as $error) { echo $error\n; } } /** * List files recursivly and scan them * * @return bool */ function list_files($prefix, $path, $userdata) { if (is_dir($prefix.$path) is_resource($handle = @opendir($prefix.$path))) { while ($name = readdir($handle)) { if (strpos($name, .xml) !== false) { scan_file($prefix, $path.$name, $userdata); } else if(is_dir($prefix.$path.$name) $name !== 'CVS' $name !== '.' $name !== '..') { list_files($prefix, $path.$name.DIRECTORY_SEPARATOR, $userdata); } } closedir($handle); return true; } else { return false; } } /** * Scan files for examples, and insert them * * @return null */ function scan_file($prefix, $path, $userdata) { if (!is_file($prefix.$path)) { $userdata['nonfiles'][] = $path; return false; } $content = file_get_contents($prefix.$path); echo scanning $path\n; if ($number = preg_match_all('/regex/', $content, $matches)) { // Process $userdata['rewritten'][] = $path; } }
Re: [PHP-DOC] cpdf-setrgbcolor-fill.xml
On Thu, Jan 18, 2007 at 03:17:59PM -, Nuno Lopes wrote: Fixed. Thanks, I couldn't download ClibPDF to check and, if necessary, fix this myself, because fastio.com was (and still is) unreachable. I fixed the same in cpdf_setrgbcolor_stroke.xml and cpdf_setrgbcolor.xml Cheers, Martin
[PHP-DOC] cvs: phpdoc /en/language/oop5 overloading.xml
colder Thu Jan 18 22:34:53 2007 UTC Modified files: /phpdoc/en/language/oop5overloading.xml Log: Implement Marcus' suggestion to improve the paragraph on method overloading http://cvs.php.net/viewvc.cgi/phpdoc/en/language/oop5/overloading.xml?r1=1.14r2=1.15diff_format=u Index: phpdoc/en/language/oop5/overloading.xml diff -u phpdoc/en/language/oop5/overloading.xml:1.14 phpdoc/en/language/oop5/overloading.xml:1.15 --- phpdoc/en/language/oop5/overloading.xml:1.14Thu Jan 11 23:05:52 2007 +++ phpdoc/en/language/oop5/overloading.xml Thu Jan 18 22:34:53 2007 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.14 $ -- +!-- $Revision: 1.15 $ -- sect1 id=language.oop5.overloading titleOverloading/title @@ -164,13 +164,13 @@ /methodsynopsis para -Class methods can be overloaded to run custom code defined in your class -by defining this specially named method. The varname$name/varname -parameter used is the name as the function name that was requested -to be used. The arguments that were passed in the function will be -defined as an array in the varname$arguments/varname parameter. -The value returned from the __call() method will be returned to the -caller of the method. +The magic method __call() allows to capture invocation of non existing +methods. That way __call() can be used to implement user defined method +handling that depends on the name of the actual method being called. This +is for instance useful for proxy implementations. The arguments that were +passed in the function will be defined as an array in the +varname$arguments/varname parameter. The value returned from the +__call() method will be returned to the caller of the method. /para example