summaryrefslogtreecommitdiff
path: root/main/php_ini.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2001-08-05 01:43:02 +0000
committerZeev Suraski <zeev@php.net>2001-08-05 01:43:02 +0000
commit1159c84ab7849099d4a717cd05c2d920102040ed (patch)
treeed4e48bb27e2ce5de5972fc3a29c1d24c818467a /main/php_ini.c
parentfcc035108f7b8d2e169c5a592227b3df84d0573e (diff)
downloadphp-git-1159c84ab7849099d4a717cd05c2d920102040ed.tar.gz
- TSRMLS_FETCH work
- whitespace fixes
Diffstat (limited to 'main/php_ini.c')
-rw-r--r--main/php_ini.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/main/php_ini.c b/main/php_ini.c
index 2d14300b3c..6e6ca748c1 100644
--- a/main/php_ini.c
+++ b/main/php_ini.c
@@ -228,7 +228,7 @@ int php_init_config(char *php_ini_path_override)
#ifdef PHP_WIN32
default_location = (char *) emalloc(512);
- if (!GetWindowsDirectory(default_location,255)) {
+ if (!GetWindowsDirectory(default_location, 255)) {
default_location[0]=0;
}
free_default_location=1;
@@ -272,7 +272,7 @@ int php_init_config(char *php_ini_path_override)
tmp.value.str.len = strlen(php_ini_opened_path);
tmp.value.str.val = zend_strndup(php_ini_opened_path, tmp.value.str.len);
tmp.type = IS_STRING;
- zend_hash_update(&configuration_hash, "cfg_file_path", sizeof("cfg_file_path"),(void *) &tmp,sizeof(zval), NULL);
+ zend_hash_update(&configuration_hash, "cfg_file_path", sizeof("cfg_file_path"), (void *) &tmp, sizeof(zval), NULL);
efree(php_ini_opened_path);
php_ini_opened_path = zend_strndup(tmp.value.str.val, tmp.value.str.len);
}
@@ -321,11 +321,11 @@ zval *cfg_get_entry(char *name, uint name_length)
/* {{{ cfg_get_long
*/
-PHPAPI int cfg_get_long(char *varname,long *result)
+PHPAPI int cfg_get_long(char *varname, long *result)
{
- zval *tmp,var;
+ zval *tmp, var;
- if (zend_hash_find(&configuration_hash,varname,strlen(varname)+1,(void **) &tmp)==FAILURE) {
+ if (zend_hash_find(&configuration_hash, varname, strlen(varname)+1, (void **) &tmp)==FAILURE) {
*result=(long)NULL;
return FAILURE;
}
@@ -339,11 +339,11 @@ PHPAPI int cfg_get_long(char *varname,long *result)
/* {{{ cfg_get_double
*/
-PHPAPI int cfg_get_double(char *varname,double *result)
+PHPAPI int cfg_get_double(char *varname, double *result)
{
- zval *tmp,var;
+ zval *tmp, var;
- if (zend_hash_find(&configuration_hash,varname,strlen(varname)+1,(void **) &tmp)==FAILURE) {
+ if (zend_hash_find(&configuration_hash, varname, strlen(varname)+1, (void **) &tmp)==FAILURE) {
*result=(double)0;
return FAILURE;
}
@@ -361,7 +361,7 @@ PHPAPI int cfg_get_string(char *varname, char **result)
{
zval *tmp;
- if (zend_hash_find(&configuration_hash,varname,strlen(varname)+1,(void **) &tmp)==FAILURE) {
+ if (zend_hash_find(&configuration_hash, varname, strlen(varname)+1, (void **) &tmp)==FAILURE) {
*result=NULL;
return FAILURE;
}