]> granicus.if.org Git - php/commitdiff
- fix build
authorPierre Joye <pajoye@php.net>
Thu, 14 Jul 2011 11:12:33 +0000 (11:12 +0000)
committerPierre Joye <pajoye@php.net>
Thu, 14 Jul 2011 11:12:33 +0000 (11:12 +0000)
ext/xsl/xsltprocessor.c

index 82a223787ae970071dcb875a8354b7d4366eafc2..59c8bed8b06ca9a7e8f8a73a7f9c0a3c15e733cf 100644 (file)
@@ -916,8 +916,9 @@ PHP_FUNCTION(xsl_xsltprocessor_set_security_prefs)
 {
        zval *id;
        xsl_object *intern;
-       DOM_GET_THIS(id);
        long securityPrefs, oldSecurityPrefs;
+
+       DOM_GET_THIS(id);
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &securityPrefs) == FAILURE) {
                return;
        }
@@ -933,9 +934,9 @@ PHP_FUNCTION(xsl_xsltprocessor_get_security_prefs)
 {
        zval *id;
        xsl_object *intern;
-       DOM_GET_THIS(id);
        long securityPrefs;
 
+       DOM_GET_THIS(id);
        if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "") == SUCCESS) {
                intern = (xsl_object *)zend_object_store_get_object(id TSRMLS_CC);
                RETURN_LONG(intern->securityPrefs);