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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 01:01:30 2025 UTC