-
-===================================================================
-RCS file: /repository/ZendEngine2/zend.c,v
-retrieving revision 1.287.2.12
-retrieving revision 1.287.2.14
-diff -p --unified=3 -r1.287.2.12 -r1.287.2.14
---- ./Zend/zend.c 2005/07/22 07:33:27 1.287.2.12
-+++ ./Zend/zend.c 2005/11/07 12:25:21 1.287.2.14
+--- php-4.4.1/Zend/zend.c 2005-06-09 13:14:25.000000000 +0300
++++ php4-STABLE-200511081543/Zend/zend.c 2005-11-07 16:01:13.000000000 +0200
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-
+
-/* $Id$ */
+/* $Id$ */
-
+
#include "zend.h"
#include "zend_extensions.h"
-@@ -693,9 +693,7 @@ void zend_shutdown(TSRMLS_D)
+@@ -564,9 +564,7 @@
#ifdef ZEND_WIN32
zend_shutdown_timeout_thread();
#endif
-#ifndef ZTS
zend_destroy_rsrc_list(&EG(persistent_list) TSRMLS_CC);
--#endif
+-#endif
zend_hash_graceful_reverse_destroy(&module_registry);
-
- zend_hash_destroy(GLOBAL_FUNCTION_TABLE);
-@@ -711,7 +709,6 @@ void zend_shutdown(TSRMLS_D)
- free(GLOBAL_FUNCTION_TABLE);
- free(GLOBAL_CLASS_TABLE);
+
+ zend_shutdown_extensions(TSRMLS_C);
+@@ -584,8 +582,6 @@
+ zend_shutdown_constants(TSRMLS_C);
+
#ifdef ZTS
- zend_destroy_rsrc_list(&EG(persistent_list) TSRMLS_CC);
+-
zend_hash_destroy(GLOBAL_CONSTANTS_TABLE);
free(GLOBAL_CONSTANTS_TABLE);
- GLOBAL_FUNCTION_TABLE = NULL;
+
--- /dev/null
+diff -urNbB php-4.4.1.org/sapi/apache2handler/sapi_apache2.c php-4.4.1/sapi/apache2handler/sapi_apache2.c
+--- php-4.4.1.org/sapi/apache2handler/sapi_apache2.c 2005-10-12 23:41:36.000000000 +0200
++++ php-4.4.1/sapi/apache2handler/sapi_apache2.c 2005-11-02 18:58:52.000000000 +0100
+@@ -18,7 +18,7 @@
+ +----------------------------------------------------------------------+
+ */
+
+-/* $Id$ */
++/* $Id$ */
+
+ #include <fcntl.h>
+
+@@ -535,7 +535,7 @@
+ if (!parent_req) {
+ parent_req = ctx->r;
+ }
+- if (parent_req && strcmp(parent_req->handler, PHP_MAGIC_TYPE) && strcmp(parent_req->handler, PHP_SOURCE_MAGIC_TYPE) && strcmp(parent_req->handler, PHP_SCRIPT)) {
++ if (parent_req && parent_req->handler && strcmp(parent_req->handler, PHP_MAGIC_TYPE) && strcmp(parent_req->handler, PHP_SOURCE_MAGIC_TYPE) && strcmp(parent_req->handler, PHP_SCRIPT)) {
+ if (php_apache_request_ctor(r, ctx TSRMLS_CC)!=SUCCESS) {
+ zend_bailout();
+ }
--- /dev/null
+===================================================================
+RCS file: /repository/php-src/ext/standard/basic_functions.c,v
+retrieving revision 1.543.2.51.2.3
+retrieving revision 1.543.2.51.2.4
+diff -p --unified=3 -r1.543.2.51.2.3 -r1.543.2.51.2.4
+--- php-src/ext/standard/basic_functions.c 2005/09/29 16:31:48 1.543.2.51.2.3
++++ php-src/ext/standard/basic_functions.c 2005/11/02 17:58:00 1.543.2.51.2.4
+@@ -17,7 +17,7 @@
+ +----------------------------------------------------------------------+
+ */
+
+-/* $Id$ */
++/* $Id$ */
+
+ #include "php.h"
+ #include "php_streams.h"
+@@ -802,8 +802,8 @@ function_entry basic_functions[] = {
+ PHP_FE(prev, first_arg_force_ref)
+ PHP_FE(next, first_arg_force_ref)
+ PHP_FE(reset, first_arg_force_ref)
+- PHP_FE(current, NULL)
+- PHP_FE(key, NULL)
++ PHP_FE(current, first_arg_force_ref)
++ PHP_FE(key, first_arg_force_ref)
+ PHP_FE(min, NULL)
+ PHP_FE(max, NULL)
+ PHP_FE(in_array, NULL)
-diff -burN php-5.0.3.orig/scripts/Makefile.frag php-5.0.3/scripts/Makefile.frag
---- php-5.0.3.orig/scripts/Makefile.frag 2005-02-10 07:43:48.406281496 +0100
-+++ php-5.0.3/scripts/Makefile.frag 2005-02-10 07:44:19.768513712 +0100
-@@ -30,6 +30,8 @@
+diff -urbB php-4.4.0.org/scripts/Makefile.frag php-4.4.0/scripts/Makefile.frag
+--- php-4.4.0.org/scripts/Makefile.frag 2005-07-11 21:46:28.711768000 +0200
++++ php-4.4.0/scripts/Makefile.frag 2005-07-11 21:47:52.847977560 +0200
+@@ -37,6 +37,8 @@
+ include/ \
main/ \
- main/streams/ \
regex/ \
-+ ext/gd \
++ ext/gd/ \
+ ext/gd/libgd/ \
ext/iconv/ \
- ext/libxml/ \
+ ext/pgsql/ \
ext/standard/ \