having an exception instance

From: Date: Wed, 16 May 2012 03:45:05 +0000
Subject: having an exception instance
Groups: php.internals 
Request: Send a blank email to internals+get-60590@lists.php.net to get a copy of this message
Hi, I'm calling this function: static zend_class_entry *create_class_entry_runtime_exception(TSRMLS_C) { zend_class_entry **pce; if (zend_hash_find(CG(class_table), "runtimeexception", sizeof("RuntimeException"), (void **) &pce) == SUCCESS) { return *pce; } } but it's causing a segfault. The function is being called in PHP_MINIT_FUNCTION and assigning the return value to a static zend_class_entry *runtime_exception_ptr My final goal is to be able to easily call zend_throw_exception and pass runtime_exception_ptr pointer.

« previous php.internals (#60590) next »