Lines Matching refs:intern

194 	xsl_object *intern;  in xsl_ext_function_php()  local
209 intern = (xsl_object *) tctxt->_private; in xsl_ext_function_php()
210 if (intern == NULL) { in xsl_ext_function_php()
215 else if (intern->registerPhpFunctions == 0) { in xsl_ext_function_php()
259 dom_object *domintern = (dom_object *)intern->doc; in xsl_ext_function_php()
335 …} else if ( intern->registerPhpFunctions == 2 && zend_hash_exists(intern->registered_phpfunctions,… in xsl_ext_function_php()
352 if (intern->node_list == NULL) { in xsl_ext_function_php()
353 ALLOC_HASHTABLE(intern->node_list); in xsl_ext_function_php()
354 zend_hash_init(intern->node_list, 0, NULL, ZVAL_PTR_DTOR, 0); in xsl_ext_function_php()
357 zend_hash_next_index_insert(intern->node_list, &retval, sizeof(zval *), NULL); in xsl_ext_function_php()
406 xsl_object *intern; in PHP_FUNCTION() local
443 intern = (xsl_object *)zend_object_store_get_object(id TSRMLS_CC); in PHP_FUNCTION()
460 intern->hasKeys = 1; in PHP_FUNCTION()
467 intern->hasKeys = clone_docu; in PHP_FUNCTION()
470 if ((oldsheetp = (xsltStylesheetPtr)intern->ptr)) { in PHP_FUNCTION()
472 if (((xsltStylesheetPtr) intern->ptr)->_private != NULL) { in PHP_FUNCTION()
473 ((xsltStylesheetPtr) intern->ptr)->_private = NULL; in PHP_FUNCTION()
475 xsltFreeStylesheet((xsltStylesheetPtr) intern->ptr); in PHP_FUNCTION()
476 intern->ptr = NULL; in PHP_FUNCTION()
484 static xmlDocPtr php_xsl_apply_stylesheet(zval *id, xsl_object *intern, xsltStylesheetPtr style, zv… in php_xsl_apply_stylesheet() argument
515 if (intern->profiling) { in php_xsl_apply_stylesheet()
516 if (php_check_open_basedir(intern->profiling TSRMLS_CC)) { in php_xsl_apply_stylesheet()
519 f = VCWD_FOPEN(intern->profiling, "w"); in php_xsl_apply_stylesheet()
525 if (intern->parameter) { in php_xsl_apply_stylesheet()
526 params = php_xsl_xslt_make_params(intern->parameter, 0 TSRMLS_CC); in php_xsl_apply_stylesheet()
529 intern->doc = emalloc(sizeof(php_libxml_node_object)); in php_xsl_apply_stylesheet()
530 memset(intern->doc, 0, sizeof(php_libxml_node_object)); in php_xsl_apply_stylesheet()
532 if (intern->hasKeys == 1) { in php_xsl_apply_stylesheet()
536 intern->doc->document = object->document; in php_xsl_apply_stylesheet()
539 php_libxml_increment_doc_ref(intern->doc, doc TSRMLS_CC); in php_xsl_apply_stylesheet()
542 ctxt->_private = (void *) intern; in php_xsl_apply_stylesheet()
555 secPrefsValue = intern->securityPrefs; in php_xsl_apply_stylesheet()
564 if (intern->securityPrefsSet == 0) { in php_xsl_apply_stylesheet()
622 if (intern->node_list != NULL) { in php_xsl_apply_stylesheet()
623 zend_hash_destroy(intern->node_list); in php_xsl_apply_stylesheet()
624 FREE_HASHTABLE(intern->node_list); in php_xsl_apply_stylesheet()
625 intern->node_list = NULL; in php_xsl_apply_stylesheet()
628 php_libxml_decrement_doc_ref(intern->doc TSRMLS_CC); in php_xsl_apply_stylesheet()
629 efree(intern->doc); in php_xsl_apply_stylesheet()
630 intern->doc = NULL; in php_xsl_apply_stylesheet()
656 xsl_object *intern; in PHP_FUNCTION() local
659 intern = (xsl_object *)zend_object_store_get_object(id TSRMLS_CC); in PHP_FUNCTION()
660 sheetp = (xsltStylesheetPtr) intern->ptr; in PHP_FUNCTION()
666 newdocp = php_xsl_apply_stylesheet(id, intern, sheetp, docp TSRMLS_CC); in PHP_FUNCTION()
713 xsl_object *intern; in PHP_FUNCTION() local
716 intern = (xsl_object *)zend_object_store_get_object(id TSRMLS_CC); in PHP_FUNCTION()
717 sheetp = (xsltStylesheetPtr) intern->ptr; in PHP_FUNCTION()
723 newdocp = php_xsl_apply_stylesheet(id, intern, sheetp, docp TSRMLS_CC); in PHP_FUNCTION()
745 xsl_object *intern; in PHP_FUNCTION() local
748 intern = (xsl_object *)zend_object_store_get_object(id TSRMLS_CC); in PHP_FUNCTION()
749 sheetp = (xsltStylesheetPtr) intern->ptr; in PHP_FUNCTION()
755 newdocp = php_xsl_apply_stylesheet(id, intern, sheetp, docp TSRMLS_CC); in PHP_FUNCTION()
780 xsl_object *intern; in PHP_FUNCTION() local
787 intern = (xsl_object *)zend_object_store_get_object(id TSRMLS_CC); in PHP_FUNCTION()
803 … zend_hash_update(intern->parameter, string_key, string_key_len, &new_string, sizeof(zval*), NULL); in PHP_FUNCTION()
810 intern = (xsl_object *)zend_object_store_get_object(id TSRMLS_CC); in PHP_FUNCTION()
815 zend_hash_update(intern->parameter, name, name_len + 1, &new_string, sizeof(zval*), NULL); in PHP_FUNCTION()
832 xsl_object *intern; in PHP_FUNCTION() local
839 intern = (xsl_object *)zend_object_store_get_object(id TSRMLS_CC); in PHP_FUNCTION()
840 if ( zend_hash_find(intern->parameter, name, name_len + 1, (void**) &value) == SUCCESS) { in PHP_FUNCTION()
856 xsl_object *intern; in PHP_FUNCTION() local
863 intern = (xsl_object *)zend_object_store_get_object(id TSRMLS_CC); in PHP_FUNCTION()
864 if ( zend_hash_del(intern->parameter, name, name_len + 1) == SUCCESS) { in PHP_FUNCTION()
877 xsl_object *intern; in PHP_FUNCTION() local
885 intern = (xsl_object *)zend_object_store_get_object(id TSRMLS_CC); in PHP_FUNCTION()
895 …zend_hash_update(intern->registered_phpfunctions, Z_STRVAL_PP(entry), Z_STRLEN_PP(entry) + 1, &new… in PHP_FUNCTION()
898 intern->registerPhpFunctions = 2; in PHP_FUNCTION()
901 intern = (xsl_object *)zend_object_store_get_object(id TSRMLS_CC); in PHP_FUNCTION()
905 …zend_hash_update(intern->registered_phpfunctions, name, name_len + 1, &new_string, sizeof(zval*), … in PHP_FUNCTION()
906 intern->registerPhpFunctions = 2; in PHP_FUNCTION()
909 intern = (xsl_object *)zend_object_store_get_object(id TSRMLS_CC); in PHP_FUNCTION()
910 intern->registerPhpFunctions = 1; in PHP_FUNCTION()
920 xsl_object *intern; in PHP_FUNCTION() local
926 intern = (xsl_object *)zend_object_store_get_object(id TSRMLS_CC); in PHP_FUNCTION()
927 if (intern->profiling) { in PHP_FUNCTION()
928 efree(intern->profiling); in PHP_FUNCTION()
931 intern->profiling = estrndup(filename,filename_len); in PHP_FUNCTION()
933 intern->profiling = NULL; in PHP_FUNCTION()
946 xsl_object *intern; in PHP_FUNCTION() local
953 intern = (xsl_object *)zend_object_store_get_object(id TSRMLS_CC); in PHP_FUNCTION()
954 oldSecurityPrefs = intern->securityPrefs; in PHP_FUNCTION()
955 intern->securityPrefs = securityPrefs; in PHP_FUNCTION()
957 intern->securityPrefsSet = 1; in PHP_FUNCTION()
966 xsl_object *intern; in PHP_FUNCTION() local
970 intern = (xsl_object *)zend_object_store_get_object(id TSRMLS_CC); in PHP_FUNCTION()
971 RETURN_LONG(intern->securityPrefs); in PHP_FUNCTION()