php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61559 Test Bug - ext/standard/tests/streams/bug61115-1
Submitted: 2012-03-29 22:45 UTC Modified: 2012-03-29 23:35 UTC
From: mattficken@php.net Assigned: shein (profile)
Status: Closed Package: Testing related
PHP Version: 5.4.0 OS: Windows
Private report: No CVE-ID: None
 [2012-03-29 22:45 UTC] mattficken@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

Patches

bug61115-1.patch.txt (last revision 2012-04-02 23:24 UTC by mattficken@php.net)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-03-29 23:35 UTC] shein@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: shein
 [2012-03-29 23:35 UTC] shein@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-04-02 23:24 UTC] mattficken@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-04-02 23:25 UTC] mattficken@php.net
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).
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri May 24 07:01:26 2019 UTC