php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13361 Seg Fault
Submitted: 2001-09-18 05:37 UTC Modified: 2001-09-18 07:18 UTC
From: bate at bate dot de Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 4.0.6 OS: Linux 2.2.16
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bate at bate dot de
New email:
PHP Version: OS:

 

 [2001-09-18 05:37 UTC] bate at bate dot de
#!/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 .. ?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-18 06:32 UTC] mfischer@php.net
Not reproduceable with 4.0.6 on my machine ..

Anyway, it also works on CVS so. Try one from http://snaps.php.net/

Closed.

- Markus
 [2001-09-18 07:03 UTC] bate at bate dot de
http://www.bate.de/bug/phpinfo.html

this is the PHPINFO from my php binary

"php -i >phpinfo.html"

I check it with 4.0.7RC1 and 4.0.7RC2 Both makes a Seg Fault.
 [2001-09-18 07:05 UTC] sniper@php.net
Please generate a GDB backtrace of that crash.
(using the 4.0.7RC2)

--Jani

 [2001-09-18 07:07 UTC] bate at bate dot de
Stop Close this Bug Report i found the Bug.
Its a problem of the New beta Accelerator.


Bat[e]

btw. i report the problem to the zend masters :)
 [2001-09-18 07:09 UTC] derick@php.net
Not a PHP bug, but a Zend one...
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 22:01:30 2024 UTC