Re: [PHP-DOC] cvs: livedocs / livedoc_funcs.php mkindex.php
Ilia Alshanetsky wrote: iliaa Fri Jun 17 18:10:18 2005 EDT Modified files: /livedocs livedoc_funcs.php mkindex.php Log: Added some warnings on common errors. Fixed bug #33358 (Use TITLEABBREV in table of contents). Ilia, It may not have been this one, but one of your patches, tonight, broke the way titles or entities are captured.. See http://livedocs.phpdoc.info/index.php?l=en&q=manual Notice all of the "Title [?]" I checked other livedocs (including yours) -- it's not just me. S
[PHP-DOC] cvs: phpdoc /en/reference/domxml/functions DomXsltStylesheet-process.xml DomXsltStylesheet-result-dump-file.xml DomXsltStylesheet-result-dump-mem.xml domxml-xslt-stylesheet-doc.xml domxml-xs
didou Sat Jun 18 00:00:14 2005 EDT Added files: /phpdoc/en/reference/domxml/functions domxml-xslt-version.xml Modified files: /phpdoc/en/reference/domxml/functions DomXsltStylesheet-process.xml DomXsltStylesheet-result-dump-file.xml DomXsltStylesheet-result-dump-mem.xml domxml-xslt-stylesheet-doc.xml domxml-xslt-stylesheet-file.xml domxml-xslt-stylesheet.xml Log: Document ext/domxml XSLT related functions and add another one http://cvs.php.net/diff.php/phpdoc/en/reference/domxml/functions/DomXsltStylesheet-process.xml?r1=1.8&r2=1.9&ty=u Index: phpdoc/en/reference/domxml/functions/DomXsltStylesheet-process.xml diff -u phpdoc/en/reference/domxml/functions/DomXsltStylesheet-process.xml:1.8 phpdoc/en/reference/domxml/functions/DomXsltStylesheet-process.xml:1.9 --- phpdoc/en/reference/domxml/functions/DomXsltStylesheet-process.xml:1.8 Sun Jun 12 00:17:52 2005 +++ phpdoc/en/reference/domxml/functions/DomXsltStylesheet-process.xml Sat Jun 18 00:00:14 2005 @@ -1,32 +1,126 @@ - - - -DomXsltStylesheet->process - - Applies the XSLT-Transformation on a DomDocument Object - - - -&reftitle.description; - - domdocumentDomXsltStylesheet->process - domdocumentDomDocument - arrayxslt_parameters - boolparam_is_xpath - - -&warn.undocumented.func; - - - - - See also domxml_xslt_stylesheet, - domxml_xslt_stylesheet_file, and - domxml_xslt_stylesheet_doc - - - + + + + DomXsltStylesheet->process() + + Applies the XSLT-Transformation on a DomDocument Object + + + + &reftitle.description; + + DomXsltStylesheet + +DomDocumentprocess + DomDocumentxml_doc +arrayxslt_params +boolis_xpath_param +stringprofile_filename + + + + Applies an XSLT Transformation on the given + DomDocument object. + + + + &reftitle.parameters; + + + + xml_doc + + + The XML document being transformed, as a + DomDocument object. + + + + + xslt_params + + + An associative array that takes pairs of parameter names and values. + + + + + is_xpath_param + + + If set to &false; the values of the xslt_params + will be quoted. This is the default behavior. It allows you to pass + the values as PHP strings. + + + +If your strings contains both single and double quotes, you must take +care of quoting all the values by yourself and set this parameter to +&true;. + + + + + + profile_filename + + + Set this to the path of a filename, if you want profiling information. + + + + + + + + &reftitle.returnvalues; + + Returns the result of the processing, as a + DomDocument object. + + + + Migrating to PHP 5 + + Use and + . + + + + &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + 4.3.0 + +The profile_filename parameter was added. + + + + + + + + + &reftitle.seealso; + + +domxml_xslt_stylesheet +domxml_xslt_stylesheet_file +domxml_xslt_stylesheet_doc + + + + - - -DomXsltStylesheet->result_dump_file - - Dumps the result from a XSLT-Transformation into a file - - - -&reftitle.description; - - stringDomXsltStylesheet->result_dump_file - domdocumentDomDocument - stringfilename - - - - - This function is only available since PHP 4.3 - - - Since DomXsltStylesheet->process() always returns a well-formed XML DomDocument, - no matter what output method was declared in and similar - attributes/elements, it's of not much use, if you want to output HTML 4 or text data. - This function on the contrary honors - and other output control directives. See the example for instruction of how to use it. - - - - Saving the result of a XSLT transformation in a file - + + + + DomXsltStylesheet->result_dump_file + + Dumps the result from a XSLT-Transformation into a file + + + + &reftitle.description; + + DomXsltStylesheet + +stringresult_dump_file + DomDocumentxmldoc + stringfilename + + + + Since always returns a + well-formed XML DomDocument, no matter what output method was declared in +and similar attributes/elements, it's of not much use, + if you want to output HTML 4 or text data. + + + This function on the contrary ho
[PHP-DOC] #33390 [Csd->Opn]: user notes need to be escaped
ID: 33390 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Closed +Status: Open Bug Type:Livedocs problem PHP Version: Irrelevant New Comment: Still broken, see the first note here: http://didou.keliglia.com/manuals/php/index.php?l=en&q=function.domxml-xslt-stylesheet The problem is that the regexp doesn't match anything after the "?>" sequence in the XSL header. A fix would be to remove the preg_replace_callback() call and directly call highlight_php_code() if "http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. [2005-06-18 03:15:46] [EMAIL PROTECTED] Description: Notes are not escaped : http://livedocs.phpdoc.info/index.php?l=en&q=function.domxml-xslt-stylesheet -- Edit this bug report at http://bugs.php.net/?id=33390&edit=1
[PHP-DOC] #33390 [Opn->Csd]: user notes need to be escaped
ID: 33390 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Closed Bug Type:Livedocs problem PHP Version: Irrelevant New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: [2005-06-18 03:15:46] [EMAIL PROTECTED] Description: Notes are not escaped : http://livedocs.phpdoc.info/index.php?l=en&q=function.domxml-xslt-stylesheet -- Edit this bug report at http://bugs.php.net/?id=33390&edit=1
[PHP-DOC] cvs: livedocs / style_mapping.php
iliaa Fri Jun 17 22:16:07 2005 EDT Modified files: /livedocs style_mapping.php Log: Fixed bug #33390 http://cvs.php.net/diff.php/livedocs/style_mapping.php?r1=1.25&r2=1.26&ty=u Index: livedocs/style_mapping.php diff -u livedocs/style_mapping.php:1.25 livedocs/style_mapping.php:1.26 --- livedocs/style_mapping.php:1.25 Wed Feb 9 17:37:51 2005 +++ livedocs/style_mapping.php Fri Jun 17 22:16:06 2005 @@ -18,7 +18,7 @@ // | Helper functions for formatting elements | // +--+ // -// $Id: style_mapping.php,v 1.25 2005/02/09 22:37:51 iliaa Exp $ +// $Id: style_mapping.php,v 1.26 2005/06/18 02:16:06 iliaa Exp $ // almost XPATH.. ;-) $map = array( @@ -346,7 +346,7 @@ $content = highlight_php_code($content); break; case 'note': - $content = preg_replace_callback('!(\<(\?|\?php).+\?\>)!msU', 'highlight_php_code', $content); + $content = preg_replace_callback('!(\<(\?|\?php).+?\?\>)!msU', 'highlight_php_code', $content); $node->attributes['role'] = 'php'; break;
[PHP-DOC] #30440 [Ana->Csd]: Nested entities cause invalid XML
ID: 30440 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Analyzed +Status: Closed Bug Type: Livedocs problem Operating System: n/a PHP Version: Irrelevant Assigned To: iliaa New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: [2005-04-20 20:37:16] [EMAIL PROTECTED] I applied the patch and with French doc there are a lot of accents... (é à ...) I got only a Warning (the page is displayed but crash only at the special character) : XML: 1:33 Invalid character Line: 1 is pg_affected_rows - Retourne le nombre de lignes affectées pg_affected_rows - Retourne le nombre de lignes affectées pg_cancel_query - Annule une requête asynchrone ... It seems that it is only for displaying functions at the end of a reference.xml file Example : fr/ref.pgsql.html [2004-10-15 17:54:58] [EMAIL PROTECTED] Confirmed that this patch fixes this problem. Could someone with the necessary karma please patch & commit? Thanks, S [2004-10-15 17:44:09] [EMAIL PROTECTED] That should be fixed with one of my patches: http://livedocs.aborla.net/patch.php?id=entities [2004-10-15 06:56:20] [EMAIL PROTECTED] Description: When an entity contains a nested (special character) entity, the handler is not called properly, and this can result in malformed XML. I worked on this for about 30 mins, tonight, and didn't get very far, so no patch, yet. Reproduce code: --- http://livedocs.phpdoc.info/ref.regex Expected result: http://www.tin.org/bin/man.cgi?section=7&topic=regex";> Actual result: -- http://www.tin.org/bin/man.cgi?section=7topic=regex"> -- Edit this bug report at http://bugs.php.net/?id=30440&edit=1
[PHP-DOC] #33037 [Opn->Csd]: English : Example Bad output
ID: 33037 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Closed Bug Type:Livedocs problem PHP Version: Irrelevant Previous Comments: [2005-05-26 19:25:32] [EMAIL PROTECTED] leave it open for further investigation. [2005-05-24 01:00:05] phpdoc at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". [2005-05-17 00:56:40] [EMAIL PROTECTED] I'm already running the patch mentionned in #30440 http://livedocs.aborla.net/patch.php?id=entities Moreover, i wrote a comment into this bug. I applied it a long time ago and, if I remember, one of the pattern didn't match, so Ive corrected all files by hand. These lines were removed : -$GLOBALS['special'] = array('gt' => 1,'lt' => 1,'quot' => 1,'amp' => 1); - function handle_include($node) { global $current_page; $ref = $node->attributes['ref']; - /* Special HTML entities */ - if (isset($GLOBALS['special'][$ref])) { - return '&' . $ref . ';'; - } - [2005-05-16 16:28:46] [EMAIL PROTECTED] Its a livedocs problem. Could you please try my ancient patch mentioned in #30440 ? [2005-05-16 03:52:27] [EMAIL PROTECTED] Description: reference/strings/functions/htmlspecialchars-decode.html Ok, look at the example in livedocs what it outputs..., the output is the same... (check example too). I don't really know if it is a doc bug or a livedocs bug. Feel free to redirect this bug to Livedocs... Perhaps the output will be great on php.net, i don't know ?! Expected result: this -> "'; echo htmlspecialchars_decode($str); // notez ici que les guillemets ne sont pas convertis echo htmlspecialchars_decode($str, ENT_NOQUOTES); ?> this -> " this -> " Actual result: -- this -> "'; echo htmlspecialchars_decode($str); // notez ici que les guillemets ne sont pas convertis echo htmlspecialchars_decode($str, ENT_NOQUOTES); ?> this -> " this -> " -- Edit this bug report at http://bugs.php.net/?id=33037&edit=1
[PHP-DOC] cvs: livedocs / livedoc_funcs.php
iliaa Fri Jun 17 22:03:20 2005 EDT Modified files: /livedocs livedoc_funcs.php Log: Fixed bug #30440 & #33037 http://cvs.php.net/diff.php/livedocs/livedoc_funcs.php?r1=1.27&r2=1.28&ty=u Index: livedocs/livedoc_funcs.php diff -u livedocs/livedoc_funcs.php:1.27 livedocs/livedoc_funcs.php:1.28 --- livedocs/livedoc_funcs.php:1.27 Fri Jun 17 18:10:16 2005 +++ livedocs/livedoc_funcs.php Fri Jun 17 22:03:19 2005 @@ -278,8 +278,8 @@ $data = preg_replace('@(<\\?xml.*\\?>)@U', '\\1', $data) . ''; } } else { - $data = preg_replace('/&([a-zA-Z0-9._-]+);/sm', '', $data); - } + $data = preg_replace('/&([a-zA-Z0-9._-]{5,});/sm', '', $data); + } $page = new DocBookToHTML($data);
[PHP-DOC] #33390 [NEW]: user notes need to be escaped
From: [EMAIL PROTECTED] Operating system: PHP version: Irrelevant PHP Bug Type: Livedocs problem Bug description: user notes need to be escaped Description: Notes are not escaped : http://livedocs.phpdoc.info/index.php?l=en&q=function.domxml-xslt-stylesheet -- Edit bug report at http://bugs.php.net/?id=33390&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33390&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33390&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33390&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=33390&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=33390&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33390&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33390&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33390&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33390&r=support Expected behavior: http://bugs.php.net/fix.php?id=33390&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33390&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33390&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=33390&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33390&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=33390&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33390&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33390&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33390&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33390&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33390&r=mysqlcfg
[PHP-DOC] cvs: phpdoc /en/reference/domxml/functions domxml-new-doc.xml domxml-open-file.xml domxml-open-mem.xml domxml-version.xml domxml-xmltree.xml domxml-xslt-stylesheet-doc.xml domxml-xslt-styles
didou Fri Jun 17 19:35:55 2005 EDT Modified files: /phpdoc/en/reference/domxml/functions domxml-new-doc.xml domxml-open-file.xml domxml-open-mem.xml domxml-version.xml domxml-xmltree.xml domxml-xslt-stylesheet-doc.xml domxml-xslt-stylesheet-file.xml domxml-xslt-stylesheet.xml Log: Switch to the new format http://cvs.php.net/diff.php/phpdoc/en/reference/domxml/functions/domxml-new-doc.xml?r1=1.8&r2=1.9&ty=u Index: phpdoc/en/reference/domxml/functions/domxml-new-doc.xml diff -u phpdoc/en/reference/domxml/functions/domxml-new-doc.xml:1.8 phpdoc/en/reference/domxml/functions/domxml-new-doc.xml:1.9 --- phpdoc/en/reference/domxml/functions/domxml-new-doc.xml:1.8 Fri Jun 17 19:35:37 2005 +++ phpdoc/en/reference/domxml/functions/domxml-new-doc.xml Fri Jun 17 19:35:55 2005 @@ -1,5 +1,5 @@ - + domxml_new_doc @@ -7,14 +7,35 @@ Creates new empty XML document - + &reftitle.description; - domdocumentdomxml_new_doc + DomDocumentdomxml_new_doc stringversion - Creates a new dom document from scratch and returns it. + Creates a new Dom document from scratch and returns it. + + + + &reftitle.parameters; + + + + version + + + The XML version number of the document. + + + + + + + + &reftitle.returnvalues; + + Returns a new DomDocument instance. http://cvs.php.net/diff.php/phpdoc/en/reference/domxml/functions/domxml-open-file.xml?r1=1.11&r2=1.12&ty=u Index: phpdoc/en/reference/domxml/functions/domxml-open-file.xml diff -u phpdoc/en/reference/domxml/functions/domxml-open-file.xml:1.11 phpdoc/en/reference/domxml/functions/domxml-open-file.xml:1.12 --- phpdoc/en/reference/domxml/functions/domxml-open-file.xml:1.11 Fri Jun 17 19:35:37 2005 +++ phpdoc/en/reference/domxml/functions/domxml-open-file.xml Fri Jun 17 19:35:55 2005 @@ -1,42 +1,74 @@ - + domxml_open_file - Creates a DOM object from XML file + Creates a DOM object from an XML file - + &reftitle.description; - domdocumentdomxml_open_file + DomDocumentdomxml_open_file stringfilename intmode arrayerror - The function parses the XML document in the file named - filename and returns an object of class - "Dom document", having the properties as listed above. - The file is accessed read-only. - - - Optional parameter mode can be used to change the - behavior of this function. It was added in PHP 4.3.0. You can use one of - the following constants for it: - DOMXML_LOAD_PARSING (default), - DOMXML_LOAD_VALIDATING or - DOMXML_LOAD_RECOVERING. - You can add to it also DOMXML_LOAD_DONT_KEEP_BLANKS, - DOMXML_LOAD_SUBSTITUTE_ENTITIES and - DOMXML_LOAD_COMPLETE_ATTRS by - bitwise or. - - - If the error parameter is used, it will contain the - error messages. error must be passed in by - reference. The parameter was - added in PHP 4.3.0. + The function parses the XML document in the given file. + + + &reftitle.parameters; + + + + filename + + + The path to the XML file. The file is accessed in read-only mode. + + + + + mode + + + This optional parameter can be used to change the behavior of this + function. + + + You can use one of the following constants for it: + DOMXML_LOAD_PARSING (default), + DOMXML_LOAD_VALIDATING or + DOMXML_LOAD_RECOVERING. + You can add to it also DOMXML_LOAD_DONT_KEEP_BLANKS, + DOMXML_LOAD_SUBSTITUTE_ENTITIES and + DOMXML_LOAD_COMPLETE_ATTRS by + bitwise or. + + + + + error + + + If used, it will contain the error messages. + error must be passed in by reference. + + + + + + + + &reftitle.returnvalues; + + Returns a DomDocument instance of the given file. + + + + &reftitle.examples; Opening an XML document from a file @@ -55,9 +87,38 @@ + + + &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + 4.3.0 + +The parameters mode and +error were added. + + + + + + + + + &reftitle.seealso; - See also domxml_open_mem, and - domxml_new_doc. + +domxml_open_mem +domxml_new_doc + http://cvs.php.net/diff.php/phpdoc/en/reference/domxml/functions/domxml-open-mem.xml?r1=1.10&r2=1.11&ty=u Index: phpdoc/en/reference/domxml/functions/domxml-open-mem.xml diff -u phpd
[PHP-DOC] cvs: phpdoc /en/reference/domxml/functions domxml-new-doc.xml domxml-open-file.xml domxml-open-mem.xml domxml-version.xml domxml-xmltree.xml domxml-xslt-stylesheet-doc.xml domxml-xslt-styles
didou Fri Jun 17 19:35:38 2005 EDT Modified files: /phpdoc/en/reference/domxml/functions domxml-new-doc.xml domxml-open-file.xml domxml-open-mem.xml domxml-version.xml domxml-xmltree.xml domxml-xslt-stylesheet-doc.xml domxml-xslt-stylesheet-file.xml domxml-xslt-stylesheet.xml Log: ws http://cvs.php.net/diff.php/phpdoc/en/reference/domxml/functions/domxml-new-doc.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc/en/reference/domxml/functions/domxml-new-doc.xml diff -u phpdoc/en/reference/domxml/functions/domxml-new-doc.xml:1.7 phpdoc/en/reference/domxml/functions/domxml-new-doc.xml:1.8 --- phpdoc/en/reference/domxml/functions/domxml-new-doc.xml:1.7 Sun Jun 12 00:17:52 2005 +++ phpdoc/en/reference/domxml/functions/domxml-new-doc.xml Fri Jun 17 19:35:37 2005 @@ -1,24 +1,23 @@ - - - - -domxml_new_doc - - Creates new empty XML document - - - -&reftitle.description; - - domdocumentdomxml_new_doc - stringversion - - - Creates a new dom document from scratch and returns it. - - - + + + + domxml_new_doc + + Creates new empty XML document + + + + &reftitle.description; + + domdocumentdomxml_new_doc + stringversion + + + Creates a new dom document from scratch and returns it. + + + - - - -domxml_open_file -Creates a DOM object from XML file - - -&reftitle.description; - - domdocumentdomxml_open_file - stringfilename - intmode - arrayerror - - - The function parses the XML document in the file named - filename and returns an object of class - "Dom document", having the properties as listed above. - The file is accessed read-only. - - - Optional parameter mode can be used to change the - behavior of this function. It was added in PHP 4.3.0. You can use one of - the following constants for it: - DOMXML_LOAD_PARSING (default), - DOMXML_LOAD_VALIDATING or - DOMXML_LOAD_RECOVERING. - You can add to it also DOMXML_LOAD_DONT_KEEP_BLANKS, - DOMXML_LOAD_SUBSTITUTE_ENTITIES and - DOMXML_LOAD_COMPLETE_ATTRS by - bitwise or. - - - If the error parameter is used, it will contain the - error messages. error must be passed in by - reference. The parameter was - added in PHP 4.3.0. - - - - Opening an XML document from a file - + + + + domxml_open_file + Creates a DOM object from XML file + + + &reftitle.description; + + domdocumentdomxml_open_file + stringfilename + intmode + arrayerror + + + The function parses the XML document in the file named + filename and returns an object of class + "Dom document", having the properties as listed above. + The file is accessed read-only. + + + Optional parameter mode can be used to change the + behavior of this function. It was added in PHP 4.3.0. You can use one of + the following constants for it: + DOMXML_LOAD_PARSING (default), + DOMXML_LOAD_VALIDATING or + DOMXML_LOAD_RECOVERING. + You can add to it also DOMXML_LOAD_DONT_KEEP_BLANKS, + DOMXML_LOAD_SUBSTITUTE_ENTITIES and + DOMXML_LOAD_COMPLETE_ATTRS by + bitwise or. + + + If the error parameter is used, it will contain the + error messages. error must be passed in by + reference. The parameter was + added in PHP 4.3.0. + + + +Opening an XML document from a file + - - - - - See also domxml_open_mem, and - domxml_new_doc. - - - + + + + + See also domxml_open_mem, and + domxml_new_doc. + + + - - - -domxml_open_mem -Creates a DOM object of an XML document - - -&reftitle.description; - - domdocumentdomxml_open_mem - stringstr - intmode - arrayerror - - - The function parses the XML document in - str and returns an object of class "Dom - document", having the properties as listed above. This function, - domxml_open_file or domxml_new_doc - must be called before any other function calls. - - - Optional parameter mode can be used to change the - behavior of this function. It was added in PHP 4.3.0. See - domxml_open_file for possible values. - - - If the error parameter is used, it will contain the - error messages. error must be passed in by - reference. The parameter was - added in PHP 4.3.0. - - - - Opening an XML document in a string - + + + + domxml_open_mem + Creates a DOM object of an XML document + + + &reftitle.description;
[PHP-DOC] cvs: phpdoc /en/reference/oggvorbis reference.xml
betzFri Jun 17 19:22:26 2005 EDT Modified files: /phpdoc/en/reference/oggvorbis reference.xml Log: enable forgotten files http://cvs.php.net/diff.php/phpdoc/en/reference/oggvorbis/reference.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc/en/reference/oggvorbis/reference.xml diff -u phpdoc/en/reference/oggvorbis/reference.xml:1.1 phpdoc/en/reference/oggvorbis/reference.xml:1.2 --- phpdoc/en/reference/oggvorbis/reference.xml:1.1 Fri Jun 17 19:05:14 2005 +++ phpdoc/en/reference/oggvorbis/reference.xml Fri Jun 17 19:22:25 2005 @@ -1,5 +1,5 @@ - + oggvorbis OGG/Vorbis @@ -32,13 +32,13 @@ &no.config; - +
[PHP-DOC] cvs: phpdoc /en/reference/oggvorbis configure.xml constants.xml contexts.xml reference.xml
betzFri Jun 17 19:05:15 2005 EDT Added files: /phpdoc/en/reference/oggvorbis configure.xml constants.xml contexts.xml reference.xml Log: move oggvorbis from peardoc http://cvs.php.net/co.php/phpdoc/en/reference/oggvorbis/configure.xml?r=1.1&p=1 Index: phpdoc/en/reference/oggvorbis/configure.xml +++ phpdoc/en/reference/oggvorbis/configure.xml &reftitle.install; oggvorbis is installed through the usual PECL package installation process. $ pear install Net_Gopher Copy the resulting oggvorbis.so to an appropriate location and add extension=oggvorbis.so to your &php.ini; file or load it dynamically in your PHP script using dl("oggvorbis.so"); http://cvs.php.net/co.php/phpdoc/en/reference/oggvorbis/constants.xml?r=1.1&p=1 Index: phpdoc/en/reference/oggvorbis/constants.xml +++ phpdoc/en/reference/oggvorbis/constants.xml &reftitle.constants; &extension.constants; OGG/Vorbis supports PCM encodings in the following formats Constant Definition OGGVORBIS_PCM_U8 Unsigned 8-bit PCM. OGGVORBIS_PCM_S8 Signed 8-bit PCM. OGGVORBIS_PCM_U16_LE Unsigned 16-bit PCM. Little Endian byte order. OGGVORBIS_PCM_U16_BE Unsigned 16-bit PCM. Big Endian byte order. OGGVORBIS_PCM_S16_LE Signed 16-bit PCM. Little Endian byte order. OGGVORBIS_PCM_S16_BE Signed 16-bit PCM. Big Endian byte order. http://cvs.php.net/co.php/phpdoc/en/reference/oggvorbis/contexts.xml?r=1.1&p=1 Index: phpdoc/en/reference/oggvorbis/contexts.xml +++ phpdoc/en/reference/oggvorbis/contexts.xml Context options OGG/Vorbis tuning options Option Definition Relevance Default pcm_mode PCM byte encoding used. See constants below. Read / Write OGGVORBIS_PCM_S16_LE rate PCM Sampling rate. Measured in Hz. Write only 44100 bitrate Vorbis Average Bitrate Encoding / Variable Bitrate Encoding. Measured in bps (ABR) or Quality level (VBR: 0.0 to 1.0). 128000 ABR is rough equal to 0.4 VBR. Write only 128000 channels Number of PCM channels. 1 == Mono, 2 == Stereo. Write only 2 serialno Serial Number of stream within file. Must be unique within file. Because of the potential to select a duplicate serial number within a chained file, make efforts to manually assign unique numbers when encoding. Write only Random comments Associative array of file comments. Will be translated to strtoupper($name) . "=$value". Note: This context option is not available in oggvorbis-0.1 Write only array('ENCODER' => 'PHP/OggVorbis, http://pear.php.net/oggvorbis') http://cvs.php.net/co.php/phpdoc/en/reference/oggvorbis/reference.xml?r=1.1&p=1 Index: phpdoc/en/reference/oggvorbis/reference.xml +++ phpdoc/en/reference/oggvorbis/reference.xml oggvorbis OGG/Vorbis &reftitle.intro; The OGG/Vorbis file format, as defined by &url.ogg; and &url.ogg.vorbis;, is a scheme for compressing audio streams by multiple factors with a minimum of quality loss. This extension adds oggvorbis support to PHP's URL Wrappers. When used in read mode, compressed OGG/Vorbis data is expanded to raw PCM audio in one of six PCM encoding formats listed below. &reftitle.required; This extensiion requires PHP >= 4.3.0, libogg >= 1.0, and libvorbis >= 1.0. &reftitle.runtime; &no.config; Usage Examples on using the ogg:// wrapper. &reftitle.examples; Reading an OGG/Vorbis file Encode an audio file to OGG/Vorbis
[PHP-DOC] cvs: phpdoc /en/reference/kadm5 reference.xml
betzFri Jun 17 18:59:29 2005 EDT Modified files: /phpdoc/en/reference/kadm5 reference.xml Log: enable constants http://cvs.php.net/diff.php/phpdoc/en/reference/kadm5/reference.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc/en/reference/kadm5/reference.xml diff -u phpdoc/en/reference/kadm5/reference.xml:1.1 phpdoc/en/reference/kadm5/reference.xml:1.2 --- phpdoc/en/reference/kadm5/reference.xml:1.1 Thu Jun 16 14:30:02 2005 +++ phpdoc/en/reference/kadm5/reference.xml Fri Jun 17 18:59:26 2005 @@ -1,5 +1,5 @@ - + KADM5 kadm5 @@ -20,7 +20,7 @@ - + &reference.kadm5.constants; &reftitle.examples;
[PHP-DOC] cvs: phpdoc /en/reference/dom/functions dom-domprocessinginstruction-construct.xml
didou Fri Jun 17 18:14:14 2005 EDT Modified files: /phpdoc/en/reference/dom/functions dom-domprocessinginstruction-construct.xml Log: put example output in a separate screen and fix it (utf8 not iso) http://cvs.php.net/diff.php/phpdoc/en/reference/dom/functions/dom-domprocessinginstruction-construct.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc/en/reference/dom/functions/dom-domprocessinginstruction-construct.xml diff -u phpdoc/en/reference/dom/functions/dom-domprocessinginstruction-construct.xml:1.1 phpdoc/en/reference/dom/functions/dom-domprocessinginstruction-construct.xml:1.2 --- phpdoc/en/reference/dom/functions/dom-domprocessinginstruction-construct.xml:1.1 Tue Mar 22 05:56:34 2005 +++ phpdoc/en/reference/dom/functions/dom-domprocessinginstruction-construct.xml Fri Jun 17 18:14:13 2005 @@ -1,5 +1,5 @@ - + DOMProcessingInstruction->__construct() @@ -61,12 +61,18 @@ $body = $html->appendChild(new DOMElement('body')); $pinode = new DOMProcessingInstruction('php', 'echo "Hello World"; '); $body->appendChild($pinode); -echo $dom->saveXML(); /* - */ +echo $dom->saveXML(); ?> ]]> +&example.outputs; + + +
[PHP-DOC] #33358 [Opn->Csd]: Should use TITLEABBREV in TOC
ID: 33358 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Closed Bug Type: Livedocs problem Operating System: N/A PHP Version: Irrelevant New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: [2005-06-16 01:46:43] [EMAIL PROTECTED] 19:32 <@ilia> sean, can you clarify your livedocs bug report 19:32 <@sean> yeah.. sorry it was unclear.. take a look here: http://livedocs.phpdoc.info/apd 19:33 <@sean> you'll see that the TOC on the left shows "Advanced PHP debugger" (this is the ... tag) 19:33 <@sean> but on php.net/apd it's "APD" (the ) 19:33 <@sean> make sense? 19:33 <@sean> I took a stab at fixing it -- I don't think it'll be fun. [2005-06-16 00:43:15] [EMAIL PROTECTED] Description: Livedocs uses the in the TOC (idents table), but it should use the if available (like the DSSSL does -- and it makes the TOC much nicer). -- Edit this bug report at http://bugs.php.net/?id=33358&edit=1
[PHP-DOC] cvs: livedocs / livedoc_funcs.php mkindex.php
iliaa Fri Jun 17 18:10:18 2005 EDT Modified files: /livedocs livedoc_funcs.php mkindex.php Log: Added some warnings on common errors. Fixed bug #33358 (Use TITLEABBREV in table of contents). http://cvs.php.net/diff.php/livedocs/livedoc_funcs.php?r1=1.26&r2=1.27&ty=u Index: livedocs/livedoc_funcs.php diff -u livedocs/livedoc_funcs.php:1.26 livedocs/livedoc_funcs.php:1.27 --- livedocs/livedoc_funcs.php:1.26 Thu Feb 10 07:23:32 2005 +++ livedocs/livedoc_funcs.php Fri Jun 17 18:10:16 2005 @@ -160,16 +160,20 @@ $nolink = FALSE; - $title = lookup_title($item); - $fulltitle = $title; - if (NAV_TRUNCATE && isset($title{NAV_TRUNCATE}) ) { - $ftitle = " title='$title'"; - $title = substr($title, 0, NAV_TRUNCATE-3). '...'; + list($fulltitle, $title) = lookup_title($item, 1); + + if ($title) { /* got abbreviated title */ + $ftitle = " title='$fulltitle'"; + } else if (NAV_TRUNCATE && isset($fulltitle{NAV_TRUNCATE})) { + $ftitle = " title='$fulltitle'"; + $title = substr($fulltitle, 0, NAV_TRUNCATE-3). '...'; } else { $ftitle = ""; - if (!$title) { + if (!$fulltitle) { $title = $item . ' [?]'; $nolink = TRUE; + } else { + $title = $fulltitle; } } @@ -316,7 +320,7 @@ return $inner . ""; } -function lookup_title($nodeid) +function lookup_title($nodeid, $get_abbr=0) { static $ids = array(); @@ -335,18 +339,23 @@ } /* See if the title lookup is in the cache already */ - if (isset($ids[$nodeid])) { - return $ids[$nodeid]; + if (!isset($ids[$nodeid])) { + /* It's not, so we try to resolve it from the DB */ + $safeid = sqlite_escape_string($nodeid); + if (!($ids[$nodeid] = sqlite_array_query($GLOBALS['idx'], "SELECT title, abbrtitle from idents where id='$safeid'", SQLITE_NUM)) && isset($GLOBALS['fb_idx'])) { + $ids[$nodeid] = sqlite_array_query($GLOBALS['fb_idx'], "SELECT title, abbrtitle from idents where id='$safeid'", SQLITE_NUM); + } } - /* It's not, so we try to resolve it from the DB */ - $safeid = sqlite_escape_string($nodeid); - if (($ids[$nodeid] = sqlite_single_query($GLOBALS['idx'], "SELECT title from idents where id='$safeid'"))) { - return $ids[$nodeid]; - } else if (isset($GLOBALS['fb_idx']) && ($ids[$nodeid] = sqlite_single_query($GLOBALS['fb_idx'], "SELECT title from idents where id='$safeid'"))) { - return $ids[$nodeid]; + if (isset($ids[$nodeid][0])) { + if ($get_abbr) { + return $ids[$nodeid][0]; + } else { + return $ids[$nodeid][0][0]; + } } - return null; + + return $get_abbr ? array('','') : null; } /* transform an entity name of the form "reference..functions.ID" http://cvs.php.net/diff.php/livedocs/mkindex.php?r1=1.40&r2=1.41&ty=u Index: livedocs/mkindex.php diff -u livedocs/mkindex.php:1.40 livedocs/mkindex.php:1.41 --- livedocs/mkindex.php:1.40 Wed Jun 15 21:11:01 2005 +++ livedocs/mkindex.phpFri Jun 17 18:10:16 2005 @@ -19,23 +19,23 @@ // | construct an index | // +--+ // -// $Id: mkindex.php,v 1.40 2005/06/16 01:11:01 iliaa Exp $ +// $Id: mkindex.php,v 1.41 2005/06/17 22:10:16 iliaa Exp $ /* just to be on the safe side */ set_time_limit(0); set_magic_quotes_runtime(0); +if ($argc != 5 || !is_dir($argv[1]) || !is_dir($argv[1] . DIRECTORY_SEPARATOR . $argv[2])) { + echo "Usage: mkindex.php /path/to/docs lang tmp-dir build-type\n"; + exit(1); +} + $DOCS = $argv[1]; $LANG = $argv[2]; $TMPDIR = $argv[3]; $BUILDTYPE = $argv[4]; -if (!is_dir($DOCS) || !is_dir($DOCS . DIRECTORY_SEPARATOR . $LANG)) { - echo "Usage: mkindex.php /path/to/docs lang tmp-dir build-type\n"; - exit(1); -} - require 'mk_' . $BUILDTYPE . '.php'; function entity_replace($data) { @@ -54,12 +54,15 @@ return ''; } +$titles = array('TITLE'=>1, 'REFNAME'=>2, 'QANDAENTRY'=>2, 'VARLISTENTRY'=>2, 'TITLEABBREV' => 2); + class DocBookXMLFileParser { var $fileid = false; var $last_id = false; var $cdata = null; var $data = ''; var $title_depth = -1; + var $incomp = 0; function DocBookXMLFileParser($filename, $rel, $parser) { $this->fileid = $GLOBALS['fileid']; @@ -87,13 +90,11 @@ } function start_elem($parser, $name, $attrs) { - static $titles = array('TITLE'=>1, 'REFNAME'=>1, 'QANDAENTRY'=
[PHP-DOC] cvs: phpdoc /en/reference/dom reference.xml
didou Fri Jun 17 17:09:45 2005 EDT Modified files: /phpdoc/en/reference/domreference.xml Log: Returns NULL not TRUE http://cvs.php.net/diff.php/phpdoc/en/reference/dom/reference.xml?r1=1.20&r2=1.21&ty=u Index: phpdoc/en/reference/dom/reference.xml diff -u phpdoc/en/reference/dom/reference.xml:1.20 phpdoc/en/reference/dom/reference.xml:1.21 --- phpdoc/en/reference/dom/reference.xml:1.20 Mon Apr 4 18:23:21 2005 +++ phpdoc/en/reference/dom/reference.xml Fri Jun 17 17:09:44 2005 @@ -1,5 +1,5 @@ - + DOM Functions DOM @@ -91,13 +91,13 @@ schemaTypeInfo bool yes - Not implemented yet, always return &true; + Not implemented yet, always return &null; specified bool yes - Not implemented yet, always return &true; + Not implemented yet, always return &null; value @@ -605,7 +605,7 @@ schemaTypeInfo bool yes - Not implemented yet, always return &true; + Not implemented yet, always return &null; tagName
[PHP-DOC] cvs: phpdoc /entities global.ent
betzFri Jun 17 16:46:35 2005 EDT Modified files: /phpdoc/entitiesglobal.ent Log: entities for oggvorbis http://cvs.php.net/diff.php/phpdoc/entities/global.ent?r1=1.228&r2=1.229&ty=u Index: phpdoc/entities/global.ent diff -u phpdoc/entities/global.ent:1.228 phpdoc/entities/global.ent:1.229 --- phpdoc/entities/global.ent:1.228Thu Jun 16 14:18:51 2005 +++ phpdoc/entities/global.ent Fri Jun 17 16:46:33 2005 @@ -1,6 +1,6 @@
[PHP-DOC] cvs: phpdoc /en/reference/domxml/functions xptr-eval.xml xptr-new-context.xml
didou Fri Jun 17 15:54:19 2005 EDT Modified files: /phpdoc/en/reference/domxml/functions xptr-eval.xml xptr-new-context.xml Log: ws http://cvs.php.net/diff.php/phpdoc/en/reference/domxml/functions/xptr-eval.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc/en/reference/domxml/functions/xptr-eval.xml diff -u phpdoc/en/reference/domxml/functions/xptr-eval.xml:1.4 phpdoc/en/reference/domxml/functions/xptr-eval.xml:1.5 --- phpdoc/en/reference/domxml/functions/xptr-eval.xml:1.4 Tue Nov 23 04:22:12 2004 +++ phpdoc/en/reference/domxml/functions/xptr-eval.xml Fri Jun 17 15:54:15 2005 @@ -1,25 +1,24 @@ - - - - -xptr_eval - - Evaluate the XPtr Location Path in the given string - - - -&reftitle.description; - - intxptr_eval - XPathContextxpath_context - stringeval_str - - - &warn.undocumented.func; - - - + + + + xptr_eval + + Evaluate the XPtr Location Path in the given string + + + + &reftitle.description; + + intxptr_eval + XPathContextxpath_context + stringeval_str + + + &warn.undocumented.func; + + + - - - -xptr_new_context - - Create new XPath Context - - - -&reftitle.description; - - XPathContextxptr_new_context - - - - &warn.undocumented.func; - - - + + + + xptr_new_context + + Create new XPath Context + + + + &reftitle.description; + + XPathContextxptr_new_context + + + + &warn.undocumented.func; + + +
[PHP-DOC] cvs: phpdoc /en/reference/net_gopher/functions gopher-parsedir.xml
betzFri Jun 17 14:08:59 2005 EDT Modified files: /phpdoc/en/reference/net_gopher/functions gopher-parsedir.xml Log: final WS fix http://cvs.php.net/diff.php/phpdoc/en/reference/net_gopher/functions/gopher-parsedir.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc/en/reference/net_gopher/functions/gopher-parsedir.xml diff -u phpdoc/en/reference/net_gopher/functions/gopher-parsedir.xml:1.3 phpdoc/en/reference/net_gopher/functions/gopher-parsedir.xml:1.4 --- phpdoc/en/reference/net_gopher/functions/gopher-parsedir.xml:1.3Fri Jun 17 14:04:58 2005 +++ phpdoc/en/reference/net_gopher/functions/gopher-parsedir.xmlFri Jun 17 14:08:58 2005 @@ -1,5 +1,5 @@ - + @@ -15,7 +15,7 @@ While gopher returns text/plain documents for - actual document requests. A request to a directory (such as /) will + actual document requests. A request to a directory (such as /) will return specially encoded series of lines with each line being one directory entry or information line. @@ -42,14 +42,14 @@ -In the example above, the root directory at gopher.example.com knows about -one DOCUMENT identified by 0 located at -gopher://gopher.example.com:70/allabout.txt. It also knows -about two other directory (which have their own listing files) at -gopher://gopher.exmaple.com:70/stories and at -gopher://gopher.ejemplo.co.es:70/. -In addition there is a binary file, a link to an HTTP url, and several -informative lines. + In the example above, the root directory at gopher.example.com knows about + one DOCUMENT identified by 0 located at + gopher://gopher.example.com:70/allabout.txt. It also knows + about two other directory (which have their own listing files) at + gopher://gopher.exmaple.com:70/stories and at + gopher://gopher.ejemplo.co.es:70/. + In addition there is a binary file, a link to an HTTP url, and several + informative lines. By passing each line of the directory listing into
[PHP-DOC] cvs: phpdoc /en/reference/net_gopher/functions gopher-parsedir.xml
betzFri Jun 17 14:04:59 2005 EDT Modified files: /phpdoc/en/reference/net_gopher/functions gopher-parsedir.xml Log: New docstyle http://cvs.php.net/diff.php/phpdoc/en/reference/net_gopher/functions/gopher-parsedir.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc/en/reference/net_gopher/functions/gopher-parsedir.xml diff -u phpdoc/en/reference/net_gopher/functions/gopher-parsedir.xml:1.2 phpdoc/en/reference/net_gopher/functions/gopher-parsedir.xml:1.3 --- phpdoc/en/reference/net_gopher/functions/gopher-parsedir.xml:1.2Fri Jun 17 13:54:45 2005 +++ phpdoc/en/reference/net_gopher/functions/gopher-parsedir.xmlFri Jun 17 14:04:58 2005 @@ -1,5 +1,5 @@ - + @@ -7,8 +7,8 @@ Translate a gopher formatted directory entry into an associative array. - - Description + + &reftitle.description; arraygopher_parsedir stringdirent @@ -19,8 +19,13 @@ return specially encoded series of lines with each line being one directory entry or information line. - - Hypothetical output from gopher://gopher.example.com/ + + + + &reftitle.examples; + + +Hypothetical output from gopher://gopher.example.com/ - + + In the example above, the root directory at gopher.example.com knows about one DOCUMENT identified by 0 located at gopher://gopher.example.com:70/allabout.txt. It also knows @@ -44,12 +50,13 @@ gopher://gopher.ejemplo.co.es:70/. In addition there is a binary file, a link to an HTTP url, and several informative lines. - - -By passing each line of the directory listing into -gopher_parsedir, an associative array is formed containing -a parsed out version of the data. - + + + By passing each line of the directory listing into + gopher_parsedir, an associative array is formed containing + a parsed out version of the data. + + Using gopher_parsedir @@ -60,7 +67,7 @@ $directory = file("gopher://gopher.example.com";); foreach($directory as $dirent) { - print_r(gopher_parsedir($dirent)); +print_r(gopher_parsedir($dirent)); } /* Expected Output @@ -134,10 +141,11 @@ ]]> - -The values given by type are associated with -the following constants. - + + + The values given by type are associated with + the following constants. + Gopher Constants
[PHP-DOC] cvs: phpdoc /en/reference/net_gopher/functions gopher-parsedir.xml
betzFri Jun 17 13:54:46 2005 EDT Modified files: /phpdoc/en/reference/net_gopher/functions gopher-parsedir.xml Log: WS fix http://cvs.php.net/diff.php/phpdoc/en/reference/net_gopher/functions/gopher-parsedir.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc/en/reference/net_gopher/functions/gopher-parsedir.xml diff -u phpdoc/en/reference/net_gopher/functions/gopher-parsedir.xml:1.1 phpdoc/en/reference/net_gopher/functions/gopher-parsedir.xml:1.2 --- phpdoc/en/reference/net_gopher/functions/gopher-parsedir.xml:1.1Fri Jun 17 13:20:16 2005 +++ phpdoc/en/reference/net_gopher/functions/gopher-parsedir.xmlFri Jun 17 13:54:45 2005 @@ -1,26 +1,27 @@ - + - - -gopher_parsedir -Translate a gopher formatted directory entry into an associative array. - - -Description - - arraygopher_parsedir - stringdirent - - - While gopher returns text/plain documents for - actual document requests. A request to a directory (such as /) will - return specially encoded series of lines with each line being one - directory entry or information line. - - - Hypothetical output from gopher://gopher.example.com/ - + + + gopher_parsedir + Translate a gopher formatted directory entry into an associative array. + + + + Description + + arraygopher_parsedir + stringdirent + + + While gopher returns text/plain documents for + actual document requests. A request to a directory (such as /) will + return specially encoded series of lines with each line being one + directory entry or information line. + + + Hypothetical output from gopher://gopher.example.com/ + - - - - In the example above, the root directory at gopher.example.com knows about - one DOCUMENT identified by 0 located at - gopher://gopher.example.com:70/allabout.txt. It also knows - about two other directory (which have their own listing files) at - gopher://gopher.exmaple.com:70/stories and at - gopher://gopher.ejemplo.co.es:70/. - In addition there is a binary file, a link to an HTTP url, and several - informative lines. - - - By passing each line of the directory listing into - gopher_parsedir, an associative array is formed containing - a parsed out version of the data. - - - Using gopher_parsedir - + + + +In the example above, the root directory at gopher.example.com knows about +one DOCUMENT identified by 0 located at +gopher://gopher.example.com:70/allabout.txt. It also knows +about two other directory (which have their own listing files) at +gopher://gopher.exmaple.com:70/stories and at +gopher://gopher.ejemplo.co.es:70/. +In addition there is a binary file, a link to an HTTP url, and several +informative lines. + + +By passing each line of the directory listing into +gopher_parsedir, an associative array is formed containing +a parsed out version of the data. + + +Using gopher_parsedir + - - - - The values given by type are associated with - the following constants. - - - Gopher Constants - - - -Constant -Definition - - - - -GOPHER_DOCUMENT -Standard text/plain document. - - -GOPHER_DIRECTORY -A resource containing a gopher formatted directory listing. - - -GOPHER_BINHEX -A BinHex encoded binary file. - - -GOPHER_DOSBINARY -A DOS formatted binary archive. - - -GOPHER_UUENCODED -A UUEncoded file. - - -GOPHER_BINARY -A generic binary file. - - -GOPHER_INFO -An Informational entry - - -GOPHER_HTTP -A reference to an HTTP resource. - - -GOPHER_UNKNOWN - - An unrecognized entry, the line will be returned - in data. - - - - - - - + + + +The values given by type are associated with +the following constants. + + +Gopher Constants + + + + Constant + Definition + + + + + GOPHER_DOCUMENT + Standard text/plain document. + + + GOPHER_DIRECTORY + A resource containing a gopher formatted directory listing. + + + GOPHER_BINHEX + A BinHex encoded binary file. + + + GOPHER_DOSBINARY + A DOS formatted binary archive. + + + GOPHER_UUENCODED + A UUEncoded file. + + + GOPHER_BINARY + A generic binary file. + + + GOPHER_INFO + An Informational entry + + + GOPHER_HTTP + A reference to an HTTP resource. + + +
[PHP-DOC] #33387 [Opn->Csd]: Livedocs dies silently with no sqlite
ID: 33387 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Closed Bug Type:Livedocs problem PHP Version: Irrelevant New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: [2005-06-17 18:26:45] [EMAIL PROTECTED] Description: Livedocs dies silently when no SQLite extension is available. This happens in common.php, line 72: $fb_idx = @sqlite_open(FALLBACK_INDEX); (sqlite_open() is undefined) Here's a patch.. might be a better way to handle this. Dying silently is annoying, and difficult to debug, though. http://www.phpdoc.info/patches/livedocs_sqlite.patch -- Edit this bug report at http://bugs.php.net/?id=33387&edit=1
[PHP-DOC] cvs: livedocs / common.php
iliaa Fri Jun 17 13:31:18 2005 EDT Modified files: /livedocs common.php Log: Fixed bug #33387 (Provide meaningful error when sqlite is unavailable). # Thanks Sean http://cvs.php.net/diff.php/livedocs/common.php?r1=1.16&r2=1.17&ty=u Index: livedocs/common.php diff -u livedocs/common.php:1.16 livedocs/common.php:1.17 --- livedocs/common.php:1.16Fri Sep 3 07:15:22 2004 +++ livedocs/common.php Fri Jun 17 13:31:16 2005 @@ -18,9 +18,13 @@ // | Common PHP header, with some basic settings | // +--+ // -// $Id: common.php,v 1.16 2004/09/03 11:15:22 derick Exp $ +// $Id: common.php,v 1.17 2005/06/17 17:31:16 iliaa Exp $ set_magic_quotes_runtime(0); +if (!extension_loaded('sqlite')) { + exit("Livedocs requires the SQLite PHP extension."); +} + /*$compare = version_compare(phpversion(), '5.0.0RC1'); if ($compare == 1 || $compare == 0){ error_reporting(E_ALL | E_STRICT);
[PHP-DOC] cvs: phpdoc /en/reference/net_gopher .cvsignore configure.xml reference.xml /en/reference/net_gopher/functions gopher-parsedir.xml
betzFri Jun 17 13:20:16 2005 EDT Added files: /phpdoc/en/reference/net_gopher .cvsignore configure.xml reference.xml /phpdoc/en/reference/net_gopher/functions gopher-parsedir.xml Log: move net_gopher from peardoc http://cvs.php.net/co.php/phpdoc/en/reference/net_gopher/.cvsignore?r=1.1&p=1 Index: phpdoc/en/reference/net_gopher/.cvsignore +++ phpdoc/en/reference/net_gopher/.cvsignore functions.xml http://cvs.php.net/co.php/phpdoc/en/reference/net_gopher/configure.xml?r=1.1&p=1 Index: phpdoc/en/reference/net_gopher/configure.xml +++ phpdoc/en/reference/net_gopher/configure.xml &reftitle.install; Net_Gopher is installed through the usual PECL package installation process. Prerequisite: PHP 4.3.0. $ pear install Net_Gopher Copy the resulting gopher.so to an appropriate location and add extension=gopher.so to your &php.ini; file or load it dynamically in your PHP script using dl("gopher.so"); http://cvs.php.net/co.php/phpdoc/en/reference/net_gopher/reference.xml?r=1.1&p=1 Index: phpdoc/en/reference/net_gopher/reference.xml +++ phpdoc/en/reference/net_gopher/reference.xml Net_Gopher gopher &reftitle.intro; The gopher protocol, as defined by RFC 1436, is generally considered the ancestor of the modern HTTP protocol. However, gopher was also intended to provide references to non-gopher resources including telnet, wais, nntp, and even http. This extension adds gopher support to PHP's URL Wrappers, and provides a helper function gopher_parsedir to make sense of gopher formatted directory listings. &reftitle.required; &reference.net-gopher.configure; &reftitle.runtime; &no.config; &reftitle.resources; &no.resource; &reftitle.constants; &no.constants; &reftitle.examples; &reference.net-gopher.functions; http://cvs.php.net/co.php/phpdoc/en/reference/net_gopher/functions/gopher-parsedir.xml?r=1.1&p=1 Index: phpdoc/en/reference/net_gopher/functions/gopher-parsedir.xml +++ phpdoc/en/reference/net_gopher/functions/gopher-parsedir.xml gopher_parsedir Translate a gopher formatted directory entry into an associative array. Description arraygopher_parsedir stringdirent While gopher returns text/plain documents for actual document requests. A request to a directory (such as /) will return specially encoded series of lines with each line being one directory entry or information line. Hypothetical output from gopher://gopher.example.com/ In the example above, the root directory at gopher.example.com knows about one DOCUMENT identified by 0 located at gopher://gopher.example.com:70/allabout.txt. It also knows about two other directory (which have their own listing files) at gopher://gopher.exmaple.com:70/stories and at gopher://gopher.ejemplo.co.es:70/. In addition there is a binary file, a link to an HTTP url, and several informative lines. By passing each line of the directory listing into gopher_parsedir, an associative array is formed containing a parsed out version of the data. Using gopher_parsedir The values given by type are associated with the following constants. Gopher Constants Constant Definition GOPHER_DOCUMENT Standard text/plain document. GOPHER_DIRECTORY A resource containing a gopher formatted directory listing. GOPHER_BINHEX A BinHex encoded binary file. GOPHER_DOSBINARY A DOS formatted binary archive. GOPHER_UUENCODED A UUEncoded file. GOPHER_BINARY A generic binary file. GOPHER_INFO An Informational entry GOPHER_HTTP A reference to an HTTP resource. GOPHER_UNKNOWN An unrecognized entry, the line will be returned in data.
[PHP-DOC] cvs: phpdoc /en/reference/kadm5/functions kadm5-get-policies.xml kadm5-get-principals.xml
betzFri Jun 17 12:48:40 2005 EDT Modified files: /phpdoc/en/reference/kadm5/functionskadm5-get-policies.xml kadm5-get-principals.xml Log: correct ref-ids http://cvs.php.net/diff.php/phpdoc/en/reference/kadm5/functions/kadm5-get-policies.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc/en/reference/kadm5/functions/kadm5-get-policies.xml diff -u phpdoc/en/reference/kadm5/functions/kadm5-get-policies.xml:1.2 phpdoc/en/reference/kadm5/functions/kadm5-get-policies.xml:1.3 --- phpdoc/en/reference/kadm5/functions/kadm5-get-policies.xml:1.2 Fri Jun 17 03:31:26 2005 +++ phpdoc/en/reference/kadm5/functions/kadm5-get-policies.xml Fri Jun 17 12:48:38 2005 @@ -1,7 +1,7 @@ - + - + kadm5_get_policies Gets all policies from the Kerberos database. http://cvs.php.net/diff.php/phpdoc/en/reference/kadm5/functions/kadm5-get-principals.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc/en/reference/kadm5/functions/kadm5-get-principals.xml diff -u phpdoc/en/reference/kadm5/functions/kadm5-get-principals.xml:1.2 phpdoc/en/reference/kadm5/functions/kadm5-get-principals.xml:1.3 --- phpdoc/en/reference/kadm5/functions/kadm5-get-principals.xml:1.2Fri Jun 17 03:31:26 2005 +++ phpdoc/en/reference/kadm5/functions/kadm5-get-principals.xmlFri Jun 17 12:48:38 2005 @@ -1,7 +1,7 @@ - + - + kadm5_get_principals Gets all principals from the Kerberos database.
[PHP-DOC] #33387 [NEW]: Livedocs dies silently with no sqlite
From: [EMAIL PROTECTED] Operating system: PHP version: Irrelevant PHP Bug Type: Livedocs problem Bug description: Livedocs dies silently with no sqlite Description: Livedocs dies silently when no SQLite extension is available. This happens in common.php, line 72: $fb_idx = @sqlite_open(FALLBACK_INDEX); (sqlite_open() is undefined) Here's a patch.. might be a better way to handle this. Dying silently is annoying, and difficult to debug, though. http://www.phpdoc.info/patches/livedocs_sqlite.patch -- Edit bug report at http://bugs.php.net/?id=33387&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33387&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33387&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33387&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=33387&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=33387&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33387&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33387&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33387&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33387&r=support Expected behavior: http://bugs.php.net/fix.php?id=33387&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33387&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33387&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=33387&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33387&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=33387&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33387&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33387&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33387&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33387&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33387&r=mysqlcfg
[PHP-DOC] cvs: phpdoc /en/reference/pcre pattern.modifiers.xml pattern.syntax.xml
vrana Fri Jun 17 07:40:21 2005 EDT Modified files: /phpdoc/en/reference/pcre pattern.modifiers.xml pattern.syntax.xml Log: PCRE 5.0 http://cvs.php.net/diff.php/phpdoc/en/reference/pcre/pattern.modifiers.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc/en/reference/pcre/pattern.modifiers.xml diff -u phpdoc/en/reference/pcre/pattern.modifiers.xml:1.7 phpdoc/en/reference/pcre/pattern.modifiers.xml:1.8 --- phpdoc/en/reference/pcre/pattern.modifiers.xml:1.7 Wed Sep 15 03:22:26 2004 +++ phpdoc/en/reference/pcre/pattern.modifiers.xml Fri Jun 17 07:40:20 2005 @@ -1,5 +1,5 @@ - + @@ -12,6 +12,7 @@ The current possible PCRE modifiers are listed below. The names in parentheses refer to internal PCRE names for these modifiers. + Spaces and newlines are ignored in modifiers, other characters cause error. @@ -179,6 +180,7 @@ is incompatible with Perl. Pattern strings are treated as UTF-8. This modifier is available from PHP 4.1.0 or greater on Unix and from PHP 4.2.3 on win32. +UTF-8 validity of the pattern is checked since PHP 4.3.5. http://cvs.php.net/diff.php/phpdoc/en/reference/pcre/pattern.syntax.xml?r1=1.8&r2=1.9&ty=u Index: phpdoc/en/reference/pcre/pattern.syntax.xml diff -u phpdoc/en/reference/pcre/pattern.syntax.xml:1.8 phpdoc/en/reference/pcre/pattern.syntax.xml:1.9 --- phpdoc/en/reference/pcre/pattern.syntax.xml:1.8 Mon Jun 13 12:30:42 2005 +++ phpdoc/en/reference/pcre/pattern.syntax.xml Fri Jun 17 07:40:21 2005 @@ -1,5 +1,5 @@ - + @@ -274,7 +274,7 @@ - backslash + Backslash The backslash character has several uses. Firstly, if it is followed by a non-alphanumeric character, it takes away any @@ -358,6 +358,12 @@ After "\x", up to two hexadecimal digits are read (letters can be in upper or lower case). + In UTF-8 mode, "\x{...}" is + allowed, where the contents of the braces is a string of hexadecimal + digits. It is interpreted as a UTF-8 character whose code number is the + given hexadecimal number. The original hexadecimal escape sequence, + \xhh, matches a two-byte UTF-8 character if the value + is greater than 127. After "\0" up to two further octal digits are read. @@ -545,7 +551,11 @@ \z - end of subject(independent of multiline mode) + end of subject (independent of multiline mode) + + + \G + first matching position in subject @@ -575,6 +585,14 @@ newline that is the last character of the string as well as at the end of the string, whereas \z matches only at the end. + + The \G assertion is true only when the current + matching position is at the start point of the match, as specified by + the offset argument of + preg_match. It differs from \A + when the value of offset is non-zero. + It is available since PHP 4.3.3. + \Q and \E can be used to ignore @@ -586,6 +604,116 @@ + + Unicode character properties + + Since PHP 4.4.0 and 5.1.0, three + additional escape sequences to match generic character types are available + when UTF-8 mode is selected. They are: + + + + \p{xx} + a character with the xx property + + + \P{xx} + a character without the xx property + + + \X + an extended Unicode sequence + + + + The property names represented by xx above are limited to the Unicode + general category properties. Each character has exactly one such + property, specified by a two-letter abbreviation. For compatibility with + Perl, negation can be specified by including a circumflex between the + opening brace and the property name. For example, \p{^Lu} is the same + as \P{Lu}. + + + If only one letter is specified with \p or \P, it includes all the + properties that start with that letter. In this case, in the absence of + negation, the curly brackets in the escape sequence are optional; these + two examples have the same effect: + + + \p{L} + \pL + + + Supported property codes + + +COther +CcControl +CfFormat + CnUnassigned +CoPrivate use +CsSurrogate +LLetter +LlLower case letter +LmModifier letter +LoOther letter +LtTitle case letter +LuUpper case letter +MMark +McSpacing mark +MeEnclosing mark +MnNon-spacing mark +NNumber +NdDecimal number +NlLetter number +NoOther number + PPunctuation +PcConnector punctuation +PdDash punctuation +PeClose punctuation +
[PHP-DOC] cvs: phpdoc /en/reference/filesystem/functions file-get-contents.xml
vrana Fri Jun 17 04:33:57 2005 EDT Modified files: /phpdoc/en/reference/filesystem/functions file-get-contents.xml Log: One should definitely know about stream_get_contents http://cvs.php.net/diff.php/phpdoc/en/reference/filesystem/functions/file-get-contents.xml?r1=1.23&r2=1.24&ty=u Index: phpdoc/en/reference/filesystem/functions/file-get-contents.xml diff -u phpdoc/en/reference/filesystem/functions/file-get-contents.xml:1.23 phpdoc/en/reference/filesystem/functions/file-get-contents.xml:1.24 --- phpdoc/en/reference/filesystem/functions/file-get-contents.xml:1.23 Thu Mar 31 10:01:43 2005 +++ phpdoc/en/reference/filesystem/functions/file-get-contents.xml Fri Jun 17 04:33:56 2005 @@ -1,5 +1,5 @@ - + @@ -89,6 +89,7 @@ fread readfile file_put_contents + stream_get_contents
[PHP-DOC] cvs: phpdoc /en/reference/pcre/functions preg-replace-callback.xml
vrana Fri Jun 17 04:29:31 2005 EDT Modified files: /phpdoc/en/reference/pcre/functions preg-replace-callback.xml Log: count parameter http://cvs.php.net/diff.php/phpdoc/en/reference/pcre/functions/preg-replace-callback.xml?r1=1.10&r2=1.11&ty=u Index: phpdoc/en/reference/pcre/functions/preg-replace-callback.xml diff -u phpdoc/en/reference/pcre/functions/preg-replace-callback.xml:1.10 phpdoc/en/reference/pcre/functions/preg-replace-callback.xml:1.11 --- phpdoc/en/reference/pcre/functions/preg-replace-callback.xml:1.10 Sat Mar 12 15:29:57 2005 +++ phpdoc/en/reference/pcre/functions/preg-replace-callback.xmlFri Jun 17 04:29:29 2005 @@ -1,5 +1,5 @@ - + @@ -14,6 +14,7 @@ callbackcallback mixedsubject intlimit + intcount The behavior of this function is almost identical to @@ -88,6 +89,11 @@ ]]> + + +count parameter is available since PHP 5.1.0. + + See also preg_replace, create_function,
[PHP-DOC] cvs: phpdoc /en/reference/kadm5/functions kadm5-delete-principal.xml kadm5-get-policies.xml kadm5-get-principal.xml kadm5-get-principals.xml
vrana Fri Jun 17 03:31:26 2005 EDT Modified files: /phpdoc/en/reference/kadm5/functionskadm5-delete-principal.xml kadm5-get-policies.xml kadm5-get-principal.xml kadm5-get-principals.xml Log: Missing spaces http://cvs.php.net/diff.php/phpdoc/en/reference/kadm5/functions/kadm5-delete-principal.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc/en/reference/kadm5/functions/kadm5-delete-principal.xml diff -u phpdoc/en/reference/kadm5/functions/kadm5-delete-principal.xml:1.1 phpdoc/en/reference/kadm5/functions/kadm5-delete-principal.xml:1.2 --- phpdoc/en/reference/kadm5/functions/kadm5-delete-principal.xml:1.1 Thu Jun 16 14:31:04 2005 +++ phpdoc/en/reference/kadm5/functions/kadm5-delete-principal.xml Fri Jun 17 03:31:26 2005 @@ -1,5 +1,5 @@ - + @@ -31,7 +31,7 @@ &reftitle.examples; -kadm5_delete_principalexample +kadm5_delete_principal example
[PHP-DOC] cvs: phpdoc /en/reference/kadm5/functions kadm5-modify-principal.xml
vrana Fri Jun 17 03:31:02 2005 EDT Modified files: /phpdoc/en/reference/kadm5/functionskadm5-modify-principal.xml Log: options parameter is not optional http://cvs.php.net/diff.php/phpdoc/en/reference/kadm5/functions/kadm5-modify-principal.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc/en/reference/kadm5/functions/kadm5-modify-principal.xml diff -u phpdoc/en/reference/kadm5/functions/kadm5-modify-principal.xml:1.1 phpdoc/en/reference/kadm5/functions/kadm5-modify-principal.xml:1.2 --- phpdoc/en/reference/kadm5/functions/kadm5-modify-principal.xml:1.1 Thu Jun 16 14:31:04 2005 +++ phpdoc/en/reference/kadm5/functions/kadm5-modify-principal.xml Fri Jun 17 03:31:01 2005 @@ -1,5 +1,5 @@ - + @@ -13,10 +13,10 @@ boolkadm5_modify_principal resourcehandle stringprincipal - arrayoptions + arrayoptions - kadm5_create_principal + kadm5_modify_principal modifies a principal according to the given options. Allowed are the following options: KADM5_PRINC_EXPIRE_TIME, KADM5_PW_EXPIRATION, KADM5_ATTRIBUTES, @@ -36,7 +36,7 @@ &reftitle.examples; -xample of modifying principal +Example of modifying principal
[PHP-DOC] #33377 [Opn->Bgs]: several pgsql functions have the wrong version indication
ID: 33377 Updated by: [EMAIL PROTECTED] Reported By: david dot tulloh at infaze dot com dot au -Status: Open +Status: Bogus Bug Type:Documentation problem PHP Version: Irrelevant New Comment: Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. Dup of bug #33157. Previous Comments: [2005-06-17 04:21:29] david dot tulloh at infaze dot com dot au Description: The functions: pg_transaction_status pg_query_params pg_prepare pg_execute pg_send_query_params pg_send_prepare pg_send_execute pg_result_error_field Are marked in the documentation as being available in PHP5. The actually aren't in PHP5 (5.0.4). looking at the CVS log (http://cvs.php.net/php-src/ext/pgsql/php_pgsql.h) they were all introduced together after the PHP5 branch point. -- Edit this bug report at http://bugs.php.net/?id=33377&edit=1