- MAKE_STD_ZVAL(zstream);
- if (!obj) {
- obj = zend_object_store_get_object(getThis() TSRMLS_CC);
- }
- stream = php_stream_alloc(&php_pqlob_stream_ops, obj, NULL, "r+b");
- stream->flags |= PHP_STREAM_FLAG_NO_FCLOSE;
- zend_list_addref(obj->intern->stream = stream->rsrc_id);
- php_stream_to_zval(stream, zstream);
-
- zend_get_std_object_handlers()->write_property(getThis(), &zmember, zstream, NULL TSRMLS_CC);
+ obj->intern->stream = php_stream_alloc(&php_pqlob_stream_ops, obj, NULL, "r+b");
+ obj->intern->stream->flags |= PHP_STREAM_FLAG_NO_FCLOSE;
+ php_stream_to_zval(obj->intern->stream, zstream);