php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #53290 Doc issue
Submitted: 2010-11-10 11:35 UTC Modified: 2010-11-10 11:45 UTC
From: oxygenus at gmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
 [2010-11-10 11:35 UTC] oxygenus at gmail dot com
Description:
------------
If used and set to TRUE, var_export() will return the variable representation 
instead of outputing it.

Note:

This function uses internal output buffering with this parameter so it can not 
be used inside an ob_start() callback function.


What does that Note: stand for? It already says on the param what it does. If 
nothing is sent to the output...then who is that note going to help? People 
passing that param already expect a certain behaviour, and are some trying to 
stay away from ob_start in the first place.

---
From manual page: http://www.php.net/function.var-export#Parameters
---


Test script:
---------------
What test script? Doc issue.

Expected result:
----------------
Doc issue

Actual result:
--------------
Doc issue

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-11-10 11:45 UTC] aharvey@php.net
-Status: Open +Status: Bogus
 [2010-11-10 11:45 UTC] aharvey@php.net
The note means exactly what it says: you can't use
var_export($var, true) within an ob_start() callback function. You can 
use it as per normal with output buffering; it only refers to that very
specific case.

Looks clear enough to me -> closing.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 20 02:01:33 2024 UTC