mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-24 01:15:41 +00:00
Compare commits
13
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c8a60f5c03 | ||
|
|
cbce251dab | ||
|
|
c939250414 | ||
|
|
a36c434dbb | ||
|
|
8e46600166 | ||
|
|
d07a60c3d0 | ||
|
|
0858af07ec | ||
|
|
a096235f8f | ||
|
|
8244f0f628 | ||
|
|
3cdc24790e | ||
|
|
80df8e6b0a | ||
|
|
b228115b64 | ||
|
|
cdedea01c1 |
No files matched your search
@@ -1,8 +1,10 @@
|
||||
PHP 4 NEWS
|
||||
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||
26 Nov 2001, Version 4.1.0
|
||||
- Fixed a bug which caused set_time_limit() to affect all requests to an
|
||||
Apache child. (Zeev)
|
||||
10 Dec 2001, Version 4.1.0
|
||||
- Worked around a bug in the MySQL client library that could cause PHP to hang
|
||||
when using unbuffered queries. (Zeev)
|
||||
- Fixed a bug which caused set_time_limit() to affect all subsequent requests
|
||||
to running Apache child process. (Zeev)
|
||||
- Removed the sablotron extension in favor of the new XSLT extension.
|
||||
(Sterling)
|
||||
- Fixed a bug in WDDX deserialization that would sometimes corrupt the root
|
||||
|
||||
+1
-1
@@ -51,7 +51,7 @@ dnl ## All of these are normally in the extension directories.
|
||||
dnl ## Diversion 5 is the last one. Here we generate files and clean up.
|
||||
|
||||
dnl ## This is where the version number is changed from now on!
|
||||
AM_INIT_AUTOMAKE(php, 4.1.0RC4, nodefine)
|
||||
AM_INIT_AUTOMAKE(php, 4.1.0, nodefine)
|
||||
|
||||
PHP_VERSION=$VERSION
|
||||
echo "/* automatically generated by configure */" > php_version.h.new
|
||||
|
||||
+10
-3
@@ -773,6 +773,7 @@ PHP_FUNCTION(curl_setopt)
|
||||
HashTable *postfields;
|
||||
struct HttpPost *first = NULL;
|
||||
struct HttpPost *last = NULL;
|
||||
char *postval;
|
||||
char *string_key = NULL;
|
||||
ulong num_key;
|
||||
uint string_key_len;
|
||||
@@ -791,9 +792,15 @@ PHP_FUNCTION(curl_setopt)
|
||||
convert_to_string_ex(current);
|
||||
|
||||
zend_hash_get_current_key_ex(postfields, &string_key, &string_key_len, &num_key, 0, NULL);
|
||||
|
||||
error = curl_formadd(&first, &last, CURLFORM_COPYNAME, string_key,
|
||||
CURLFORM_PTRCONTENTS, Z_STRVAL_PP(current), CURLFORM_END);
|
||||
postval = Z_STRVAL_PP(current);
|
||||
if (*postval == '@') {
|
||||
error = curl_formadd(&first, &last, CURLFORM_COPYNAME, string_key,
|
||||
CURLFORM_FILE, ++postval, CURLFORM_END);
|
||||
}
|
||||
else {
|
||||
error = curl_formadd(&first, &last, CURLFORM_COPYNAME, string_key,
|
||||
CURLFORM_PTRCONTENTS, postval, CURLFORM_END);
|
||||
}
|
||||
}
|
||||
|
||||
if (error != CURLE_OK) {
|
||||
|
||||
@@ -2100,6 +2100,7 @@ PHP_FUNCTION(imap_rfc822_parse_adrlist)
|
||||
ZEND_WRONG_PARAM_COUNT();
|
||||
}
|
||||
|
||||
SEPARATE_ZVAL(str);
|
||||
convert_to_string_ex(str);
|
||||
convert_to_string_ex(defaulthost);
|
||||
|
||||
|
||||
+3
-2
@@ -210,6 +210,7 @@ PHP_MINIT_FUNCTION(ldap)
|
||||
le_result = zend_register_list_destructors_ex(_free_ldap_result, NULL, "ldap result", module_number);
|
||||
le_link = zend_register_list_destructors_ex(_close_ldap_link, NULL, "ldap link", module_number);
|
||||
le_result_entry = zend_register_list_destructors_ex(NULL, NULL, "ldap result entry", module_number);
|
||||
le_ber_entry = zend_register_list_destructors_ex(NULL, NULL, "ldap ber entry", module_number);
|
||||
|
||||
ldap_module_entry.type = type;
|
||||
|
||||
@@ -990,7 +991,7 @@ PHP_FUNCTION(ldap_first_attribute)
|
||||
if ((attribute = ldap_first_attribute(ldap, ldap_result_entry, &ber)) == NULL) {
|
||||
RETURN_FALSE;
|
||||
} else {
|
||||
ZEND_REGISTER_RESOURCE(return_value, ber, le_ber_entry);
|
||||
ZEND_REGISTER_RESOURCE(*berp, ber, le_ber_entry);
|
||||
|
||||
RETVAL_STRING(attribute, 1);
|
||||
#if ( LDAP_API_VERSION > 2000 ) || HAVE_NSLDAP || WINDOWS
|
||||
@@ -1021,7 +1022,7 @@ PHP_FUNCTION(ldap_next_attribute)
|
||||
if ((attribute = ldap_next_attribute(ldap, ldap_result_entry, ber)) == NULL) {
|
||||
RETURN_FALSE;
|
||||
} else {
|
||||
ZEND_REGISTER_RESOURCE(return_value, ber, le_ber_entry);
|
||||
ZEND_REGISTER_RESOURCE(*berp, ber, le_ber_entry);
|
||||
|
||||
RETVAL_STRING(attribute, 1);
|
||||
#if ( LDAP_API_VERSION > 2000 ) || HAVE_NSLDAP || WINDOWS
|
||||
|
||||
@@ -1238,7 +1238,7 @@ PHP_FUNCTION(mssql_fetch_object)
|
||||
Returns an associative array of the current row in the result set specified by result_id */
|
||||
PHP_FUNCTION(mssql_fetch_array)
|
||||
{
|
||||
php_mssql_fetch_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU, MSSQL_ASSOC);
|
||||
php_mssql_fetch_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU, MSSQL_BOTH);
|
||||
}
|
||||
|
||||
/* }}} */
|
||||
|
||||
@@ -993,10 +993,12 @@ static void php_mysql_do_query_general(zval **query, zval **mysql_link, int link
|
||||
MYSQL_RES *mysql_result;
|
||||
|
||||
mysql_result = (MYSQL_RES *) zend_list_find(mysql->active_result_id, &type);
|
||||
if (mysql_result && type==le_result && !mysql_eof(mysql_result)) {
|
||||
php_error(E_NOTICE, "Called %s() without first fetching all rows from a previous unbuffered query",
|
||||
get_active_function_name(TSRMLS_C));
|
||||
while (mysql_fetch_row(mysql_result));
|
||||
if (mysql_result && type==le_result) {
|
||||
if (!mysql_eof(mysql_result)) {
|
||||
php_error(E_NOTICE, "Called %s() without first fetching all rows from a previous unbuffered query",
|
||||
get_active_function_name(TSRMLS_C));
|
||||
while (mysql_fetch_row(mysql_result));
|
||||
}
|
||||
zend_list_delete(mysql->active_result_id);
|
||||
mysql->active_result_id = 0;
|
||||
}
|
||||
|
||||
@@ -167,8 +167,12 @@ int php_session_register_serializer(const char *name,
|
||||
|
||||
#define PS_ADD_VAR(name) PS_ADD_VARL(name, strlen(name))
|
||||
|
||||
#define PS_DEL_VARL(name,namelen) \
|
||||
zend_hash_del(&PS(vars), name, namelen + 1);
|
||||
#define PS_DEL_VARL(name,namelen) \
|
||||
zend_hash_del(&PS(vars), name, namelen+1); \
|
||||
if (PS(http_session_vars)) { \
|
||||
zend_hash_del(Z_ARRVAL_P(PS(http_session_vars)), name, namelen+1); \
|
||||
}
|
||||
|
||||
|
||||
#define PS_DEL_VAR(name) PS_DEL_VARL(name, strlen(name))
|
||||
|
||||
|
||||
+15
-14
@@ -265,14 +265,15 @@ void php_set_session_var(char *name, size_t namelen, zval *state_val,HashTable *
|
||||
|
||||
int php_get_session_var(char *name, size_t namelen, zval ***state_var TSRMLS_DC)
|
||||
{
|
||||
HashTable *ht = &EG(symbol_table);
|
||||
|
||||
if (!PG(register_globals))
|
||||
ht = PS(http_session_vars) ? Z_ARRVAL_P(PS(http_session_vars)) : NULL;
|
||||
|
||||
if (!ht) return HASH_KEY_NON_EXISTANT;
|
||||
|
||||
return zend_hash_find(ht, name, namelen + 1, (void **)state_var);
|
||||
if (PS(http_session_vars)) {
|
||||
if (zend_hash_find(Z_ARRVAL_P(PS(http_session_vars)), name, namelen+1, (void **) state_var)==SUCCESS) {
|
||||
return SUCCESS;
|
||||
}
|
||||
} else if (!PG(register_globals)) {
|
||||
/* register_globals is disabled, but we don't have http_session_vars */
|
||||
return HASH_KEY_NON_EXISTANT;
|
||||
}
|
||||
return zend_hash_find(&EG(symbol_table), name, namelen+1, (void **) state_var);
|
||||
}
|
||||
|
||||
#define PS_BIN_NR_OF_BITS 8
|
||||
@@ -534,12 +535,12 @@ static void php_session_save_current_state(TSRMLS_D)
|
||||
uint variable_len;
|
||||
ulong num_key;
|
||||
HashPosition pos;
|
||||
|
||||
if (!PG(register_globals)) {
|
||||
if (!PS(http_session_vars)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (!PG(register_globals) && !PS(http_session_vars)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (PS(http_session_vars)) {
|
||||
for (zend_hash_internal_pointer_reset_ex(Z_ARRVAL_P(PS(http_session_vars)), &pos);
|
||||
zend_hash_get_current_key_ex(Z_ARRVAL_P(PS(http_session_vars)), &variable, &variable_len, &num_key, 0, &pos) == HASH_KEY_IS_STRING;
|
||||
zend_hash_move_forward_ex(Z_ARRVAL_P(PS(http_session_vars)),&pos)) {
|
||||
|
||||
+8
-2
@@ -210,6 +210,10 @@ static void php_var_serialize_class(smart_str *buf, zval **struc, zval *retval_p
|
||||
ulong index;
|
||||
HashPosition pos;
|
||||
int i;
|
||||
zval nval, *nvalp;
|
||||
|
||||
ZVAL_NULL(&nval);
|
||||
nvalp = &nval;
|
||||
|
||||
zend_hash_internal_pointer_reset_ex(HASH_OF(retval_ptr), &pos);
|
||||
|
||||
@@ -230,11 +234,13 @@ static void php_var_serialize_class(smart_str *buf, zval **struc, zval *retval_p
|
||||
continue;
|
||||
}
|
||||
|
||||
php_var_serialize_string(buf, Z_STRVAL_PP(name), Z_STRLEN_PP(name));
|
||||
|
||||
if (zend_hash_find(Z_OBJPROP_PP(struc), Z_STRVAL_PP(name),
|
||||
Z_STRLEN_PP(name) + 1, (void *) &d) == SUCCESS) {
|
||||
php_var_serialize_string(buf, Z_STRVAL_PP(name),
|
||||
Z_STRLEN_PP(name));
|
||||
php_var_serialize_intern(buf, d, var_hash TSRMLS_CC);
|
||||
} else {
|
||||
php_var_serialize_intern(buf, &nvalp, var_hash TSRMLS_CC);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-4
@@ -219,9 +219,6 @@ extern void xslt_call_function(char *name,
|
||||
int idx; /* Idx, when looping through and free'ing the arguments */
|
||||
TSRMLS_FETCH(); /* For TS mode, fetch the executor globals */
|
||||
|
||||
/* Allocate and initialize return value from the function */
|
||||
MAKE_STD_ZVAL(*retval);
|
||||
|
||||
argv = emalloc(argc * sizeof(zval **));
|
||||
for (idx = 0; idx < argc; idx++) {
|
||||
argv[idx] = &user_args[idx];
|
||||
@@ -241,10 +238,10 @@ extern void xslt_call_function(char *name,
|
||||
/* Decrease refcount and free if refcount is <= 0 */
|
||||
zval_ptr_dtor(argv[idx]);
|
||||
}
|
||||
|
||||
efree(argv);
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
/* automatically generated by configure */
|
||||
/* edit configure.in to change version number */
|
||||
#define PHP_VERSION "4.1.0RC4"
|
||||
#define PHP_VERSION "4.1.0"
|
||||
Reference in new issue
Block a user