Doc #72577 [Csd]: [PT_BR] Error in Example Documentation for array_fill

From: Date: Tue, 12 Jul 2016 10:59:53 +0000
Subject: Doc #72577 [Csd]: [PT_BR] Error in Example Documentation for array_fill
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-13716@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72577&edit=1 ID: 72577 Updated by: cmb@php.net Reported by: frederico at ufti dot com dot br Summary: [PT_BR] Error in Example Documentation for array_fill Status: Closed Type: Documentation Problem Package: Translation problem Operating System: Linux Mint PHP Version: 5.6.23 Assigned To: cmb Block user comment: N Private report: N 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: ------------------------------------------------------------------------ [2016-07-12 10:59:16] cmb@php.net > Note: the Korean example uses -2,2 with the appropriate output. > Might be worth adjusting to fit the others. The Korean translation of this page is outdated anyway, see <http://svn.php.net/viewvc/phpdoc/en/trunk/reference/array/functions/array-fill.xml?r1=288721&r2=335201>. Unfortunately, the whole Korean translation is in a very bad shape, see <http://doc.php.net/revcheck.php?p=graph&lang=kr> and <http://news.php.net/php.doc.kr/>. In comparison with other translations (<http://doc.php.net/revcheck.php>), it is by far the most incomplete translation still available in the online manual, whereas bg, it and pl which appear to be more up-to-date are not available. I suggest to move kr to $INACTIVE_ONLINE_LANGUAGES (<https://github.com/php/web-php/blob/master/include/languages.inc#L61-L86>). I'll make a respective PR later. ------------------------------------------------------------------------ [2016-07-12 10:50:48] cmb@php.net Automatic comment from SVN on behalf of cmb Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=339651 Log: Fix bug #72577: [PT_BR] Error in Example Documentation for array_fill ------------------------------------------------------------------------ [2016-07-11 18:59:53] requinix@php.net This version uses array_fill(-2,2,pear) but shows the output for array_fill(-2,4,pear). Note: the Korean example uses -2,2 with the appropriate output. Might be worth adjusting to fit the others. ------------------------------------------------------------------------ [2016-07-11 18:55:56] frederico at ufti dot com dot br pt_BR translate ------------------------------------------------------------------------ [2016-07-11 18:46:15] frederico at ufti dot com dot br Description: ------------ --- From manual page: http://www.php.net/function.array-fill --- In the first example the return of results is incorrect <?php $a = array_fill(5, 6, 'banana'); $b = array_fill(-2, 2, 'pear'); print_r($a); print_r($b); ?> Incorrect result documentation Array ( [5] => banana [6] => banana [7] => banana [8] => banana [9] => banana [10] => banana ) Array ( [-2] => pear [0] => pear [1] => pear [2] => pear ) Test script: --------------- http://sandbox.onlinephpfunctions.com/code/8e74eb9d9158db1c327a41ec6cf9102ada19e0dc <?php $a = array_fill(5, 6, 'banana'); $b = array_fill(-2, 2, 'pear'); print_r($a); print_r($b); ?> Expected result: ---------------- valid return Array ( [5] => banana [6] => banana [7] => banana [8] => banana [9] => banana [10] => banana ) Array ( [-2] => pear [0] => pear ) Actual result: -------------- Incorrect result documentation Array ( [5] => banana [6] => banana [7] => banana [8] => banana [9] => banana [10] => banana ) Array ( [-2] => pear [0] => pear [1] => pear [2] => pear ) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=72577&edit=1

« previous php.doc.bugs (#13716) next »