diff options
author | Danack <Danack@basereality.com> | 2015-03-01 13:44:55 +0000 |
---|---|---|
committer | Danack <Danack@basereality.com> | 2015-03-01 13:44:55 +0000 |
commit | c57bde7c9e2f4ac3e93f096eaa93d4ab0133915d (patch) | |
tree | 97346fc5db3d85d5c0a7934440d5f429f3a07a0e /ext/spl/spl_fixedarray.c | |
parent | a519838ece18dd1babce5b6683b04e99e7816184 (diff) | |
download | php-git-c57bde7c9e2f4ac3e93f096eaa93d4ab0133915d.tar.gz |
Fixed SplFixedArray and tests.
Diffstat (limited to 'ext/spl/spl_fixedarray.c')
-rw-r--r-- | ext/spl/spl_fixedarray.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/spl/spl_fixedarray.c b/ext/spl/spl_fixedarray.c index cd83a17b56..dcac83d60d 100644 --- a/ext/spl/spl_fixedarray.c +++ b/ext/spl/spl_fixedarray.c @@ -561,6 +561,13 @@ SPL_METHOD(SplFixedArray, __construct) spl_fixedarray_object *intern; zend_long size = 0; + int rv; + zend_error_handling zeh; + +// zend_replace_error_handling(EH_THROW, spl_ce_InvalidArgumentException, &zeh TSRMLS_CC); +// rv = zend_parse_parameters(ZEND_NUM_ARGS(), "|l", &size); +// zend_restore_error_handling(&zeh TSRMLS_CC); + if (zend_parse_parameters(ZEND_NUM_ARGS(), "|l", &size) == FAILURE) { return; } |