(zend_fetch_resource) added warinig if resource is of wrong type

This commit is contained in:
Thies C. Arntzen committed 1999-10-13 12:59:48 +00:00
1 parent 489a49d2fe
commit 6e07d060fc
1 file changed
+4
+4
View File
@@ -196,6 +196,10 @@ ZEND_API void *zend_fetch_resource(zval **passed_id, int default_id, char *resou
}
}
va_end(resource_types);
if (resource_type_name)
zend_error(E_WARNING, "Supplied resource is not a valid %s resource", resource_type_name);
return NULL;
}