ID:               30153
 User updated by:  OvdSpek at LIACS dot NL
 Reported By:      OvdSpek at LIACS dot NL
 Status:           Bogus
 Bug Type:         Zlib Related
 Operating System: *
 PHP Version:      4CVS, 5CVS (20040929)
 New Comment:

Why is this not considered a bug?
Any user would classify this solveable 'thing' as a bug.


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

[2004-10-01 12:07:20] [EMAIL PROTECTED]

This is not a support forum, there is no bug here. Stop reopening it.

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

[2004-10-01 11:38:18] OvdSpek at LIACS dot NL

And why are there no 'friends' that do not abort?

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

[2004-10-01 11:21:59] OvdSpek at LIACS dot NL

So what does the allow_failure parameter do?

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

[2004-10-01 11:19:08] [EMAIL PROTECTED]

No, emalloc() and friends abort in case of a memory overflow, Checking
for the return value does not make any sense.

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

[2004-10-01 11:17:11] OvdSpek at LIACS dot NL

> which results in graceful request termination.

Is a call to exit() graceful request termination?
In my opinion, that's just killing the entire process.
And in the case of a multi-threaded server, that's equivalent to
killing the entire server.

BTW, erealloc has an allow_failure parameter. How about passing true at
/php4/ext/zlib/zlib.c:628?

ZEND_API void *_erealloc(void *ptr, size_t size, int allow_failure
ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC)

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

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

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

Reply via email to