From 537636373c59b3ce33f15311d2bc89ce72d5cc45 Mon Sep 17 00:00:00 2001 From: Toon Schoenmakers Date: Wed, 16 Sep 2015 15:29:58 +0200 Subject: Added support for setting a std::function as an exception handler This is so far only tested with php 5.5.9, might not work on versions below that. --- include/value.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/value.h') diff --git a/include/value.h b/include/value.h index 532d0c1..5b746a1 100644 --- a/include/value.h +++ b/include/value.h @@ -33,6 +33,7 @@ namespace Php { */ class Base; class ValueIterator; +class Parameters; template class HashMember; /** @@ -1209,6 +1210,11 @@ protected: friend class Callable; friend class Script; friend class ConstantImpl; + + /** + * Friend functions which have to access that zval directly + */ + friend Value set_exception_handler(const std::function &handler); }; /** -- cgit v1.2.3