Edit report at https://bugs.php.net/bug.php?id=61559&edit=1

 ID:                 61559
 Comment by:         mattfic...@php.net
 Reported by:        mattfic...@php.net
 Summary:            Test Bug - ext/standard/tests/streams/bug61115-1
 Status:             Closed
 Type:               Bug
 Package:            Testing related
 Operating System:   Windows
 PHP Version:        5.4.0
 Assigned To:        shein
 Block user comment: N
 Private report:     N

 New Comment:

Both Windows and Linux have slightly different error messages.

The current error message fails for me on both Windows and Linux.

My above patch fixes the Linux error message and forks the test into a Windows 
specific test (with the correct Windows error message).


Previous Comments:
------------------------------------------------------------------------
[2012-04-02 23:24:13] mattfic...@php.net

The following patch has been added/updated:

Patch Name: bug61115-1.patch.txt
Revision:   1333409053
URL:        
https://bugs.php.net/patch-display.php?bug=61559&patch=bug61115-1.patch.txt&revision=1333409053

------------------------------------------------------------------------
[2012-03-29 23:35:17] sh...@php.net

This bug has been fixed in SVN.

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/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.

Please, update, it should be fixed: http://git.php.net/?p=php-
src.git;a=blobdiff;f=ext/standard/tests/streams/bug61115-
1.phpt;h=573496edf0e2dbf0a77dc771f77c815098002a6f;hp=43c54b497423cfb7c21b0a2a4e8b
5e769d41956e;hb=e1352b04165142c945d1fc98c0bcd0b85c3f659d;hpb=55b1e612421c52ea0bb8
a3772095c5bbd62045db

------------------------------------------------------------------------
[2012-03-29 22:45:01] mattfic...@php.net

Description:
------------
Looks like this is a test bug, with the fatal error message text being slightly 
different than expected.

Might have to fork test into Windows and non-Windows tests.

Test Diff
001+ Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to 
allocate 2147483647 bytes) in 
C:\php-sdk\0cf70b1\php-test-pack-5.4.1RC1-dev\ext\standard\tests\streams\bug61115-1.php
 on line 5
001- Fatal error: Allowed memory size of %d bytes exhausted at %s:%d (tried to 
allocate %d bytes) in %s on line %d

Test script:
---------------
see ext/standard/tests/streams/bug61115-1.phpt

Expected result:
----------------
Pass
--
Fatal error: Allowed memory size of %d bytes exhausted at %s:%d (tried to 
allocate %d bytes) in %s on line %d

Actual result:
--------------
Fail
--
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to 
allocate 2147483647 bytes) in 
C:\php-sdk\0cf70b1\php-test-pack-5.4.1RC1-dev\ext\standard\tests\streams\bug61115-1.php
 on line 5


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



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

Reply via email to