Directory change in callback (bug #26073)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@168683 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jakub Vrana 2004-09-16 14:24:21 +00:00
parent 2a2750caa3
commit 0c06f33d12

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.16 $ -->
<!-- $Revision: 1.17 $ -->
<!-- splitted from ./en/functions/outcontrol.xml, last change in rev 1.1 -->
<refentry id="function.ob-start">
<refnamediv>
@ -59,6 +59,14 @@
<parameter>output_callback</parameter> can not be executed.
</para>
</note>
<warning>
<para>
Some web servers (e.g. Apache) change the working directory of a script
when calling the callback function. You can change it back by e.g.
<literal>chdir(dirname($_SERVER['PHP_SELF']))</literal> in the callback
function.
</para>
</warning>
<para>
If the optional parameter <parameter>chunk_size</parameter> is passed, the
callback function is called on every first newline after