|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #50492 [PT_BR] As saídas de echo e print são enviadas para
Submitted: 2009-12-16 13:31 UTC Modified: 2010-10-23 14:16 UTC
Avg. Score:4.0 ± 1.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: rubens21 at gmail dot com Assigned: kalle (profile)
Status: Closed Package: Translation problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: rubens21 at gmail dot com
New email:
PHP Version: OS:


 [2009-12-16 13:31 UTC] rubens21 at gmail dot com
O texto não foi atualizado desde a versão 4.1.0.
A parte que fala 'não é possível enviar saída para o brownser usando echo() ou print()' está desatualizado. Os 'echo's e 'print's chamados dentro das funções registradas pelo 'register_shutdown_function' são enviados para o navegador desde a versão 4.1.0.

Reproduce code:
From manual page: function.register-shutdown-function#Descrição

echo "Aqui é no script";
exit("\npedi para encerrar o script");
function saida()
   echo "\nIsso é visto no navegador";
   print "\nIsso também";


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-12-18 06:11 UTC]
Is this a documentation bug or is it a translation bug? And please use english language for future replies/reports, Thanks.
 [2009-12-18 10:27 UTC] rubens21 at gmail dot com
I'm sory. I forgot because the documentation are in portuguese.

It is a documentation problem. It is out of date.
In english documentation the text is correct, but in portuguese ( the translated of 'so it was not possible to send output to the browser using echo() or print()' is incorrect!

The correct is:
"As funções "shutdown" registradas 'ERAM' chamadas após a requisição ter sido completamente feita (incluindo envio e saída de buffer), então isso não 'ERA' possível enviar saída para o brownser usando echo() ou print(), ou recuperar o conteúdo de algum buffer de saída usando ob_get_contents()."

This text explain a change of version 4.1.
 [2009-12-18 13:20 UTC]
Thanks for explaining, I've re-classified this so the translation team can easier find it.
 [2010-10-23 12:59 UTC]
-Type: Bug +Type: Documentation Problem
 [2010-10-23 14:15 UTC]
I had a deeper look at this and the pt_BR translation and that file is way outdated and currently does not contain that note anymore. It will be fixed once a translator updates the file.

Thanks for your report
 [2010-10-23 14:16 UTC]
-Status: Verified +Status: Closed -Assigned To: +Assigned To: kalle
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jun 20 18:01:30 2024 UTC