[PHP-DEV] Bug #13361: Seg Fault From: bate <email protected>
Date: 09/18/01

From: bate <email protected>
Operating system: Linux 2.2.16
PHP version: 4.0.6
PHP Bug Type: Unknown/Other Function
Bug description: Seg Fault

#!/usr/bin/php -q

<?php

echo "Ihr Name:";

if ($fp = fopen("php://stdin","r")) {
    $line = fgets($fp, 100);
    fclose($fp);
    }

$name = ereg_replace("[\n\r]", '', $line);

echo "Hallo $name!\n";

?>

This Program makes me with my Binary a seg fault after 3 executions .. ?

-- 
Edit bug report at: http://bugs.php.net/?id=13361&edit=1

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>