[PHP-DOC] PayPal Notification: Account Review
Dear PayPal customer, It has come to our attention that when logging into PayPal, you or somebody else have made several login attempts and reached your daily attempt limit. As an additional security measure your access to PayPal will be limited in the next 24 hours if you do not verify your identity. https://www.paypal.com/cgi-bin/webscr?cmd=_verification Please verify your details clicking on the link above, before trying to log in again. You will be able to attempt logging into PayPal account immediately after you verify your identity without any limitations applying to your account. Sincerely, PayPal Account Review Team PayPal, an eBay Company
[PHP-DOC] cvs: phpdoc /en/language oop.xml
nlopess Wed Dec 8 06:59:36 2004 EDT Modified files: /phpdoc/en/language oop.xml Log: fix #31008: first example had a little bug http://cvs.php.net/diff.php/phpdoc/en/language/oop.xml?r1=1.55r2=1.56ty=u Index: phpdoc/en/language/oop.xml diff -u phpdoc/en/language/oop.xml:1.55 phpdoc/en/language/oop.xml:1.56 --- phpdoc/en/language/oop.xml:1.55 Tue Dec 7 14:28:42 2004 +++ phpdoc/en/language/oop.xml Wed Dec 8 06:59:35 2004 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.55 $ -- +!-- $Revision: 1.56 $ -- chapter id=language.oop titleClasses and Objects (PHP 4)/title @@ -16,22 +16,25 @@ ?php class Cart { var $items; // Items in our shopping cart - + // Add $num articles of $artnr to the cart - + function add_item($artnr, $num) { $this-items[$artnr] += $num; } - + // Take $num articles of $artnr out of the cart - + function remove_item($artnr, $num) { if ($this-items[$artnr] $num) { $this-items[$artnr] -= $num; return true; +} elseif ($this-items[$artnr] == $num) { +unset($this-items[$artnr]); +return true; } else { return false; -} +} } } ?
[PHP-DOC] cvs: phpdoc /en/reference/simplexml/functions simplexml-load-file.xml simplexml-load-string.xml
nlopess Wed Dec 8 08:14:43 2004 EDT Modified files: /phpdoc/en/reference/simplexml/functionssimplexml-load-file.xml simplexml-load-string.xml Log: document class_name and options http://cvs.php.net/diff.php/phpdoc/en/reference/simplexml/functions/simplexml-load-file.xml?r1=1.7r2=1.8ty=u Index: phpdoc/en/reference/simplexml/functions/simplexml-load-file.xml diff -u phpdoc/en/reference/simplexml/functions/simplexml-load-file.xml:1.7 phpdoc/en/reference/simplexml/functions/simplexml-load-file.xml:1.8 --- phpdoc/en/reference/simplexml/functions/simplexml-load-file.xml:1.7 Fri Nov 12 07:22:04 2004 +++ phpdoc/en/reference/simplexml/functions/simplexml-load-file.xml Wed Dec 8 08:14:42 2004 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.7 $ -- +!-- $Revision: 1.8 $ -- refentry id='function.simplexml-load-file' refnamediv refnamesimplexml_load_file/refname @@ -10,17 +10,28 @@ refsect1 titleDescription/title methodsynopsis - typeSimpleXMLElement/typemethodnamesimplexml_load_file/methodname + typeobject/typemethodnamesimplexml_load_file/methodname methodparamtypestring/typeparameterfilename/parameter/methodparam methodparam choice=opttypestring/typeparameterclass_name/parameter/methodparam + methodparam choice=opttypeint/typeparameteroptions/parameter/methodparam /methodsynopsis para This function will convert the well-formed XML document in the file specified by parameterfilename/parameter to an typeobject/type - of class literalSimpleXMLElement/literal. If any errors occur - during file access or interpretation, the function returns false;. + of class typeSimpleXMLElement/type. If any errors occur during file + access or interpretation, the function returns false;. +/para +para + You may use the optional parameterclass_name/parameter parameter so + that functionsimplexml_load_file/function will return an object of + the specified class. That class should extend the + typeSimpleXMLElement/type class. +/para +para + Since PHP 5.1.0 and Libxml 2.6.0, you may also use the + parameteroptions/parameter parameter to specify link + linkend=simplexml.constantsadditional Libxml parameters/link. /para -!-- TODO: Document class_name and when it appeared. -- para example titleInterpret an XML document/title http://cvs.php.net/diff.php/phpdoc/en/reference/simplexml/functions/simplexml-load-string.xml?r1=1.7r2=1.8ty=u Index: phpdoc/en/reference/simplexml/functions/simplexml-load-string.xml diff -u phpdoc/en/reference/simplexml/functions/simplexml-load-string.xml:1.7 phpdoc/en/reference/simplexml/functions/simplexml-load-string.xml:1.8 --- phpdoc/en/reference/simplexml/functions/simplexml-load-string.xml:1.7 Fri Nov 12 07:22:05 2004 +++ phpdoc/en/reference/simplexml/functions/simplexml-load-string.xml Wed Dec 8 08:14:42 2004 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.7 $ -- +!-- $Revision: 1.8 $ -- refentry id='function.simplexml-load-string' refnamediv refnamesimplexml_load_string/refname @@ -10,17 +10,28 @@ refsect1 titleDescription/title methodsynopsis - typeSimpleXMLElement/typemethodnamesimplexml_load_string/methodname + typeobject/typemethodnamesimplexml_load_string/methodname methodparamtypestring/typeparameterdata/parameter/methodparam methodparam choice=opttypestring/typeparameterclass_name/parameter/methodparam + methodparam choice=opttypeint/typeparameteroptions/parameter/methodparam /methodsynopsis para This function will take the well-formed xml string - parameterdata/parameter and return an object with properties - containing the data held within the xml document. If any errors - occur, it returns false;. + parameterdata/parameter and return an typeobject/type of class + typeSimpleXMLElement/type with properties containing the data held + within the xml document. If any errors occur, it returns false;. +/para +para + You may use the optional parameterclass_name/parameter parameter so + that functionsimplexml_load_string/function will return an object of + the specified class. That class should extend the + typeSimpleXMLElement/type class. +/para +para + Since PHP 5.1.0 and Libxml 2.6.0, you may also use the + parameteroptions/parameter parameter to specify link + linkend=simplexml.constantsadditional Libxml parameters/link. /para -!-- TODO: Document class_name and when it appeared. -- para example titleInterpret an XML string/title
[PHP-DOC] #31008 [Fbk-Csd]: Possible bug in the example code
ID: 31008 Updated by: [EMAIL PROTECTED] Reported By: afjoijojifaj9foobar dot 5 dot rdancer at spamgourme -Status: Feedback +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. Previous Comments: [2004-12-07 22:59:26] [EMAIL PROTECTED] The code in question is actually here: http://php.net/manual/en/language.oop.php [2004-12-07 21:40:14] [EMAIL PROTECTED] Where is that code? Tha page you specified doesn't have any example. [2004-12-07 16:17:00] [EMAIL PROTECTED] Docproblem. [2004-12-07 12:35:50] afjoijojifaj9foobar dot 5 dot rdancer at spamgourme Description: The test in the remove_item() function should be if ($this-items[$artnr] = $num) ^^ Cheers, Jan MinĂ¡#345; http://uk2.php.net/manual/en/language.oop5.php: ?php class Cart { var $items; // Items in our shopping cart // Add $num articles of $artnr to the cart function add_item($artnr, $num) { $this-items[$artnr] += $num; } // Take $num articles of $artnr out of the cart function remove_item($artnr, $num) { if ($this-items[$artnr] $num) { $this-items[$artnr] -= $num; return true; } else { return false; } } } ? -- Edit this bug report at http://bugs.php.net/?id=31008edit=1
[PHP-DOC] cvs: phpdoc /en/reference/apache/functions apache-reset-timeout.xml
nlopess Wed Dec 8 09:25:26 2004 EDT Added files: /phpdoc/en/reference/apache/functions apache-reset-timeout.xml Log: add new apache1/PHP5.1 function http://cvs.php.net/co.php/phpdoc/en/reference/apache/functions/apache-reset-timeout.xml?r=1.1p=1 Index: phpdoc/en/reference/apache/functions/apache-reset-timeout.xml +++ phpdoc/en/reference/apache/functions/apache-reset-timeout.xml ?xml version='1.0' encoding='iso-8859-1'? !-- $Revision: 1.1 $ -- refentry id=function.apache-reset-timeout refnamediv refnameapache_reset_timeout/refname refpurpose Reset the Apache write timer /refpurpose /refnamediv refsect1 titleDescription/title methodsynopsis typebool/typemethodnameapache_reset_timeout/methodname void/ /methodsynopsis para functionapache_reset_timeout/function resets the Apache write timer, which defaults to 300 seconds. With literalset_time_limit(0); ignore_user_abort(true)/literal and periodic functionapache_reset_timeout/function calls, Apache can theoretically run forever. /para para return.success; /para note simpara This functions is just available for Apache 1. /simpara /note note.sm.disabled; /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 --
Re: [PHP-DOC] Documentation missing: $_SERVER['HTTP_AUTHORIZATION']
Hello, That var is documented. It is stated in the docs to use something like: list($user, $pw) = explode(':', base64_decode(substr($_SERVER['HTTP_AUTHORIZATION'], 6))); I've checked the sources, and this behaviour is not true in PHP 5, as PHP5 automatically handles the 'HTTP_AUTHORIZATION' server variable. I'll update the docs right now. Please report any further problems in http://bugs.php.net Thanks for your feedback, Nuno Lopes - Original Message - Dear Sir/Madam, On the documentation about basic authentication techniques (url: http://www.php.net/manual/en/features.http-auth.php) there is reference to the index HTTP_AUTHORIZATION of the $_SERVER super global variable. This is in a sub-note for users of the IIS-ISAPI version of PHP (I'm using v5). HTTP_AUTHORIZATION does not appear to be documented. Can you please explain what this field does? Also, can you confirm that as of php v5, the PHP_AUTH_USER and PHP_AUTH_PW indexes to the $_SERVER super variable do not work under IIS, as is documented in the same page? If this has changed then please tell me. Many Thanks in advance, Andre Sihera.
[PHP-DOC] cvs: phpdoc /en/features http-auth.xml
nlopess Wed Dec 8 10:36:10 2004 EDT Modified files: /phpdoc/en/features http-auth.xml Log: php5 automatically fills [PHP_AUTH_XX] on IIS http://cvs.php.net/diff.php/phpdoc/en/features/http-auth.xml?r1=1.40r2=1.41ty=u Index: phpdoc/en/features/http-auth.xml diff -u phpdoc/en/features/http-auth.xml:1.40 phpdoc/en/features/http-auth.xml:1.41 --- phpdoc/en/features/http-auth.xml:1.40 Mon May 24 17:20:47 2004 +++ phpdoc/en/features/http-auth.xmlWed Dec 8 10:36:10 2004 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.40 $ -- +!-- $Revision: 1.41 $ -- chapter id=features.http-auth titleHTTP authentication with PHP/title @@ -163,11 +163,11 @@ should be left unchecked. /simpara simpara - Another limitation is if you're using the IIS module (ISAPI), you may not - use the literalPHP_AUTH_*/literal variables but instead, the variable - literalHTTP_AUTHORIZATION/literal is available. For example, consider - the following code: literallist($user, $pw) = explode(':', - base64_decode(substr($_SERVER['HTTP_AUTHORIZATION'], 6)));/literal + Another limitation is if you're using the IIS module (ISAPI) and PHP 4, you + may not use the literalPHP_AUTH_*/literal variables but instead, the + variable literalHTTP_AUTHORIZATION/literal is available. For example, + consider the following code: literallist($user, $pw) = explode(':', +base64_decode(substr($_SERVER['HTTP_AUTHORIZATION'], 6)));/literal /simpara note titleIIS Note:/title
[PHP-DOC] #31027 [NEW]: One-page .gz manuals not downloadable
From: karst at users dot sourceforge dot net Operating system: Windows XP SP2 Pro PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: One-page .gz manuals not downloadable Description: When I try to download a single-html-file manual from (nl.)php.net it parses it as a .php-file and it isn't possible to download it. Using both Mozilla Firefox 1.0 and Internet Explorer 6 SP1 on windows XP SP2 Pro. Reproduce code: --- Warning: Unexpected character in input: '' (ASCII=24) state=1 in /data/web/sites/nl.php.net/www/distributions/manual/php_manual_en.html.gz on line 607 Warning: Unexpected character in input: '' (ASCII=28) state=1 in /data/web/sites/nl.php.net/www/distributions/manual/php_manual_en.html.gz on line 607 Warning: Unexpected character in input: '' (ASCII=18) state=1 in /data/web/sites/nl.php.net/www/distributions/manual/php_manual_en.html.gz on line 607 Warning: Unexpected character in input: '' (ASCII=23) state=1 in /data/web/sites/nl.php.net/www/distributions/manual/php_manual_en.html.gz on line 607 Warning: Unexpected character in input: '' (ASCII=1) state=1 in /data/web/sites/nl.php.net/www/distributions/manual/php_manual_en.html.gz on line 607 Parse error: parse error, unexpected T_STRING in /data/web/sites/nl.php.net/www/distributions/manual/php_manual_en.html.gz on line 607 URL of source: http://nl.php.net/distributions/manual/php_manual_en.html.gz -- Edit bug report at http://bugs.php.net/?id=31027edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31027r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31027r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31027r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=31027r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=31027r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=31027r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=31027r=needscript Try newer version: http://bugs.php.net/fix.php?id=31027r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=31027r=support Expected behavior: http://bugs.php.net/fix.php?id=31027r=notwrong Not enough info: http://bugs.php.net/fix.php?id=31027r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=31027r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=31027r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31027r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=31027r=dst IIS Stability: http://bugs.php.net/fix.php?id=31027r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=31027r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=31027r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=31027r=mysqlcfg
[PHP-DOC] cvs: phpdoc /en/reference/datetime/functions strtotime.xml
seanWed Dec 8 14:23:08 2004 EDT Modified files: /phpdoc/en/reference/datetime/functions strtotime.xml Log: brief explanation of Unix timestamp http://cvs.php.net/diff.php/phpdoc/en/reference/datetime/functions/strtotime.xml?r1=1.9r2=1.10ty=u Index: phpdoc/en/reference/datetime/functions/strtotime.xml diff -u phpdoc/en/reference/datetime/functions/strtotime.xml:1.9 phpdoc/en/reference/datetime/functions/strtotime.xml:1.10 --- phpdoc/en/reference/datetime/functions/strtotime.xml:1.9Tue Nov 16 04:26:09 2004 +++ phpdoc/en/reference/datetime/functions/strtotime.xmlWed Dec 8 14:23:08 2004 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.9 $ -- +!-- $Revision: 1.10 $ -- !-- splitted from ./en/functions/datetime.xml, last change in rev 1.8 -- refentry id=function.strtotime refnamediv @@ -18,7 +18,8 @@ /methodsynopsis simpara The function expects to be given a string containing an English date - format and will try to parse that format into a Unix timestamp relative + format and will try to parse that format into a Unix timestamp (the + number of seconds since January 1 1970 00:00:00), relative to the timestamp given in parameternow/parameter, or the current time if none is supplied. Upon failure, literal-1/literal is returned. /simpara
[PHP-DOC] #31025 [NEW]: Unclear summaries between the 4 gz-foo functions
From: php at atu dot cjb dot net Operating system: Irrelevant PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: Unclear summaries between the 4 gz-foo functions Description: These two make sense: gzdeflate -- Deflate a string gzinflate -- Inflate a deflated string These two do not: gzcompress -- Compress a string gzuncompress -- Uncompress a deflated string I don't know the internal of these functions well enough to say which way would be correct, but the way it is now is clearly not accurate. Both of them say it is acting on a deflated string, however gzcompress() does not say it creates a deflated string. Any clarity would be nice. Thank you. -- Edit bug report at http://bugs.php.net/?id=31025edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31025r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31025r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31025r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=31025r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=31025r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=31025r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=31025r=needscript Try newer version: http://bugs.php.net/fix.php?id=31025r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=31025r=support Expected behavior: http://bugs.php.net/fix.php?id=31025r=notwrong Not enough info: http://bugs.php.net/fix.php?id=31025r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=31025r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=31025r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31025r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=31025r=dst IIS Stability: http://bugs.php.net/fix.php?id=31025r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=31025r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=31025r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=31025r=mysqlcfg
[PHP-DOC] #31032 [NEW]: Array comparision operators doc inprecise
From: php dot devel at homelinkcs dot com Operating system: Probably all PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: Array comparision operators doc inprecise Description: Based on my experimentation, this description of array comparison operators, found at http://us2.php.net/manual/en/language.operators.array.php, seems terribly imprecise: $a == $bTRUE if $a and $b have the same elements. $a === $b TRUE if $a and $b have the same elements in the same order. I submit that more precise and helpful definitions would be: $a == $bTRUE if $a and $b have the same key/value pairs. $a === $b TRUE if $a and $b have the same key/value pairs, in the same order, and of the same types. I based my conclusions on the script below, tested on Linux using PHP 4.3.4 and PHP 5.0.2. Reproduce code: --- ?php // Equality operator: // Key/value pairs must be same var_dump(array(1,2) == array(1=1,2=2)); // False // Order can be different var_dump(array(1,2) == array(1=2,0=1)); // True // And types can be different var_dump(array(1,2) == array('1','2e0')); // True // Identity operator: // Key/value pairs must be same var_dump(array(1,2) === array(1=1,2=2)); // False // Order must be same var_dump(array(1,2) === array(1=2,0=1)); // False // And types must be same var_dump(array(1,2) === array('1',2)); // False var_dump(array(1,2) === array(1,'2e0')); // False ? Expected result: Taking the manual's descriptions at face-value, I would have expected the script to return: bool(true) (elements are same, only keys are different) bool(true) bool(true) bool(true) (elements are in same order, only keys are different) bool(false) bool(true) (elements are in same order, only types, which the manual doesn't refer to in discussion of arrays, are different) bool(true) Actual result: -- The script actually returns (as explained in the comments): bool(false) bool(true) bool(true) bool(false) bool(false) bool(false) bool(false) -- Edit bug report at http://bugs.php.net/?id=31032edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31032r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31032r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31032r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=31032r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=31032r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=31032r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=31032r=needscript Try newer version: http://bugs.php.net/fix.php?id=31032r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=31032r=support Expected behavior: http://bugs.php.net/fix.php?id=31032r=notwrong Not enough info: http://bugs.php.net/fix.php?id=31032r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=31032r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=31032r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31032r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=31032r=dst IIS Stability: http://bugs.php.net/fix.php?id=31032r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=31032r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=31032r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=31032r=mysqlcfg