php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #63811
Patch p revision 2012-12-20 03:50 UTC by nickolai at csail dot mit dot edu

Patch p for *General Issues Bug #63811

Patch version 2012-12-20 03:50 UTC

Return to Bug #63811 | Download this patch
Patch Revisions:

Developer: nickolai@csail.mit.edu

--- php-5.4.9-ref/main/streams/userspace.c	2012-11-21 00:12:20.000000000 -0500
+++ php-5.4.9/main/streams/userspace.c	2012-12-19 21:35:11.683190372 -0500
@@ -458,7 +458,7 @@
 	us->wrapper = uwrap;
 
 	us->object = user_stream_create_object(uwrap, context TSRMLS_CC);
-	if(us == NULL) {
+	if(us->object == NULL) {
 		FG(user_stream_current_filename) = NULL;
 		efree(us);
 		return NULL;
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 09:01:30 2024 UTC