summaryrefslogtreecommitdiff
path: root/ext/standard/basic_functions.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>1999-09-05 19:04:40 +0000
committerAndi Gutmans <andi@php.net>1999-09-05 19:04:40 +0000
commit14d9a59f1cbc9c8f9cf9e4d955549dc8c1fc7334 (patch)
tree890afb23001883a0806ce9c380c88f7ca50673fb /ext/standard/basic_functions.c
parent99947a251ed175582243f66bcd014478ae975de6 (diff)
downloadphp-git-14d9a59f1cbc9c8f9cf9e4d955549dc8c1fc7334.tar.gz
- Make dir functions compile in Win32
- Fix too early memory manager initialization (For you Thies)
Diffstat (limited to 'ext/standard/basic_functions.c')
-rw-r--r--ext/standard/basic_functions.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index 9af58daa60..a219fc2002 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -1629,9 +1629,9 @@ PHP_FUNCTION(set_magic_quotes_runtime)
if (ARG_COUNT(ht)!=1 || getParameters(ht, 1, &new_setting)==FAILURE) {
RETURN_FALSE;
}
- convert_to_long(new_setting);
+ convert_to_boolean(new_setting);
- PG(magic_quotes_runtime)=new_setting->value.lval;
+ PG(magic_quotes_runtime) = (zend_bool) new_setting->value.lval;
RETURN_TRUE;
}
@@ -2346,6 +2346,8 @@ PHP_FUNCTION(defined)
Returns true if client disconnected */
PHP_FUNCTION(connection_aborted)
{
+ PLS_FETCH();
+
RETURN_LONG(PG(connection_status)&PHP_CONNECTION_ABORTED);
}
/* }}} */
@@ -2354,6 +2356,7 @@ PHP_FUNCTION(connection_aborted)
Returns true if script timed out */
PHP_FUNCTION(connection_timeout)
{
+ PLS_FETCH();
RETURN_LONG(PG(connection_status)&PHP_CONNECTION_TIMEOUT);
}
@@ -2363,6 +2366,7 @@ PHP_FUNCTION(connection_timeout)
Returns the connection status bitfield */
PHP_FUNCTION(connection_status)
{
+ PLS_FETCH();
RETURN_LONG(PG(connection_status));
}
@@ -2374,6 +2378,7 @@ PHP_FUNCTION(ignore_user_abort)
{
pval *arg;
int old_setting;
+ PLS_FETCH();
old_setting = PG(ignore_user_abort);
switch (ARG_COUNT(ht)) {
@@ -2383,8 +2388,8 @@ PHP_FUNCTION(ignore_user_abort)
if (getParameters(ht,1,&arg) == FAILURE) {
RETURN_FALSE;
}
- convert_to_long(arg);
- PG(ignore_user_abort)=arg->value.lval;
+ convert_to_boolean(arg);
+ PG(ignore_user_abort) = (zend_bool) arg->value.lval;
break;
default:
WRONG_PARAM_COUNT;