Is this a bug in PHP 4.3.4?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I use the  following program:

<?php

print_form();
print_quotes ();

function print_form () {
ob_start();

output_add_rewrite_var("sort", "sorting");

echo <<<EOF
<form>
...
</form>
EOF;

ob_flush();
}

function print_quotes () {
output_reset_rewrite_vars();

echo <<<EOF
<table>
...
</table>
EOF;
}

?>


The result printed is:

Content-type: text/html
X-Powered-By: PHP/4.3.4

<form><input type="hidden" name="sort" value="sorting" />
...
</<table>
...
</table>

Well, do you have any idea why PHP prints:

</<table>

...instead of:

</form><table>

I have tried this program under Fedora Core 2 in command line mode and on an
Apache web server with the same results.

Do you have suggestions for making this program work and why does this
happen?

Thank you.

Teddy

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux