[PHP-DOC] cvs: phpdoc /docbook/docbook-dsssl/common catalog dbl10n.dsl dbl10n.ent dbl1zhhk.dsl dbl1zhhk.ent
bjori Wed Jan 24 10:54:26 2007 UTC Added files: /phpdoc/docbook/docbook-dsssl/commondbl1zhhk.dsl dbl1zhhk.ent Modified files: /phpdoc/docbook/docbook-dsssl/commoncatalog dbl10n.dsl dbl10n.ent Log: YAMF + Patch to make HK work. http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-dsssl/common/catalog?r1=1.1r2=1.2diff_format=u Index: phpdoc/docbook/docbook-dsssl/common/catalog diff -u phpdoc/docbook/docbook-dsssl/common/catalog:1.1 phpdoc/docbook/docbook-dsssl/common/catalog:1.2 --- phpdoc/docbook/docbook-dsssl/common/catalog:1.1 Mon Jan 22 15:16:06 2007 +++ phpdoc/docbook/docbook-dsssl/common/catalog Wed Jan 24 10:54:26 2007 @@ -35,3 +35,5 @@ PUBLIC -//Norman Walsh//ENTITIES DocBook Stylesheet Localization//XH dbl1xh.ent PUBLIC -//Norman Walsh//ENTITIES DocBook Stylesheet Localization//ZHCN dbl1zhcn.ent PUBLIC -//Norman Walsh//ENTITIES DocBook Stylesheet Localization//ZHTW dbl1zhtw.ent +PUBLIC -//Norman Walsh//ENTITIES DocBook Stylesheet Localization//ZHHK dbl1zhhk.ent + http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-dsssl/common/dbl10n.dsl?r1=1.1r2=1.2diff_format=u Index: phpdoc/docbook/docbook-dsssl/common/dbl10n.dsl diff -u phpdoc/docbook/docbook-dsssl/common/dbl10n.dsl:1.1 phpdoc/docbook/docbook-dsssl/common/dbl10n.dsl:1.2 --- phpdoc/docbook/docbook-dsssl/common/dbl10n.dsl:1.1 Mon Jan 22 15:16:06 2007 +++ phpdoc/docbook/docbook-dsssl/common/dbl10n.dsl Wed Jan 24 10:54:26 2007 @@ -1,4 +1,4 @@ -;; $Id: dbl10n.dsl,v 1.1 2007/01/22 15:16:06 bjori Exp $ +;; $Id: dbl10n.dsl,v 1.2 2007/01/24 10:54:26 bjori Exp $ ;; ;; This file is part of the Modular DocBook Stylesheet distribution. ;; See ../README or http://nwalsh.com/docbook/dsssl/ @@ -53,6 +53,7 @@ ;; xh - Xhosa 1.74 ;; zh_cn - Chinese (Continental)1.55 ;; zh_tw - Chinese (Traditional)1.70 +;; zh_hk - Chinese (Hong Kong) 1.70 ;; The following language codes are recognized for historical reasons: @@ -133,6 +134,7 @@ ![%l10n-xh[ ((xh)(xh-author-string author)) ]] ![%l10n-zhcn[ ((zh_cn)(zhcn-author-string author)) ]] ![%l10n-zhtw[ ((zh_tw)(zhtw-author-string author)) ]] + ![%l10n-zhhk[ ((zh_hk)(zhhk-author-string author)) ]] ![%l10n-no[ ((bmno)(no-author-string author)) ]] ![%l10n-de[ ((dege)(de-author-string author)) ]] ![%l10n-da[ ((dk)(da-author-string author)) ]] @@ -181,6 +183,7 @@ ![%l10n-xh[ ((xh) (gentext-xh-xref-strings giname)) ]] ![%l10n-zhcn[ ((zh_cn) (gentext-zhcn-xref-strings giname)) ]] ![%l10n-zhtw[ ((zh_tw) (gentext-zhtw-xref-strings giname)) ]] + ![%l10n-zhhk[ ((zh_hk) (gentext-zhhk-xref-strings giname)) ]] ![%l10n-no[ ((bmno) (gentext-no-xref-strings giname)) ]] ![%l10n-de[ ((dege) (gentext-de-xref-strings giname)) ]] ![%l10n-da[ ((dk) (gentext-da-xref-strings giname)) ]] @@ -227,6 +230,7 @@ ![%l10n-xh[ ((xh) (xh-auto-xref-indirect-connector before)) ]] ![%l10n-zhcn[ ((zh_cn) (zhcn-auto-xref-indirect-connector before)) ]] ![%l10n-zhtw[ ((zh_tw) (zhtw-auto-xref-indirect-connector before)) ]] +![%l10n-zhhk[ ((zh_hk) (zhhk-auto-xref-indirect-connector before)) ]] ![%l10n-no[ ((bmno) (no-auto-xref-indirect-connector before)) ]] ![%l10n-de[ ((dege) (de-auto-xref-indirect-connector before)) ]] ![%l10n-da[ ((dk) (da-auto-xref-indirect-connector before)) ]] @@ -272,6 +276,7 @@ ![%l10n-xh[ ((xh) %generate-xh-toc-in-front%) ]] ![%l10n-zhcn[ ((zh_cn) %generate-zhcn-toc-in-front%) ]] ![%l10n-zhtw[ ((zh_tw) %generate-zhtw-toc-in-front%) ]] +![%l10n-zhhk[ ((zh_hk) %generate-zhhk-toc-in-front%) ]] ![%l10n-no[ ((bmno) %generate-no-toc-in-front%) ]] ![%l10n-de[ ((dege) %generate-de-toc-in-front%) ]] ![%l10n-da[ ((dk) %generate-da-toc-in-front%) ]] @@ -319,6 +324,7 @@ ![%l10n-xh[ ((xh) (gentext-xh-element-name giname)) ]] ![%l10n-zhcn[ ((zh_cn) (gentext-zhcn-element-name giname)) ]] ![%l10n-zhtw[ ((zh_tw) (gentext-zhtw-element-name giname)) ]] + ![%l10n-zhhk[ ((zh_hk) (gentext-zhhk-element-name giname)) ]] ![%l10n-no[ ((bmno) (gentext-no-element-name giname)) ]] ![%l10n-de[ ((dege) (gentext-de-element-name giname)) ]] ![%l10n-da[ ((dk) (gentext-da-element-name giname)) ]] @@ -370,6 +376,7 @@ ![%l10n-xh[ ((xh) (gentext-xh-element-name-space giname)) ]] ![%l10n-zhcn[ ((zh_cn) (gentext-zhcn-element-name-space giname)) ]] ![%l10n-zhtw[ ((zh_tw) (gentext-zhtw-element-name-space giname)) ]] + ![%l10n-zhhk[ ((zh_hk) (gentext-zhhk-element-name-space giname)) ]] ![%l10n-no[ ((bmno) (gentext-no-element-name-space giname)) ]] ![%l10n-de[ ((dege) (gentext-de-element-name-space giname)) ]] ![%l10n-da[ ((dk) (gentext-da-element-name-space giname)) ]] @@ -417,6 +424,7 @@ ![%l10n-xh[ ((xh)
[PHP-DOC] cvs: phpdoc /en/reference/strings/functions html-entity-decode.xml
nlopess Wed Jan 24 11:08:02 2007 UTC Modified files: /phpdoc/en/reference/strings/functions html-entity-decode.xml Log: fix #40155: fix example http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/strings/functions/html-entity-decode.xml?r1=1.11r2=1.12diff_format=u Index: phpdoc/en/reference/strings/functions/html-entity-decode.xml diff -u phpdoc/en/reference/strings/functions/html-entity-decode.xml:1.11 phpdoc/en/reference/strings/functions/html-entity-decode.xml:1.12 --- phpdoc/en/reference/strings/functions/html-entity-decode.xml:1.11 Tue Sep 6 08:27:42 2005 +++ phpdoc/en/reference/strings/functions/html-entity-decode.xmlWed Jan 24 11:08:02 2007 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.11 $ -- +!-- $Revision: 1.12 $ -- !-- splitted from ./en/functions/strings.xml, last change in rev 1.2 -- refentry id=function.html-entity-decode refnamediv @@ -85,7 +85,7 @@ { // replace numeric entities $string = preg_replace('~#x([0-9a-f]+);~ei', 'chr(hexdec(\\1))', $string); -$string = preg_replace('~#([0-9]+);~e', 'chr(\\1)', $string); +$string = preg_replace('~#([0-9]+);~e', 'chr(\\1)', $string); // replace literal entities $trans_tbl = get_html_translation_table(HTML_ENTITIES); $trans_tbl = array_flip($trans_tbl);
[PHP-DOC] #40155 [Opn-Csd]: Error in sample code in documentation for html_entity_decode
ID: 40155 Updated by: [EMAIL PROTECTED] Reported By: onerob at gmail dot com -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: any PHP Version: Irrelevant New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: [2007-01-24 00:06:48] onerob at gmail dot com Correction and clarification: The PHP4 function example gets confused if you use a decimal HTML entity with a leading zero, e.g. #039; instead of #39; For example, the following code should really output a single quote character but actually outputs nothing - ?php // For users prior to PHP 4.3.0 you may do this: function unhtmlentities($string) { // replace numeric entities $string = preg_replace('~#x([0-9a-f]+);~ei', 'chr(hexdec (\\1))', $string); $string = preg_replace('~#([0-9]+);~e', 'chr(\\1)', $string); // replace literal entities $trans_tbl = get_html_translation_table(HTML_ENTITIES); $trans_tbl = array_flip($trans_tbl); return strtr($string, $trans_tbl); } echo unhtmlentities('#039;'); ? To correct this, changing the following line from $string = preg_replace('~#([0-9]+);~e', 'chr(\\1)', $string); to $string = preg_replace('~#([0-9]+);~e', 'chr(\\1)', $string); is adequate (double quotes added around \\1). A similar fix could no doubt be provided for the preceding line in the function, also. [2007-01-20 22:37:22] [EMAIL PROTECTED] can you please provide an example that exibits the bug in the function? [2007-01-17 15:35:32] onerob at gmail dot com Description: Single quotes need to be double quotes in the second line of the PHP 4 equivalent function example of html_entity_decode() that is provided by the documentation. http://uk2.php.net/manual/en/function.html-entity-decode.php#61610 Reproduce code: --- n/a Expected result: n/a Actual result: -- n/a -- Edit this bug report at http://bugs.php.net/?id=40155edit=1
[PHP-DOC] build failure en (2007-01-24)
/usr/bin/openjade:././docbook/docbook-dsssl/html/../common/dbl10n.dsl:1213:30:E: reference to undefined variable %gentext-zhhk-table-endnotes% /usr/bin/openjade:././docbook/docbook-dsssl/html/../common/dbl10n.dsl:327:33:E: reference to undefined variable gentext-zhhk-element-name /usr/bin/openjade:././docbook/docbook-dsssl/html/../common/dbl10n.dsl:1535:31:E: reference to undefined variable gentext-zhhk-nav-up /usr/bin/openjade:././docbook/docbook-dsssl/html/../common/dbl10n.dsl:1489:31:E: reference to undefined variable gentext-zhhk-nav-next /usr/bin/openjade:././docbook/docbook-dsssl/html/../common/dbl10n.dsl:1581:31:E: reference to undefined variable gentext-zhhk-nav-home /usr/bin/openjade:././docbook/docbook-dsssl/html/../common/dbl10n.dsl:1351:31:E: reference to undefined variable gentext-zhhk-nav-prev /usr/bin/openjade:././docbook/docbook-dsssl/html/../common/dbl10n.dsl:1167:30:E: reference to undefined variable %gentext-zhhk-endnotes% /usr/bin/openjade:././docbook/docbook-dsssl/html/../common/dbl10n.dsl:475:33:E: reference to undefined variable gentext-zhhk-label-title-sep /usr/bin/openjade:././docbook/docbook-dsssl/html/../common/dbl10n.dsl:523:33:E: reference to undefined variable zhhk-label-number-format /usr/bin/openjade:././docbook/docbook-dsssl/html/../common/dbl10n.dsl:427:33:E: reference to undefined variable gentext-zhhk-intra-label-sep /usr/bin/openjade:././docbook/docbook-dsssl/html/../common/dbl10n.dsl:379:33:E: reference to undefined variable gentext-zhhk-element-name-space /usr/bin/openjade:././docbook/docbook-dsssl/html/../common/dbl10n.dsl:279:30:E: reference to undefined variable %generate-zhhk-toc-in-front% /usr/bin/openjade:././docbook/docbook-dsssl/html/../common/dbl10n.dsl:137:38:E: reference to undefined variable zhhk-author-string /usr/bin/openjade:././docbook/docbook-dsssl/html/../common/dbl10n.dsl:1029:30:E: reference to undefined variable %gentext-zhhk-listcomma% /usr/bin/openjade:././docbook/docbook-dsssl/html/../common/dbl10n.dsl:1075:30:E: reference to undefined variable %gentext-zhhk-lastlistcomma% /usr/bin/openjade:././docbook/docbook-dsssl/html/../common/dbl10n.dsl:983:30:E: reference to undefined variable %gentext-zhhk-and% /usr/bin/openjade:././docbook/docbook-dsssl/html/../common/dbl10n.dsl:186:33:E: reference to undefined variable gentext-zhhk-xref-strings /usr/bin/openjade:././docbook/docbook-dsssl/html/../common/dbl10n.dsl:233:31:E: reference to undefined variable zhhk-auto-xref-indirect-connector /usr/bin/openjade:././docbook/docbook-dsssl/html/../common/dbl10n.dsl:753:30:E: reference to undefined variable %gentext-zhhk-end-nested-quote% /usr/bin/openjade:././docbook/docbook-dsssl/html/../common/dbl10n.dsl:707:30:E: reference to undefined variable %gentext-zhhk-start-nested-quote% /usr/bin/openjade:././docbook/docbook-dsssl/html/../common/dbl10n.dsl:661:30:E: reference to undefined variable %gentext-zhhk-end-quote% /usr/bin/openjade:././docbook/docbook-dsssl/html/../common/dbl10n.dsl:615:30:E: reference to undefined variable %gentext-zhhk-start-quote% /usr/bin/openjade:././docbook/docbook-dsssl/html/../common/dbl10n.dsl:569:31:E: reference to undefined variable $lot-title-zhhk$ /usr/bin/openjade:././docbook/docbook-dsssl/html/../common/dbl10n.dsl:891:30:E: reference to undefined variable %gentext-zhhk-revised-by% /usr/bin/openjade:././docbook/docbook-dsssl/html/../common/dbl10n.dsl:845:30:E: reference to undefined variable %gentext-zhhk-edited-by% /usr/bin/openjade:././docbook/docbook-dsssl/html/../common/dbl10n.dsl:799:30:E: reference to undefined variable %gentext-zhhk-by%
[PHP-DOC] cvs: phpdoc /docbook/docbook-dsssl/html docbook.dsl /docbook/docbook-dsssl/print docbook.dsl
bjori Wed Jan 24 15:22:14 2007 UTC Modified files: /phpdoc/docbook/docbook-dsssl/html docbook.dsl /phpdoc/docbook/docbook-dsssl/print docbook.dsl Log: YAATFHK (Yet Another Attempt To Fix HK) http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-dsssl/html/docbook.dsl?r1=1.1r2=1.2diff_format=u Index: phpdoc/docbook/docbook-dsssl/html/docbook.dsl diff -u phpdoc/docbook/docbook-dsssl/html/docbook.dsl:1.1 phpdoc/docbook/docbook-dsssl/html/docbook.dsl:1.2 --- phpdoc/docbook/docbook-dsssl/html/docbook.dsl:1.1 Mon Jan 22 15:16:08 2007 +++ phpdoc/docbook/docbook-dsssl/html/docbook.dsl Wed Jan 24 15:22:14 2007 @@ -51,11 +51,11 @@ style-sheet style-specification id=docbook -use=af bg bs ca cs da de el en es et eu fi fr hu id it ja ko nl nn no pl pt ptbr ro ru sk sl sr sv tr uk xh zhcn zhtw dbparam dblib +use=af bg bs ca cs da de el en es et eu fi fr hu id it ja ko nl nn no pl pt ptbr ro ru sk sl sr sv tr uk xh zhcn zhtw zhhk dbparam dblib style-specification-body -;; $Id: docbook.dsl,v 1.1 2007/01/22 15:16:08 bjori Exp $ +;; $Id: docbook.dsl,v 1.2 2007/01/24 15:22:14 bjori Exp $ ;; ;; This file is part of the Modular DocBook Stylesheet distribution. ;; See ../README or http://docbook.sourceforge.net/projects/dsssl/ @@ -236,6 +236,7 @@ external-specification id=xh document=dbl1xh external-specification id=zhcn document=dbl1zhcn external-specification id=zhtw document=dbl1zhtw +external-specification id=zhhk document=dbl1zhhk /style-sheet http://cvs.php.net/viewvc.cgi/phpdoc/docbook/docbook-dsssl/print/docbook.dsl?r1=1.1r2=1.2diff_format=u Index: phpdoc/docbook/docbook-dsssl/print/docbook.dsl diff -u phpdoc/docbook/docbook-dsssl/print/docbook.dsl:1.1 phpdoc/docbook/docbook-dsssl/print/docbook.dsl:1.2 --- phpdoc/docbook/docbook-dsssl/print/docbook.dsl:1.1 Mon Jan 22 15:16:09 2007 +++ phpdoc/docbook/docbook-dsssl/print/docbook.dsl Wed Jan 24 15:22:14 2007 @@ -50,11 +50,11 @@ style-sheet style-specification id=docbook - use=af bg bs ca cs da de el en es et eu fi fr hu id it ja ko nl nn no pl pt ptbr ro ru sk sl sr sv tr uk xh zhcn zhtw dbparam dblib + use=af bg bs ca cs da de el en es et eu fi fr hu id it ja ko nl nn no pl pt ptbr ro ru sk sl sr sv tr uk xh zhcn zhtw zhhk dbparam dblib style-specification-body -;; $Id: docbook.dsl,v 1.1 2007/01/22 15:16:09 bjori Exp $ +;; $Id: docbook.dsl,v 1.2 2007/01/24 15:22:14 bjori Exp $ ;; ;; This file is part of the Modular DocBook Stylesheet distribution. ;; See ../README or http://docbook.sourceforge.net/projects/dsssl/ @@ -193,5 +193,6 @@ external-specification id=xh document=dbl1xh external-specification id=zhcn document=dbl1zhcn external-specification id=zhtw document=dbl1zhtw +external-specification id=zhhk document=dbl1zhhk /style-sheet
[PHP-DOC] #40220 [NEW]: Syntax error in example ZipArchive::addFile
From: stalk at zelnet dot ru Operating system: PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: Syntax error in example ZipArchive::addFile Description: You have syntax error in example on http://php.net/manual/function.ziparchive-addfile -- Edit bug report at http://bugs.php.net/?id=40220edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40220r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40220r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40220r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=40220r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=40220r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=40220r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=40220r=needscript Try newer version:http://bugs.php.net/fix.php?id=40220r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=40220r=support Expected behavior:http://bugs.php.net/fix.php?id=40220r=notwrong Not enough info: http://bugs.php.net/fix.php?id=40220r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=40220r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=40220r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40220r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=40220r=dst IIS Stability:http://bugs.php.net/fix.php?id=40220r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=40220r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=40220r=float No Zend Extensions: http://bugs.php.net/fix.php?id=40220r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=40220r=mysqlcfg
[PHP-DOC] #40220 [Opn-Fbk]: Syntax error in example ZipArchive::addFile
ID: 40220 Updated by: [EMAIL PROTECTED] Reported By: stalk at zelnet dot ru -Status: Open +Status: Feedback Bug Type:Documentation problem PHP Version: Irrelevant New Comment: Which mirror and which translation? Previous Comments: [2007-01-24 16:10:03] stalk at zelnet dot ru Description: You have syntax error in example on http://php.net/manual/function.ziparchive-addfile -- Edit this bug report at http://bugs.php.net/?id=40220edit=1
[PHP-DOC] #40220 [Fbk]: Syntax error in example ZipArchive::addFile
ID: 40220 Updated by: [EMAIL PROTECTED] Reported By: stalk at zelnet dot ru Status: Feedback Bug Type:Documentation problem PHP Version: Irrelevant New Comment: .. and what do you mean by syntax error ? Previous Comments: [2007-01-24 16:15:59] [EMAIL PROTECTED] Which mirror and which translation? [2007-01-24 16:10:03] stalk at zelnet dot ru Description: You have syntax error in example on http://php.net/manual/function.ziparchive-addfile -- Edit this bug report at http://bugs.php.net/?id=40220edit=1
[PHP-DOC] #40220 [Opn-Csd]: Syntax error in example ZipArchive::addFile
ID: 40220 Updated by: [EMAIL PROTECTED] Reported By: stalk at zelnet dot ru -Status: Open +Status: Closed Bug Type:Documentation problem PHP Version: Irrelevant New Comment: This shows up because the RU version of the manual hasn't been built for awhile (2006-09-15), but this bug was fixed on (2006-10-13) in EN. RU uses the EN version of this file. In summary: When RU is next built, it will be fixed. So, am closing this report. Previous Comments: [2007-01-24 16:24:42] stalk at zelnet dot ru Sorry. With any mirror of Russian translation. [2007-01-24 16:20:59] [EMAIL PROTECTED] .. and what do you mean by syntax error ? [2007-01-24 16:15:59] [EMAIL PROTECTED] Which mirror and which translation? [2007-01-24 16:10:03] stalk at zelnet dot ru Description: You have syntax error in example on http://php.net/manual/function.ziparchive-addfile -- Edit this bug report at http://bugs.php.net/?id=40220edit=1
[PHP-DOC] #40223 [Ver-Opn]: ReflectionMethod is not an subclass of ReflectionFunction
ID: 40223 Updated by: [EMAIL PROTECTED] Reported By: baldurien at bbnwn dot eu -Status: Verified +Status: Open Bug Type: Documentation problem Operating System: Windows XP SP2 PHP Version: 5.2.0 New Comment: The documentation is wrong, both ReflectionMethod ReflectionFunction extend abstract class called ReflectionFunctionAbstract. Previous Comments: [2007-01-24 19:46:19] [EMAIL PROTECTED] (reclassified as documentation problem) The docs are wrong (and really outdated). ReflectionMethod and ReflectionFunction both extend ReflectionFunctionAbstract. (see: php --rc ReflectionMethod php --rc ReflectionFunction or php --re reflection) [2007-01-24 19:39:00] baldurien at bbnwn dot eu Description: The doc (http://fr.php.net/manual/en/language.oop5.reflection.php) state that ReflectioMethod be a ReflectionFunction. class ReflectionFunction implements Reflector { } class ReflectionMethod extends ReflectionFunction { } But this is not how it works in PHP : when using type hinting, any ReflectionMethod passed to a function or method that expect a ReflectionFunction fails instead of working like with normal type hinting. Reproduce code: --- class Foo { public function bar(ReflectionFunction $fct) { ... } } $c = new ReflectionClass('Foo'); $foo = new Foo(); $foo-bar($c-getMethod('bar')); Expected result: This should work because ReflectionMethod is a sub class of a ReflectionFunction, and type hinting normally allows such thing (or the documentation [http://fr.php.net/manual/en/language.oop5.typehinting.php] should say it clearly...) Actual result: -- [E_RECOVERABLE_ERROR] Argument 1 passed to Foo::bar() must be an instance of ReflectionFunction, instance of ReflectionMethod given, called in ... on line ... and defined' in ... -- Edit this bug report at http://bugs.php.net/?id=40223edit=1
[PHP-DOC] cvs: phpdoc /en/reference/readline reference.xml
tony2001Wed Jan 24 20:50:23 2007 UTC Modified files: /phpdoc/en/reference/readline reference.xml Log: in this particular case readline is used not as a function name, but as a name of the extension http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/readline/reference.xml?r1=1.9r2=1.10diff_format=u Index: phpdoc/en/reference/readline/reference.xml diff -u phpdoc/en/reference/readline/reference.xml:1.9 phpdoc/en/reference/readline/reference.xml:1.10 --- phpdoc/en/reference/readline/reference.xml:1.9 Sun Sep 4 19:39:26 2005 +++ phpdoc/en/reference/readline/reference.xml Wed Jan 24 20:50:23 2007 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.9 $ -- +!-- $Revision: 1.10 $ -- !-- Purpose: utilspec.cmdline -- !-- Membership: bundled, external -- @@ -11,7 +11,7 @@ section id=readline.intro reftitle.intro; para - The functionreadline/function functions implement an interface + The readline functions implement an interface to the GNU Readline library. These are functions that provide editable command lines. An example being the way Bash allows you to use the arrow keys to insert characters or scroll through