@@ -745,13 +745,12 @@ PHP_FUNCTION(xsl_xsltprocessor_transform_to_xml)
745
745
PHP_FUNCTION (xsl_xsltprocessor_set_parameter )
746
746
{
747
747
748
- zval * id ;
748
+ zval * id = ZEND_THIS ;
749
749
zval * array_value , * entry , new_string ;
750
750
xsl_object * intern ;
751
751
char * namespace ;
752
752
size_t namespace_len ;
753
753
zend_string * string_key , * name , * value ;
754
- DOM_GET_THIS (id );
755
754
756
755
if (zend_parse_parameters_ex (ZEND_PARSE_PARAMS_QUIET , ZEND_NUM_ARGS (), "sa" , & namespace , & namespace_len , & array_value ) == SUCCESS ) {
757
756
intern = Z_XSL_P (id );
@@ -790,15 +789,13 @@ PHP_FUNCTION(xsl_xsltprocessor_set_parameter)
790
789
*/
791
790
PHP_FUNCTION (xsl_xsltprocessor_get_parameter )
792
791
{
793
- zval * id ;
792
+ zval * id = ZEND_THIS ;
794
793
char * namespace ;
795
794
size_t namespace_len = 0 ;
796
795
zval * value ;
797
796
zend_string * name ;
798
797
xsl_object * intern ;
799
798
800
- DOM_GET_THIS (id );
801
-
802
799
if (zend_parse_parameters (ZEND_NUM_ARGS (), "sS" , & namespace , & namespace_len , & name ) == FAILURE ) {
803
800
RETURN_THROWS ();
804
801
}
@@ -815,14 +812,12 @@ PHP_FUNCTION(xsl_xsltprocessor_get_parameter)
815
812
*/
816
813
PHP_FUNCTION (xsl_xsltprocessor_remove_parameter )
817
814
{
818
- zval * id ;
815
+ zval * id = ZEND_THIS ;
819
816
size_t namespace_len = 0 ;
820
817
char * namespace ;
821
818
zend_string * name ;
822
819
xsl_object * intern ;
823
820
824
- DOM_GET_THIS (id );
825
-
826
821
if (zend_parse_parameters (ZEND_NUM_ARGS (), "sS" , & namespace , & namespace_len , & name ) == FAILURE ) {
827
822
RETURN_THROWS ();
828
823
}
@@ -839,13 +834,11 @@ PHP_FUNCTION(xsl_xsltprocessor_remove_parameter)
839
834
*/
840
835
PHP_FUNCTION (xsl_xsltprocessor_register_php_functions )
841
836
{
842
- zval * id ;
837
+ zval * id = ZEND_THIS ;
843
838
xsl_object * intern ;
844
839
zval * array_value , * entry , new_string ;
845
840
zend_string * name ;
846
841
847
- DOM_GET_THIS (id );
848
-
849
842
if (zend_parse_parameters_ex (ZEND_PARSE_PARAMS_QUIET , ZEND_NUM_ARGS (), "a" , & array_value ) == SUCCESS ) {
850
843
intern = Z_XSL_P (id );
851
844
@@ -878,11 +871,10 @@ PHP_FUNCTION(xsl_xsltprocessor_register_php_functions)
878
871
/* {{{ proto bool xsl_xsltprocessor_set_profiling(string filename) */
879
872
PHP_FUNCTION (xsl_xsltprocessor_set_profiling )
880
873
{
881
- zval * id ;
874
+ zval * id = ZEND_THIS ;
882
875
xsl_object * intern ;
883
876
char * filename = NULL ;
884
877
size_t filename_len ;
885
- DOM_GET_THIS (id );
886
878
887
879
if (zend_parse_parameters_ex (ZEND_PARSE_PARAMS_QUIET , ZEND_NUM_ARGS (), "p!" , & filename , & filename_len ) == SUCCESS ) {
888
880
intern = Z_XSL_P (id );
@@ -904,11 +896,10 @@ PHP_FUNCTION(xsl_xsltprocessor_set_profiling)
904
896
/* {{{ proto int xsl_xsltprocessor_set_security_prefs(int securityPrefs) */
905
897
PHP_FUNCTION (xsl_xsltprocessor_set_security_prefs )
906
898
{
907
- zval * id ;
899
+ zval * id = ZEND_THIS ;
908
900
xsl_object * intern ;
909
901
zend_long securityPrefs , oldSecurityPrefs ;
910
902
911
- DOM_GET_THIS (id );
912
903
if (zend_parse_parameters (ZEND_NUM_ARGS (), "l" , & securityPrefs ) == FAILURE ) {
913
904
RETURN_THROWS ();
914
905
}
@@ -924,10 +915,9 @@ PHP_FUNCTION(xsl_xsltprocessor_set_security_prefs)
924
915
/* {{{ proto int xsl_xsltprocessor_get_security_prefs() */
925
916
PHP_FUNCTION (xsl_xsltprocessor_get_security_prefs )
926
917
{
927
- zval * id ;
918
+ zval * id = ZEND_THIS ;
928
919
xsl_object * intern ;
929
920
930
- DOM_GET_THIS (id );
931
921
if (zend_parse_parameters_ex (ZEND_PARSE_PARAMS_QUIET , ZEND_NUM_ARGS (), "" ) == SUCCESS ) {
932
922
intern = Z_XSL_P (id );
933
923
RETURN_LONG (intern -> securityPrefs );
0 commit comments