if (ZEND_NUM_ARGS() > 1) {
convert_to_boolean_ex(z_preserve_keys);
- preserve_keys = Z_LVAL_PP(z_preserve_keys);
+ preserve_keys = (zend_bool) Z_LVAL_PP(z_preserve_keys);
}
/* Initialize return array */
#include "php_standard.h"
#include "php_math.h"
#include "ext/standard/info.h"
+#include "ext/standard/url_scanner.h"
#include "zend_operators.h"
#include <stdarg.h>
#include <stdlib.h>
BG(user_tick_functions) = NULL;
zend_hash_init(&BG(sm_protected_env_vars), 5, NULL, NULL, 1);
BG(sm_allowed_env_vars) = NULL;
+
+#ifdef TRANS_SID
+ memset(&BG(url_adapt_state), 0, sizeof(BG(url_adapt_state)));
+#endif
+
#ifdef PHP_WIN32
CoInitialize(NULL);
#endif
#define BUFSIZE 256
#endif
-PHP_RINIT_FUNCTION(url_scanner) {
+PHP_RINIT_FUNCTION(url_scanner)
+{
url_adapt(NULL,0,NULL,NULL);
return SUCCESS;
}
-PHP_RSHUTDOWN_FUNCTION(url_scanner) {
+
+PHP_RSHUTDOWN_FUNCTION(url_scanner)
+{
url_adapt(NULL,0,NULL,NULL);
return SUCCESS;
}
-static char *url_attr_addon(const char *tag,const char *attr,const char *val,const char *buf) {
+static char *url_attr_addon(const char *tag,const char *attr,const char *val,const char *buf)
+{
int flag = 0;
PLS_FETCH();
- if(!strcasecmp(tag,"a")&&!strcasecmp(attr,"href")) {
+ if(!strcasecmp(tag,"a") && !strcasecmp(attr,"href")) {
flag = 1;
} else if(!strcasecmp(tag,"area" ) && !strcasecmp(attr,"href" )) {
flag = 1;
if(src==NULL) {
US.state=STATE_NORMAL;
- if(US.tag) {efree(US.tag); US.tag =NULL; }
- if(US.attr) {efree(US.attr); US.attr=NULL; }
- if(US.val) {efree(US.val); US.val =NULL; }
+ if(US.tag) { efree(US.tag); US.tag =NULL; }
+ if(US.attr) { efree(US.attr); US.attr=NULL; }
+ if(US.val) { efree(US.val); US.val =NULL; }
return NULL;
}
#include "ext/xml/php_xml.h"
#include "ext/standard/php_incomplete_class.h"
#include "ext/standard/base64.h"
+#include "ext/standard/info.h"
#define WDDX_BUF_LEN 256
#define PHP_CLASS_NAME_VAR "php_class_name"
}
/* }}} */
+
PHP_MINFO_FUNCTION(wddx)
{
php_info_print_table_start();