[PHP-DOC] cvs: phpdoc /en/chapters config.xml
philip Thu Jul 11 02:50:52 2002 EDT Modified files: /phpdoc/en/chapters config.xml Log: Document disable_functions directive. Close bug #15088. Index: phpdoc/en/chapters/config.xml diff -u phpdoc/en/chapters/config.xml:1.59 phpdoc/en/chapters/config.xml:1.60 --- phpdoc/en/chapters/config.xml:1.59 Tue Jul 2 22:29:14 2002 +++ phpdoc/en/chapters/config.xml Thu Jul 11 02:50:52 2002 -1,5 +1,5 ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.59 $ -- +!-- $Revision: 1.60 $ -- chapter id=configuration titleConfiguration/title -252,6 +252,25 /listitem /varlistentry + varlistentry id=ini.disable-functions + term +parameterdisable_functions/parameter +typestring/type + /term + listitem +simpara + This directive allows you to disable certain functions for + link linkend=securitysecurity/link reasons. It takes + on a comma-dilimited list of function names. disable_functions + is not affected by link linkend=ini.safe-modeSafe Mode/link. +/simpara +simpara + This directive must be set in php.ini; For example, you + cannot set this in filenamehttpd.conf/filename. +/simpara + /listitem + /varlistentry + varlistentry id=ini.display-errors term parameterdisplay_errors/parameter -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /en/chapters config.xml
philip Thu Jul 11 03:22:26 2002 EDT Modified files: /phpdoc/en/chapters config.xml Log: Removing the undocumented and mysterious nsapi_ext, isapi_ext and cgi_ext entries. They aren't even in php.ini Index: phpdoc/en/chapters/config.xml diff -u phpdoc/en/chapters/config.xml:1.60 phpdoc/en/chapters/config.xml:1.61 --- phpdoc/en/chapters/config.xml:1.60 Thu Jul 11 02:50:52 2002 +++ phpdoc/en/chapters/config.xml Thu Jul 11 03:22:25 2002 -1,5 +1,5 ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.60 $ -- +!-- $Revision: 1.61 $ -- chapter id=configuration titleConfiguration/title -241,17 +241,6 /listitem /varlistentry - varlistentry id=ini.cgi-ext - term -parametercgi_ext/parameter -typestring/type - /term - listitem -para -/para - /listitem - /varlistentry - varlistentry id=ini.disable-functions term parameterdisable_functions/parameter -549,17 +538,6 /listitem /varlistentry - varlistentry id=ini.isapi-ext - term -parameterisapi_ext/parameter -typestring/type - /term - listitem -para -/para - /listitem - /varlistentry - varlistentry id=ini.log-errors term parameterlog_errors/parameter -653,17 +631,6 This sets the maximum amount of memory in bytes that a script is allowed to allocate. This helps prevent poorly written scripts for eating up all available memory on a server. -/para - /listitem - /varlistentry - - varlistentry id=ini.nsapi-ext - term -parameternsapi_ext/parameter -typestring/type - /term - listitem -para /para /listitem /varlistentry -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /entities global.ent
philip Thu Jul 11 03:44:00 2002 EDT Modified files: /phpdoc/entitiesglobal.ent Log: Adding link to latest php.ini-dist as config.xml doesn't document all the directives. Index: phpdoc/entities/global.ent diff -u phpdoc/entities/global.ent:1.30 phpdoc/entities/global.ent:1.31 --- phpdoc/entities/global.ent:1.30 Tue Jul 2 13:48:18 2002 +++ phpdoc/entities/global.ent Thu Jul 11 03:44:00 2002 -1,6 +1,6 !-- -*- SGML -*- - $Id: global.ent,v 1.30 2002/07/02 17:48:18 philip Exp $ + $Id: global.ent,v 1.31 2002/07/11 07:44:00 philip Exp $ Contains global macros for all the XML documents. -136,6 +136,7 !ENTITY url.php.bugs.howtoreport http://bugs.php.net/how-to-report.php; !ENTITY url.php.conf http://conf.php.net/; !ENTITY url.php.cvs http://cvs.php.net/; +!ENTITY url.php.cvs.phpini http://cvs.php.net/co.php/php4/php.ini-dist; !ENTITY url.php.docs http://www.php.net/docs.php; !ENTITY url.php.dochowto http://cvs.php.net/co.php/phpdoc/howto/howto.html.tar.gz; !ENTITY url.php.gtk http://gtk.php.net/; -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] Bug #15088 Updated: Problem with disable_functions on Apache 1.3.20 and PHP 4.1.1
ID: 15088 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: Windows 2000 Srv fr SP2 PHP Version: 4.1.1 New Comment: Now documented in config.xml (php.net/configuration) and will show up shortly. Previous Comments: [2002-07-11 02:20:05] [EMAIL PROTECTED] This is not bug. 'disable_functions' can only be set in php.ini. Some note somewhere in the manual might be in order here? (no idea WHERE in manual though..) [2002-01-17 16:15:18] [EMAIL PROTECTED] Hi, I have installed PHP 4.1.1 and Apache 1.3.20 on my windows 2000 server Fr SP2. I have set : Location /users/ php_admin_flag safe_mode on php_admin_value disable_functions fread,fopen,system,phpinfo /Location in httpd.conf file but functions is not disabled! Follow the phpinfo page on my server in location users Directive Local Value Master Value allow_call_time_pass_reference On On allow_url_fopen 1 1 always_populate_raw_post_data 0 0 arg_separator.input arg_separator.output asp_tags Off Off auto_append_file no value no value auto_prepend_file no value no value browscap no value no value default_charset no value no value default_mimetype text/html text/html define_syslog_variables Off Off disable_functions fread,fopen,system,phpinfo no value display_errors On On display_startup_errors Off Off doc_root no value no value enable_dl On On error_append_string no value no value error_log no value no value error_prepend_string no value no value error_reporting 2039 2039 expose_php On On extension_dir d:\inetpub\wwwroot\php4\extensions d:\inetpub\wwwroot\php4\extensions file_uploads 1 1 gpc_order GPC GPC highlight.bg #FF #FF highlight.comment #FF9900 #FF9900 highlight.default #CC #CC highlight.html #00 #00 highlight.keyword #006600 #006600 highlight.string #CC #CC html_errors On On ignore_user_abort Off Off implicit_flush Off Off include_path no value no value log_errors Off Off magic_quotes_gpc On On magic_quotes_runtime Off Off magic_quotes_sybase Off Off max_execution_time 30 30 open_basedir no value no value output_buffering no value no value output_handler no value no value post_max_size 8M 8M precision 14 14 register_argc_argv On On register_globals On On safe_mode On On safe_mode_exec_dir d:/inetpub/wwwroot/usuga/ d:/inetpub/wwwroot/usuga/ safe_mode_gid Off Off safe_mode_include_dir no value no value sendmail_from [EMAIL PROTECTED] [EMAIL PROTECTED] sendmail_path no value no value short_open_tag On On SMTP localhost localhost sql.safe_mode Off Off track_errors Off Off upload_max_filesize 2M 2M upload_tmp_dir no value no value user_dir no value no value variables_order EGPCS EGPCS xmlrpc_error_number 0 0 xmlrpc_errors Off Off y2k_compliance Off Off Thank for your help. Grégory Dizier -- Edit this bug report at http://bugs.php.net/?id=15088edit=1 -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /en/chapters config.xml
philip Thu Jul 11 04:04:31 2002 EDT Modified files: /phpdoc/en/chapters config.xml Log: * Not all directives are documented, see php.ini in CVS * note: register_globals = off as of PHP 4.2.0 Index: phpdoc/en/chapters/config.xml diff -u phpdoc/en/chapters/config.xml:1.61 phpdoc/en/chapters/config.xml:1.62 --- phpdoc/en/chapters/config.xml:1.61 Thu Jul 11 03:22:25 2002 +++ phpdoc/en/chapters/config.xml Thu Jul 11 04:04:31 2002 -1,5 +1,5 ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.61 $ -- +!-- $Revision: 1.62 $ -- chapter id=configuration titleConfiguration/title -24,6 +24,19 environment variable literalPHPRC/literal for an additionaly path to search for php.ini;. /para + para +Not every PHP directive is documented below. For a list of all directives, +please read your well commented php.ini file. You may want to view the +latest ulink url=url.php.cvs.phpini;php.ini here/ulink from CVS. + /para + note +para + The default value for the PHP directive + link linkend=ini.register-globalsregister_globals/link changed from + emphasison/emphasis to emphasisoff/emphasis in PHP + ulink url=url.php.release4.2.0;4.2.0/ulink. +/para + /note para example titlephp.ini; example/title -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /en/chapters config.xml
gobaThu Jul 11 05:31:04 2002 EDT Modified files: /phpdoc/en/chapters config.xml Log: Correcting php.ini entity Index: phpdoc/en/chapters/config.xml diff -u phpdoc/en/chapters/config.xml:1.62 phpdoc/en/chapters/config.xml:1.63 --- phpdoc/en/chapters/config.xml:1.62 Thu Jul 11 04:04:31 2002 +++ phpdoc/en/chapters/config.xml Thu Jul 11 05:31:03 2002 -1,5 +1,5 ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.62 $ -- +!-- $Revision: 1.63 $ -- chapter id=configuration titleConfiguration/title -25,8 +25,8 search for php.ini;. /para para -Not every PHP directive is documented below. For a list of all directives, -please read your well commented php.ini file. You may want to view the +Not every PHP directive is documented below. For a list of all directives, +please read your well commented php.ini; file. You may want to view the latest ulink url=url.php.cvs.phpini;php.ini here/ulink from CVS. /para note -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DOC] cvs: phpdoc /en/chapters config.xml
Why doesn't 'make test' pick up on these entity errors? Because NSGMLS cannot find these errors. It's not a problem for Jade, so the manual can still build. But it's not valid XML, and it's a problem for any XSLT processor. Also, I notice you turned the two spaces after the period into one. I've always used two after a period, we use just one here? Afaik both ways are accepted although I was always tought two. AFAIK American guys use two spaces. I was always told that one space should be between two sentences. We have no standard for this in phpdoc. But browser rendering also resembles this, as there any number of repetitive spaces are turned into one (incl. the spaces between sentences). So at the end both the two space and one space ones display the same way... Goba -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DOC] cvs: phpdoc /en/chapters config.xml
Philip Olson [EMAIL PROTECTED] wrote: Also, I notice you turned the two spaces after the period into one. I've always used two after a period, we use just one here? Afaik both ways are accepted although I was always tought two. it probably doesn't matter. the processing tools will almost certainly collapse all whitespace to a single space. (for what it is worth, the two-spaces-after-period rule comes from the days of typewriters with monospace fonts, a la courier. it is completely unnecessary with proportional fonts, and of debatable merit with monospace fonts.) jim -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /en/reference/apache/functions apache-response-headers.xml
philip Thu Jul 11 14:32:18 2002 EDT Added files: /phpdoc/en/reference/apache/functions apache-response-headers.xml Log: Initial apache_response_headers() docs. Available in PHP 4.3.0. Index: phpdoc/en/reference/apache/functions/apache-response-headers.xml +++ phpdoc/en/reference/apache/functions/apache-response-headers.xml ?xml version=1.0 encoding=iso-8859-1? !-- $Revision: 1.1 $ -- !-- splitted from ./en/functions/apache.xml, last change in rev 1.2 -- refentry id=function.apache-response-headers refnamediv refnameapache_response_headers/refname refpurpose Fetch all HTTP response headers /refpurpose /refnamediv refsect1 titleDescription/title methodsynopsis typearray/typemethodnameapache_response_headers/methodname void/ /methodsynopsis para Returns an array of all Apache response headers. /para para See also functiongetallheaders/function and functionheaders_sent/function. /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 Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /en/reference/info/functions ini-set.xml
derick Thu Jul 11 15:36:27 2002 EDT Modified files: /phpdoc/en/reference/info/functions ini-set.xml Log: - Fix docs Index: phpdoc/en/reference/info/functions/ini-set.xml diff -u phpdoc/en/reference/info/functions/ini-set.xml:1.13 phpdoc/en/reference/info/functions/ini-set.xml:1.14 --- phpdoc/en/reference/info/functions/ini-set.xml:1.13 Mon Jul 8 02:31:58 2002 +++ phpdoc/en/reference/info/functions/ini-set.xml Thu Jul 11 15:36:27 2002 -1,5 +1,5 ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.13 $ -- +!-- $Revision: 1.14 $ -- !-- splitted from ./en/functions/info.xml, last change in rev 1.23 -- refentry id=function.ini-set refnamediv -1035,12 +1035,12 row entryauto_append_file/entry entryNULL/entry - entryPHP_INI_ALL/entry + entryPHP_INI_SYSTEM/entry /row row entryauto_prepend_file/entry entryNULL/entry - entryPHP_INI_ALL/entry + entryPHP_INI_SYSTEM/entry /row row entrydoc_root/entry -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /en/reference/info/functions ini-set.xml
derick Thu Jul 11 15:39:11 2002 EDT Modified files: /phpdoc/en/reference/info/functions ini-set.xml Log: - oops :) Index: phpdoc/en/reference/info/functions/ini-set.xml diff -u phpdoc/en/reference/info/functions/ini-set.xml:1.14 phpdoc/en/reference/info/functions/ini-set.xml:1.15 --- phpdoc/en/reference/info/functions/ini-set.xml:1.14 Thu Jul 11 15:36:27 2002 +++ phpdoc/en/reference/info/functions/ini-set.xml Thu Jul 11 15:39:10 2002 -1,5 +1,5 ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.14 $ -- +!-- $Revision: 1.15 $ -- !-- splitted from ./en/functions/info.xml, last change in rev 1.23 -- refentry id=function.ini-set refnamediv -1035,12 +1035,12 row entryauto_append_file/entry entryNULL/entry - entryPHP_INI_SYSTEM/entry + entryPHP_INI_SYSTEM|PHP_INI_PERDIR/entry /row row entryauto_prepend_file/entry entryNULL/entry - entryPHP_INI_SYSTEM/entry + entryPHP_INI_SYSTEM|PHP_INI_PERDIR/entry /row row entrydoc_root/entry -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /en/reference/filesystem/functions file-get-contents.xml
philip Thu Jul 11 17:00:37 2002 EDT Modified files: /phpdoc/en/reference/filesystem/functions file-get-contents.xml Log: Removed note for 4.3.0 Introduction, this information is autogenerated. Index: phpdoc/en/reference/filesystem/functions/file-get-contents.xml diff -u phpdoc/en/reference/filesystem/functions/file-get-contents.xml:1.3 phpdoc/en/reference/filesystem/functions/file-get-contents.xml:1.4 --- phpdoc/en/reference/filesystem/functions/file-get-contents.xml:1.3 Tue Apr 23 18:10:15 2002 +++ phpdoc/en/reference/filesystem/functions/file-get-contents.xml Thu Jul 11 +17:00:35 2002 -1,5 +1,5 ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.3 $ -- +!-- $Revision: 1.4 $ -- !-- splitted from ./en/functions/filesystem.xml, last change in rev 1.130 -- refentry id=function.file-get-contents refnamediv -17,11 +17,6 Identical to functionreadfile/function, except that functionfile_get_contents/function returns the file in a string. /para -note - para - This function was introduced in PHP 4.3.0. - /para -/note note.bin-safe; tip.fopen-wrapper; simpara -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /en/reference/apache/functions apache-request-headers.xml
philip Thu Jul 11 17:29:34 2002 EDT Added files: /phpdoc/en/reference/apache/functions apache-request-headers.xml Log: As of PHP 4.3.0 this is the new name for getallheaders(). Afterwhich, getallheaders() is an alias. Index: phpdoc/en/reference/apache/functions/apache-request-headers.xml +++ phpdoc/en/reference/apache/functions/apache-request-headers.xml ?xml version=1.0 encoding=iso-8859-1? !-- $Revision: 1.1 $ -- !-- splitted from ./en/functions/apache.xml, last change in rev 1.2 -- refentry id=function.apache-request-headers refnamediv refnameapache_request_headers/refname refpurposeFetch all HTTP request headers/refpurpose /refnamediv refsect1 titleDescription/title methodsynopsis typearray/typemethodnameapache_request_headers/methodname void/ /methodsynopsis para functionapache_request_headers/function returns an associative array of all the HTTP headers in the current request. This is only supported when PHP runs as an productnameApache/productname module. /para note para Prior to PHP 4.3.0, functionapache_request_headers/function was called functiongetallheaders/function. After PHP 4.3.0, functiongetallheaders/function is an alias for functionapache_request_headers/function. /para /note para example titlefunctionapache_request_headers/function Example/title programlisting role=php ![CDATA[ ?php $headers = apache_request_headers(); foreach ($headers as $header = $value) { echo $header: $value br /\n; } ? ]] /programlisting /example /para para note para You can also get at the value of the common CGI variables by reading them from the environment, which works whether or not you are using PHP as an productnameApache/productname module. Use functionphpinfo/function to see a list of all of the available link linkend=language.variables.predefinedenvironment variables/link. /para /note /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 Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /en/reference/apache/functions getallheaders.xml
philip Thu Jul 11 17:34:24 2002 EDT Modified files: /phpdoc/en/reference/apache/functions getallheaders.xml Log: Moved documentation to apache_request_headers(). This is now an alias for that function, as of PHP 4.3.0 Index: phpdoc/en/reference/apache/functions/getallheaders.xml diff -u phpdoc/en/reference/apache/functions/getallheaders.xml:1.2 phpdoc/en/reference/apache/functions/getallheaders.xml:1.3 --- phpdoc/en/reference/apache/functions/getallheaders.xml:1.2 Wed Apr 17 02:36:20 2002 +++ phpdoc/en/reference/apache/functions/getallheaders.xml Thu Jul 11 17:34:24 +2002 -1,5 +1,5 ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.2 $ -- +!-- $Revision: 1.3 $ -- !-- splitted from ./en/functions/apache.xml, last change in rev 1.2 -- refentry id=function.getallheaders refnamediv -13,42 +13,14 void/ /methodsynopsis para - This function returns an associative array of all the HTTP - headers in the current request. + functiongetallheaders/function is an alias for + functionapache_request_headers/function. It will return an + associative array of all the HTTP headers in the current request. + Please read the functionapache_request_headers/function + documentation for more information on how this function works. /para para - note - para - You can also get at the value of the common CGI variables by - reading them from the environment, which works whether or not - you are using PHP as an Apache module. Use - functionphpinfo/function to see a list of all of the - environment variables defined this way. - /para - /note -/para -para - example - titlefunctiongetallheaders/function Example/title - programlisting role=php -![CDATA[ -$headers = getallheaders(); -while (list ($header, $value) = each ($headers)) { -echo $header: $valuebr /\n; -} -]] - /programlisting - /example -/para -para - This example will display all the request headers for the current - request. - note - simpara - functiongetallheaders/function is currently only supported - when PHP runs as an productnameApache/productname module. - /simpara - /note + See also functionapache_request_headers/function. /para /refsect1 /refentry -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /en/reference/apache/functions getallheaders.xml
philip Thu Jul 11 17:42:57 2002 EDT Modified files: /phpdoc/en/reference/apache/functions getallheaders.xml Log: note: This became an alias in PHP 4.3.0 Index: phpdoc/en/reference/apache/functions/getallheaders.xml diff -u phpdoc/en/reference/apache/functions/getallheaders.xml:1.3 phpdoc/en/reference/apache/functions/getallheaders.xml:1.4 --- phpdoc/en/reference/apache/functions/getallheaders.xml:1.3 Thu Jul 11 17:34:24 2002 +++ phpdoc/en/reference/apache/functions/getallheaders.xml Thu Jul 11 17:42:57 +2002 -1,5 +1,5 ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.3 $ -- +!-- $Revision: 1.4 $ -- !-- splitted from ./en/functions/apache.xml, last change in rev 1.2 -- refentry id=function.getallheaders refnamediv -19,6 +19,15 Please read the functionapache_request_headers/function documentation for more information on how this function works. /para +note + para + In PHP 4.3.0, functiongetallheaders/function became an + alias for functionapache_request_headers/function. + Essentially, it was renamed. This is because this function + only works when PHP is compiled as an + productnameApache/productname Module. + /para +/note para See also functionapache_request_headers/function. /para -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] Bug #18286: UPLOAD_ERROR_X constants differ from documentation
From: [EMAIL PROTECTED] Operating system: Linux 2.4.x PHP version: 4.2.1 PHP Bug Type: Documentation problem Bug description: UPLOAD_ERROR_X constants differ from documentation I am using PHP on Apache 1.3.26. When attempting to use the UPLOAD_ERROR_A through UPLOAD_ERROR_E constants, they return the following: UPLOAD_ERROR_A returns the string UPLOAD_ERROR_A UPLOAD_ERROR_B returns the string UPLOAD_ERROR_B UPLOAD_ERROR_C returns the string UPLOAD_ERROR_C UPLOAD_ERROR_D returns the string UPLOAD_ERROR_D UPLOAD_ERROR_E returns the string UPLOAD_ERROR_E This is what *should* happen according to documentation: UPLOAD_ERROR_A should return the value 1 UPLOAD_ERROR_B should return the value 2 UPLOAD_ERROR_C should return the value 3 UPLOAD_ERROR_D should return the value 4 UPLOAD_ERROR_E should return the value 5 This is reproducible using ?php echo UPLOAD_ERROR_A ? (Please note the lack of quotes before marking this as bogus). -- Edit bug report at http://bugs.php.net/?id=18286edit=1 -- Fixed in CVS:http://bugs.php.net/fix.php?id=18286r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=18286r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18286r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18286r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18286r=support Expected behavior: http://bugs.php.net/fix.php?id=18286r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18286r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18286r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=18286r=globals -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] Bug #18287: setcookie() return value not documented
From: [EMAIL PROTECTED] Operating system: n/a PHP version: 4.2.1 PHP Bug Type: Documentation problem Bug description: setcookie() return value not documented The documentation for setcookie() does not specify what a successful return value should be (0 or 1). -- Edit bug report at http://bugs.php.net/?id=18287edit=1 -- Fixed in CVS:http://bugs.php.net/fix.php?id=18287r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=18287r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18287r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18287r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18287r=support Expected behavior: http://bugs.php.net/fix.php?id=18287r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18287r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18287r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=18287r=globals -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] Bug #18286 Updated: UPLOAD_ERROR_X constants differ from documentation
ID: 18286 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Documentation problem Operating System: Linux 2.4.x -PHP Version: 4.2.1 +PHP Version: 4.3.0 New Comment: The documentation at features.file-upload.errors is a little unclear on this matter. Are these suppose to be PHP constants too? See also: * http://marc.theaimsgroup.com/?l=php-devm=101246726632633 * http://lxr.php.net/source/php4/main/rfc1867.c Btw, they return those strings because they are undefined. print ANYTHING; will do that and throw an error of level E_NOTICE. Previous Comments: [2002-07-11 17:22:27] [EMAIL PROTECTED] I am using PHP on Apache 1.3.26. When attempting to use the UPLOAD_ERROR_A through UPLOAD_ERROR_E constants, they return the following: UPLOAD_ERROR_A returns the string UPLOAD_ERROR_A UPLOAD_ERROR_B returns the string UPLOAD_ERROR_B UPLOAD_ERROR_C returns the string UPLOAD_ERROR_C UPLOAD_ERROR_D returns the string UPLOAD_ERROR_D UPLOAD_ERROR_E returns the string UPLOAD_ERROR_E This is what *should* happen according to documentation: UPLOAD_ERROR_A should return the value 1 UPLOAD_ERROR_B should return the value 2 UPLOAD_ERROR_C should return the value 3 UPLOAD_ERROR_D should return the value 4 UPLOAD_ERROR_E should return the value 5 This is reproducible using ?php echo UPLOAD_ERROR_A ? (Please note the lack of quotes before marking this as bogus). -- Edit this bug report at http://bugs.php.net/?id=18286edit=1 -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] Bug #18287 Updated: setcookie() return value not documented
ID: 18287 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: Documentation problem Operating System: n/a PHP Version: 4.2.1 New Comment: I get boolean TRUE on success, and boolean FALSE on failure. Of course failure does not mean the cookie wasn't set, it means the function failed. Like if header info was already sent. Docs say int is returned, should it be boolean instead? Previous Comments: [2002-07-11 17:26:45] [EMAIL PROTECTED] The documentation for setcookie() does not specify what a successful return value should be (0 or 1). -- Edit this bug report at http://bugs.php.net/?id=18287edit=1 -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /en/language types.xml
imajes Thu Jul 11 19:37:01 2002 EDT Modified files: /phpdoc/en/language types.xml Log: heredoc is one word. Index: phpdoc/en/language/types.xml diff -u phpdoc/en/language/types.xml:1.84 phpdoc/en/language/types.xml:1.85 --- phpdoc/en/language/types.xml:1.84 Mon Jun 10 05:15:36 2002 +++ phpdoc/en/language/types.xmlThu Jul 11 19:37:00 2002 -1,5 +1,5 ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.84 $ -- +!-- $Revision: 1.85 $ -- chapter id=language.types titleTypes/title -681,7 +681,7 sect3 id=language.types.string.syntax.heredoc titleHeredoc/title simpara - Another way to delimit strings is by using here doc syntax + Another way to delimit strings is by using heredoc syntax (lt;lt;lt;). One should provide an identifier after literallt;lt;lt;/literal, then the string, and then the same identifier to close the quotation. -723,14 +723,14 /warning para - Here doc text behaves just like a double-quoted string, without + Heredoc text behaves just like a double-quoted string, without the double-quotes. This means that you do not need to escape quotes in your here docs, but you can still use the escape codes listed above. Variables are expanded, but the same care must be taken when expressing complex variables inside a here doc as with strings. example - titleHere doc string quoting example/title + titleHeredoc string quoting example/title programlisting role=php ![CDATA[ ?php -769,7 +769,7 note para - Here doc support was added in PHP 4. + Heredoc support was added in PHP 4. /para /note -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] Bug #18287 Updated: setcookie() return value not documented
ID: 18287 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Feedback +Status: Open Bug Type: Documentation problem Operating System: n/a PHP Version: 4.2.1 New Comment: You are correct, it is indeed a boolean. I was just doing a print on the return value before. Perhaps changing that and including a sentence or two about the condition you mentioned too. Many people might assume that the cookie wasn't sent if they get false returned. Thanks much. Previous Comments: [2002-07-11 18:31:00] [EMAIL PROTECTED] I get boolean TRUE on success, and boolean FALSE on failure. Of course failure does not mean the cookie wasn't set, it means the function failed. Like if header info was already sent. Docs say int is returned, should it be boolean instead? [2002-07-11 17:26:45] [EMAIL PROTECTED] The documentation for setcookie() does not specify what a successful return value should be (0 or 1). -- Edit this bug report at http://bugs.php.net/?id=18287edit=1 -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] Bug #18286 Updated: UPLOAD_ERROR_X constants differ from documentation
ID: 18286 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Documentation problem Operating System: Linux 2.4.x PHP Version: 4.3.0 New Comment: I see, they aren't constants at all, but error messages caught on E_NOTICE. The way they are listed on the features.file-upload.errors page (since it lists error numbers in reference to them) in association with the value of $_FILES[userfile][error] implies that they are constants. It would be really handy if $_FILES[userfile][error] and $userfile_error were mentioned in the features.file-upload section along with the relevant error numbers. Previous Comments: [2002-07-11 18:10:16] [EMAIL PROTECTED] The documentation at features.file-upload.errors is a little unclear on this matter. Are these suppose to be PHP constants too? See also: * http://marc.theaimsgroup.com/?l=php-devm=101246726632633 * http://lxr.php.net/source/php4/main/rfc1867.c Btw, they return those strings because they are undefined. print ANYTHING; will do that and throw an error of level E_NOTICE. [2002-07-11 17:22:27] [EMAIL PROTECTED] I am using PHP on Apache 1.3.26. When attempting to use the UPLOAD_ERROR_A through UPLOAD_ERROR_E constants, they return the following: UPLOAD_ERROR_A returns the string UPLOAD_ERROR_A UPLOAD_ERROR_B returns the string UPLOAD_ERROR_B UPLOAD_ERROR_C returns the string UPLOAD_ERROR_C UPLOAD_ERROR_D returns the string UPLOAD_ERROR_D UPLOAD_ERROR_E returns the string UPLOAD_ERROR_E This is what *should* happen according to documentation: UPLOAD_ERROR_A should return the value 1 UPLOAD_ERROR_B should return the value 2 UPLOAD_ERROR_C should return the value 3 UPLOAD_ERROR_D should return the value 4 UPLOAD_ERROR_E should return the value 5 This is reproducible using ?php echo UPLOAD_ERROR_A ? (Please note the lack of quotes before marking this as bogus). -- Edit this bug report at http://bugs.php.net/?id=18286edit=1 -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] Bug #18286 Updated: UPLOAD_ERROR_X constants differ from documentation
ID: 18286 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Documentation problem Operating System: Linux 2.4.x PHP Version: 4.3.0 New Comment: These constants exist as of today (in CVS): value - constant name - description 0 - UPLOAD_ERR_OK - No errors, upload succesful 1 - UPLOAD_ERR_INI_SIZE - Filesize exceeded upload_max_filesize 2 - UPLOAD_ERR_FORM_SIZE - Filesize exceeded MAX_FILE_SIZE set in the form 3 - UPLOAD_ERR_PARTIAL - File uploaded partially. 4 - UPLOAD_ERR_NO_FILE - No file uploaded. If those names are not good, feel free to come up with better ones. :) Previous Comments: [2002-07-12 00:45:30] [EMAIL PROTECTED] I see, they aren't constants at all, but error messages caught on E_NOTICE. The way they are listed on the features.file-upload.errors page (since it lists error numbers in reference to them) in association with the value of $_FILES[userfile][error] implies that they are constants. It would be really handy if $_FILES[userfile][error] and $userfile_error were mentioned in the features.file-upload section along with the relevant error numbers. [2002-07-11 18:10:16] [EMAIL PROTECTED] The documentation at features.file-upload.errors is a little unclear on this matter. Are these suppose to be PHP constants too? See also: * http://marc.theaimsgroup.com/?l=php-devm=101246726632633 * http://lxr.php.net/source/php4/main/rfc1867.c Btw, they return those strings because they are undefined. print ANYTHING; will do that and throw an error of level E_NOTICE. [2002-07-11 17:22:27] [EMAIL PROTECTED] I am using PHP on Apache 1.3.26. When attempting to use the UPLOAD_ERROR_A through UPLOAD_ERROR_E constants, they return the following: UPLOAD_ERROR_A returns the string UPLOAD_ERROR_A UPLOAD_ERROR_B returns the string UPLOAD_ERROR_B UPLOAD_ERROR_C returns the string UPLOAD_ERROR_C UPLOAD_ERROR_D returns the string UPLOAD_ERROR_D UPLOAD_ERROR_E returns the string UPLOAD_ERROR_E This is what *should* happen according to documentation: UPLOAD_ERROR_A should return the value 1 UPLOAD_ERROR_B should return the value 2 UPLOAD_ERROR_C should return the value 3 UPLOAD_ERROR_D should return the value 4 UPLOAD_ERROR_E should return the value 5 This is reproducible using ?php echo UPLOAD_ERROR_A ? (Please note the lack of quotes before marking this as bogus). -- Edit this bug report at http://bugs.php.net/?id=18286edit=1 -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php