#26381 [Csd]: rand() without srand() doesn't work with certain php.ini

2004-01-26 Thread sniper
 ID:   26381
 Updated by:   [EMAIL PROTECTED]
 Reported By:  spam at vrana dot cz
 Status:   Closed
 Bug Type: Scripting Engine problem
 Operating System: win32 only
 PHP Version:  4CVS-2003-12-7
 New Comment:

http://cvs.php.net/diff.php/php-src/ext/standard/basic_functions.c?r1=1.543.2.29r2=1.543.2.30ty=u



Previous Comments:


[2004-01-20 03:47:12] spam at vrana dot cz

I'm curious where the problem was. Can you please tell me?



[2004-01-19 14:04:45] [EMAIL PROTECTED]

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.





[2003-12-07 13:54:15] [EMAIL PROTECTED]

Indeed, this does happen with the php.ini-dist..
but doesn't if you do 'php -n' (no ini file)




[2003-12-03 03:31:52] spam at vrana dot cz

It behaves like that with php.ini-dist. It doesn't with
php.ini-recommended. If I remove part Dynamic Extensions in
php.ini-dist, it disappears. I mean part from

;;
; Dynamic Extensions ;
;;

to

;;;
; Module Settings ;
;;;

You know that everything is commented in this part in php.ini-dist.



[2003-12-02 17:11:37] [EMAIL PROTECTED]

We need the php.ini file causing the problems.




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=26381edit=1


#26381 [Csd]: rand() without srand() doesn't work with certain php.ini

2004-01-20 Thread spam at vrana dot cz
 ID:   26381
 User updated by:  spam at vrana dot cz
 Reported By:  spam at vrana dot cz
 Status:   Closed
 Bug Type: Scripting Engine problem
 Operating System: win32 only
 PHP Version:  4CVS-2003-12-7
 New Comment:

I'm curious where the problem was. Can you please tell me?


Previous Comments:


[2004-01-19 14:04:45] [EMAIL PROTECTED]

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.





[2003-12-07 13:54:15] [EMAIL PROTECTED]

Indeed, this does happen with the php.ini-dist..
but doesn't if you do 'php -n' (no ini file)




[2003-12-03 03:31:52] spam at vrana dot cz

It behaves like that with php.ini-dist. It doesn't with
php.ini-recommended. If I remove part Dynamic Extensions in
php.ini-dist, it disappears. I mean part from

;;
; Dynamic Extensions ;
;;

to

;;;
; Module Settings ;
;;;

You know that everything is commented in this part in php.ini-dist.



[2003-12-02 17:11:37] [EMAIL PROTECTED]

We need the php.ini file causing the problems.




[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=26381edit=1