ID:               51024
 Updated by:       [email protected]
 Reported By:      mikerudra at yahoo dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: Redhat EL
 PHP Version:      5.2SVN-2010-02-12 (snap)
 New Comment:

You're also getting a warning:

PHP Warning:  str_repeat(): Second argument has to be greater than or
equal to 0

This is not crashing, segfaulting or anything like that.




Previous Comments:
------------------------------------------------------------------------

[2010-02-12 01:20:47] mikerudra at yahoo dot com

Description:
------------
Hi guys, 
I checked this bug report
http://bugs.php.net/bug.php?id=50207
and I updated to a release version from today.
The bug is still there as you can see here

http://nats.hotladies.com/nfo.php


Please tell me what is to be done, I need to install NATS and they do
not accept 5.3, I need the 5.2 version, please help.
Thanks

Reproduce code:
---------------
$s = str_repeat('A', pow(2,31));
$s .= 'B'; // fails with segfault
printf("strlen: %u last-char: %c", strlen($s), $s[pow(2,31)]);



Expected result:
----------------
Donno, should just work?! Is used by NATS and I got an error working
with ioncube encoded source code...

Actual result:
--------------
Notice: Uninitialized string offset: -2147483648 in
/var/www/vhosts/nats.hotladies.com/nats/www/nfo.php on line 7
strlen: 1 last-char: � 


------------------------------------------------------------------------


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

Reply via email to