php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #53623 [PT_BR] Incorrect example code
Submitted: 2010-12-28 17:51 UTC Modified: 2011-01-13 20:51 UTC
From: adarsha dot mv at gmail dot com Assigned: frozenfire (profile)
Status: Closed Package: Translation problem
PHP Version: 5.3.4 OS:
Private report: No CVE-ID: None
 [2010-12-28 17:51 UTC] adarsha dot mv at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.ob-end-clean#Examples
---
The following example shows an easy way to get rid of all output buffers: 

<?php
ob_start();
echo 'Text that won\'t get displayed.';
ob_end_clean();
?>

But actual code to get rid of all output buffers is given in 
http://php.net/manual/pt_BR/function.ob-end-clean.php

<?php
while (@ob_end_clean());
?>



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-29 09:01 UTC] kalle@php.net
-Summary: Incorrect example code +Summary: [PT_BR] Incorrect example code -Package: Documentation problem +Package: Translation problem
 [2011-01-13 20:27 UTC] frozenfire@php.net
-Assigned To: +Assigned To: frozenfire
 [2011-01-13 20:27 UTC] frozenfire@php.net
I'll fix this issue, since it's fairly minor, to reflect what's in the English version in terms of example code.

However, it's probably a good idea to change the example test to Portuguese. Is "Texto que não serão exibidas." a good translation of "Text that won't get displayed."?
 [2011-01-13 20:50 UTC] frozenfire@php.net
Automatic comment from SVN on behalf of frozenfire
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=307447
Log: Replaced example with version from English manual, with respective text translated. Fixes bug #53623.
 [2011-01-13 20:51 UTC] frozenfire@php.net
-Status: Assigned +Status: Closed
 [2011-01-13 20:51 UTC] frozenfire@php.net
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.

After soliciting some help from the Portuguese channel on Freenode, I've decided upon "Texto que não será exibido."
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 14:01:30 2024 UTC