mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
No description
![]() var_export stopped using output buffering to convert output to a string long before php 7.0. See https://github.com/php/php-src/blob/PHP-7.0/ext/standard/var.c#L564-L582 highlight_string/highlight_file are still using output buffering. ``` <?php function my_buffer($value) { fprintf(STDERR, "var_export output: %s\n", var_export(array(), true)); fprintf(STDERR, "print_r output: %s\n", print_r(array(), true)); //fprintf(STDERR, "highlight_string output: %s\n", highlight_string('2+2', true)); return $value; } ob_start('my_buffer'); echo "test"; $result = ob_get_clean(); echo "Result: $result\n"; ``` Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de> Closes GH-381. |
||
---|---|---|
.github/workflows | ||
appendices | ||
chapters | ||
chmonly | ||
faq | ||
features | ||
install | ||
language | ||
reference | ||
security | ||
.editorconfig | ||
.gitignore | ||
bookinfo.xml | ||
contributors.ent | ||
contributors.xml | ||
extensions.ent | ||
language-defs.ent | ||
language-snippets.ent | ||
make_chm_index.html | ||
preface.xml | ||
README |
---------------------------------------------------------------------- README ---------------------------------------------------------------------- Please refer to the README file within the doc-base/ directory. Your directory structure is probably like: phpdoc/en (DocBook files for the English language) phpdoc/doc-base (Tools and resources used for all languages)