[thrift] Error checking for T_OBJECT serialization
authordweatherford <dev-null@apache.org>
Tue, 25 Mar 2008 03:15:10 +0000 (03:15 +0000)
committerdweatherford <dev-null@apache.org>
Tue, 25 Mar 2008 03:15:10 +0000 (03:15 +0000)
commit0b8a382c00c6756bd4611e2aa7545d8fe8e82598
treeefa456d465f24737c90f7f3d6455e0913b221882
parent62f0d5428d00281ca412164c478c850cfa45305d
[thrift] Error checking for T_OBJECT serialization

Summary: Avoid segfaulting via calling zend_fetch_class_entry on something
  that might not actually be an object; throw an exception instead.
Reviewed by: shire

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665581 13f79535-47bb-0310-9956-ffa450edef68
lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp