[PHP-DEV] Bug #297: printing quotation mark read by fgets-function From: gihwaja <email protected>
Date: 04/21/98

From: gihwaja <email protected>
Operating system: SunOS 5.5.1
PHP version: 3.0 Release Candidate 4
PHP Bug Type: Other
Bug description:
Let's say that "quotation" file has only five quotation mark.
(that is, """"")
and execute following php-script

<?php
    $fp = fopen("quotation", "r");
    echo fgets($fp, 100);
?>

The result is
    \"\"\"\"\"
of length 10, not 5.