Browse Source

- More whitespace fixes while I'm at it.

PHP-4.0.6
Andi Gutmans 26 years ago
parent
commit
acd56b0891
  1. 2
      Zend/zend_API.c
  2. 2
      Zend/zend_builtin_functions.c
  3. 2
      Zend/zend_hash.c
  4. 4
      Zend/zend_language_scanner.l
  5. 2
      Zend/zend_operators.c
  6. 2
      Zend/zend_operators.h

2
Zend/zend_API.c

@ -873,7 +873,7 @@ ZEND_API int zend_set_hash_symbol(zval *symbol, char *name, int name_length,
symbol->is_ref = is_ref;
va_start(symbol_table_list, num_symbol_tables);
while(num_symbol_tables-- > 0) {
while (num_symbol_tables-- > 0) {
symbol_table = va_arg(symbol_table_list, HashTable *);
zend_hash_update(symbol_table, name, name_length + 1, &symbol, sizeof(zval *), NULL);
zval_add_ref(&symbol);

2
Zend/zend_builtin_functions.c

@ -740,7 +740,7 @@ ZEND_FUNCTION(get_included_files)
array_init(return_value);
zend_hash_internal_pointer_reset(&EG(included_files));
while(zend_hash_get_current_key(&EG(included_files), &entry, NULL, 1) == HASH_KEY_IS_STRING) {
while (zend_hash_get_current_key(&EG(included_files), &entry, NULL, 1) == HASH_KEY_IS_STRING) {
add_next_index_string(return_value,entry,0);
zend_hash_move_forward(&EG(included_files));
}

2
Zend/zend_hash.c

@ -52,7 +52,7 @@
return func; \
} \
} \
} while(0); \
} while (0); \
}

4
Zend/zend_language_scanner.l

@ -95,12 +95,12 @@
do { \
char *p = (s),*boundary = p+(l); \
\
while(p<boundary) { \
while (p<boundary) { \
if (*p++=='\n') { \
CG(zend_lineno)++; \
} \
} \
} while(0)
} while (0)
#define HANDLE_NEWLINE(c) \
{ \

2
Zend/zend_operators.c

@ -1331,7 +1331,7 @@ static void increment_string(zval *str)
return;
}
while(pos >= 0) {
while (pos >= 0) {
ch = s[pos];
if (ch >= 'a' && ch <= 'z') {
if (ch == 'z') {

2
Zend/zend_operators.h

@ -91,7 +91,7 @@ static inline int is_numeric_string(char *str, int length, long *lval, double *d
if (length>16) {
register char *ptr=str, *end=str+length;
while(ptr<end) {
while (ptr<end) {
switch(*ptr++) {
case 'e':
case 'E':

Loading…
Cancel
Save