#26381 [Opn->Fbk]: rand() without srand() doesn't work with certain php.ini
| From: | sniper@php.net | Date: | Tue, 02 Dec 2003 19:28:32 +0000 |
| Subject: | #26381 [Opn->Fbk]: rand() without srand() doesn't work with certain php.ini | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-51589@lists.php.net to get a copy of this message | ||
ID: 26381
Updated by: sniper@php.net
Reported By: spam at vrana dot cz
-Status: Open
+Status: Feedback
Bug Type: Scripting Engine problem
Operating System: Windows XP
PHP Version: 4CVS-2003-12-2
New Comment:
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2003-12-02 13:10:29] spam at vrana dot cz
Everything is written on http://bugs.php.net/?id=26381.
It seems that by some problem in processing php.ini is caused that
"rand() without srand() doesn't work". It's most probably only
side-effect of something wrong (like buffer-overflow).
------------------------------------------------------------------------
[2003-12-02 12:51:13] sniper@php.net
What problem?
How can we reproduce this?
------------------------------------------------------------------------
[2003-12-02 11:18:28] spam at vrana dot cz
Yes. The problem occurs also with CVS snapshot.
------------------------------------------------------------------------
[2003-12-02 11:04:40] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2003-12-02 10:57:15] spam at vrana dot cz
I can't believe myself, the problem is caused by something completely
different. I discovered that the problem occurs only under this
circumstances:
1. Lines in php.ini file ends by CRLF.
2. Windows Extensions part in php.ini is longer than 503 characters
(including new-lines).
I don't know what is it but it looks like buffer overflow or something
like that. So the problem is probably in php-src/main/php_ini.c or
somewhere near.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/26381
--
Edit this bug report at http://bugs.php.net/?id=26381&edit=1