[PHP-CVS] cvs: php-src(PHP_5_3) /main php.h /win32/build config.w32.h.in

2008-11-22 Thread Scott MacVicar
scottmacSat Nov 22 15:16:47 2008 UTC

  Modified files:  (Branch: PHP_5_3)
/php-src/win32/buildconfig.w32.h.in 
/php-src/main   php.h 
  Log:
  MFH Better fix for va_copy since some architectures like to do a deep copy.
  
  
  
http://cvs.php.net/viewvc.cgi/php-src/win32/build/config.w32.h.in?r1=1.7.2.4.2.3.2.4r2=1.7.2.4.2.3.2.5diff_format=u
Index: php-src/win32/build/config.w32.h.in
diff -u php-src/win32/build/config.w32.h.in:1.7.2.4.2.3.2.4 
php-src/win32/build/config.w32.h.in:1.7.2.4.2.3.2.5
--- php-src/win32/build/config.w32.h.in:1.7.2.4.2.3.2.4 Sat Nov 22 13:34:15 2008
+++ php-src/win32/build/config.w32.h.in Sat Nov 22 15:16:47 2008
@@ -1,6 +1,6 @@
 /*
Build Configuration Template for Win32.
-   $Id: config.w32.h.in,v 1.7.2.4.2.3.2.4 2008/11/22 13:34:15 pajoye Exp $
+   $Id: config.w32.h.in,v 1.7.2.4.2.3.2.5 2008/11/22 15:16:47 scottmac Exp 
$
 */
 
 /* Define the minimum supported version */
@@ -159,5 +159,3 @@
 # define _USE_32BIT_TIME_T 1
 #endif
 #define HAVE_STDLIB_H 1
-
-#define va_copy(ap1, ap2) memcpy((ap1), (ap2), sizeof(va_list))
http://cvs.php.net/viewvc.cgi/php-src/main/php.h?r1=1.221.2.4.2.8.2.10r2=1.221.2.4.2.8.2.11diff_format=u
Index: php-src/main/php.h
diff -u php-src/main/php.h:1.221.2.4.2.8.2.10 
php-src/main/php.h:1.221.2.4.2.8.2.11
--- php-src/main/php.h:1.221.2.4.2.8.2.10   Fri Aug 22 12:59:46 2008
+++ php-src/main/php.h  Sat Nov 22 15:16:47 2008
@@ -17,7 +17,7 @@
+--+
  */
 
-/* $Id: php.h,v 1.221.2.4.2.8.2.10 2008/08/22 12:59:46 helly Exp $ */
+/* $Id: php.h,v 1.221.2.4.2.8.2.11 2008/11/22 15:16:47 scottmac Exp $ */
 
 #ifndef PHP_H
 #define PHP_H
@@ -173,6 +173,13 @@
 # endif
 #endif
 
+#ifndef va_copy
+# ifdef __va_copy
+#  define va_copy(ap1, ap2) __va_copy((ap1), (ap2))
+# else
+#  define va_copy(ap1, ap2) memcpy((ap1), (ap2), sizeof(va_list))
+# endif
+#endif
 
 #include zend_hash.h
 #include php3_compat.h



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src(PHP_5_3) /main php.h /win32 time.c

2008-08-13 Thread Kalle Sommer Nielsen
kalle   Wed Aug 13 22:40:39 2008 UTC

  Modified files:  (Branch: PHP_5_3)
/php-src/main   php.h 
/php-src/win32  time.c 
  Log:
  MFH:
  * Remove NTDDI_VERSION declaring and use the one in config.w32.h
  * Remove another _WIN32_WINNT macro redef in win32/time.c
  
http://cvs.php.net/viewvc.cgi/php-src/main/php.h?r1=1.221.2.4.2.8.2.8r2=1.221.2.4.2.8.2.9diff_format=u
Index: php-src/main/php.h
diff -u php-src/main/php.h:1.221.2.4.2.8.2.8 
php-src/main/php.h:1.221.2.4.2.8.2.9
--- php-src/main/php.h:1.221.2.4.2.8.2.8Fri Aug  8 17:47:24 2008
+++ php-src/main/php.h  Wed Aug 13 22:40:39 2008
@@ -17,7 +17,7 @@
+--+
  */
 
-/* $Id: php.h,v 1.221.2.4.2.8.2.8 2008/08/08 17:47:24 helly Exp $ */
+/* $Id: php.h,v 1.221.2.4.2.8.2.9 2008/08/13 22:40:39 kalle Exp $ */
 
 #ifndef PHP_H
 #define PHP_H
@@ -54,12 +54,6 @@
 #  endif
 #  define PHP_DIR_SEPARATOR '\\'
 #  define PHP_EOL \r\n
-#  if defined(NTDDI_VERSION)  NTDDI_VERSION = 0x0600
-#  undef NTDDI_VERSION
-#  endif
-#  ifndef NTDDI_VERSION
-#  define NTDDI_VERSION 0x0500
-#  endif
 #else
 #  if defined(__GNUC__)  __GNUC__ = 4
 #  define PHPAPI __attribute__ ((visibility(default)))
http://cvs.php.net/viewvc.cgi/php-src/win32/time.c?r1=1.10r2=1.10.6.1diff_format=u
Index: php-src/win32/time.c
diff -u php-src/win32/time.c:1.10 php-src/win32/time.c:1.10.6.1
--- php-src/win32/time.c:1.10   Thu Jul 29 02:59:43 2004
+++ php-src/win32/time.cWed Aug 13 22:40:39 2008
@@ -11,7 +11,7 @@
  *
  */
 
-/* $Id: time.c,v 1.10 2004/07/29 02:59:43 wez Exp $ */
+/* $Id: time.c,v 1.10.6.1 2008/08/13 22:40:39 kalle Exp $ */
 
  /**
   *
@@ -22,10 +22,6 @@
 
 /* Include stuff  
*/
 
-/* this allows the use of the WaitableTimer functions.
- * For win98 and later */
-#define _WIN32_WINNT 0x400
-
 #include time.h
 #include unistd.h
 #include signal.h



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-CVS] cvs: php-src(PHP_5_3) /main php.h ZendEngine2 zend_execute_API.c

2008-08-09 Thread Antony Dovgal

On 08.08.2008 17:21, Marcus Boerger wrote:

helly   Fri Aug  8 13:21:52 2008 UTC

  Modified files:  (Branch: PHP_5_3)
/ZendEngine2	zend_execute_API.c 
/php-src/main	php.h 
  Log:

  - MFH store error handling mode on stack when executing internal
or overloaded functions and methods. [...]


3 new test failures:

ext/phar/tests/create_path_error.phpt
-
009+ [Sat Aug  9 15:39:49 2008]  Script:  
'/local/qa/5_3.zts/ext/phar/tests/create_path_error.php'
010+ /local/qa/5_3.zts/Zend/zend_variables.h(45) :  Freeing 0x014BAB38 (14 
bytes), script=/local/qa/5_3.zts/ext/phar/tests/create_path_error.php
011+ /local/qa/5_3.zts/Zend/zend_variables.c(120) : Actual location (location 
was relayed)
012+ [Sat Aug  9 15:39:49 2008]  Script:  
'/local/qa/5_3.zts/ext/phar/tests/create_path_error.php'
013+ /local/qa/5_3.zts/Zend/zend_builtin_functions.c(1525) :  Freeing 
0x014BBE08 (32 bytes), 
script=/local/qa/5_3.zts/ext/phar/tests/create_path_error.php
014+ === Total 2 memory leaks detected ===
-

ext/spl/tests/iterator_042.phpt
-
001+ Catchable fatal error: Argument 1 passed to AppendIterator::append() must 
implement interface Iterator, array given in 
/local/qa/5_3/ext/spl/tests/iterator_042.php on line 13
001- Error Argument 1 passed to AppendIterator::append() must implement 
interface Iterator, array given in %siterator_042.php on line %d
-

ext/spl/tests/spl_004.phpt
-
026+ Catchable fatal error: Argument 3 passed to iterator_apply() must be an 
array, integer given in /local/qa/5_3/ext/spl/tests/spl_004.php on line 42
-

--
Wbr, 
Antony Dovgal


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src(PHP_5_3) /main php.h ZendEngine2 zend_execute_API.c

2008-08-08 Thread Marcus Boerger
helly   Fri Aug  8 13:21:52 2008 UTC

  Modified files:  (Branch: PHP_5_3)
/ZendEngine2zend_execute_API.c 
/php-src/main   php.h 
  Log:
  - MFH store error handling mode on stack when executing internal
or overloaded functions and methods. [...]
  
  
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_execute_API.c?r1=1.331.2.20.2.24.2.50r2=1.331.2.20.2.24.2.51diff_format=u
Index: ZendEngine2/zend_execute_API.c
diff -u ZendEngine2/zend_execute_API.c:1.331.2.20.2.24.2.50 
ZendEngine2/zend_execute_API.c:1.331.2.20.2.24.2.51
--- ZendEngine2/zend_execute_API.c:1.331.2.20.2.24.2.50 Fri Aug  1 14:22:03 2008
+++ ZendEngine2/zend_execute_API.c  Fri Aug  8 13:21:52 2008
@@ -17,7 +17,7 @@
+--+
 */
 
-/* $Id: zend_execute_API.c,v 1.331.2.20.2.24.2.50 2008/08/01 14:22:03 dmitry 
Exp $ */
+/* $Id: zend_execute_API.c,v 1.331.2.20.2.24.2.51 2008/08/08 13:21:52 helly 
Exp $ */
 
 #include stdio.h
 #include signal.h
@@ -890,12 +890,16 @@
EG(opline_ptr) = original_opline_ptr;
} else if (EX(function_state).function-type == ZEND_INTERNAL_FUNCTION) 
{
int call_via_handler = 
(EX(function_state).function-common.fn_flags  ZEND_ACC_CALL_VIA_HANDLER) != 0;
+   zend_error_handling_t  error_handling  = EG(error_handling);
+   zend_class_entry  *exception_class = EG(exception_class);
 
ALLOC_INIT_ZVAL(*fci-retval_ptr_ptr);
if (EX(function_state).function-common.scope) {
EG(scope) = EX(function_state).function-common.scope;
}
((zend_internal_function *) 
EX(function_state).function)-handler(fci-param_count, *fci-retval_ptr_ptr, 
fci-retval_ptr_ptr, (fci-object_pp?*fci-object_pp:NULL), 1 TSRMLS_CC);
+   EG(error_handling)  = error_handling;
+   EG(exception_class) = exception_class;
/*  We shouldn't fix bad extensions here,
because it can break proper ones (Bug #34045)
if (!EX(function_state).function-common.return_reference)
@@ -912,12 +916,15 @@
fci_cache-initialized = 0;
}
} else { /* ZEND_OVERLOADED_FUNCTION */
-
ALLOC_INIT_ZVAL(*fci-retval_ptr_ptr);
 
-   /* Not sure what should be done here if it's a static 
method */
+   /* Not sure what should be done here if it's a static method */
if (fci-object_pp) {
+   zend_error_handling_t  error_handling  = 
EG(error_handling);
+   zend_class_entry  *exception_class = 
EG(exception_class);

Z_OBJ_HT_PP(fci-object_pp)-call_method(EX(function_state).function-common.function_name,
 fci-param_count, *fci-retval_ptr_ptr, fci-retval_ptr_ptr, *fci-object_pp, 
1 TSRMLS_CC);
+   EG(error_handling)  = error_handling;
+   EG(exception_class) = exception_class;
} else {
zend_error_noreturn(E_ERROR, Cannot call overloaded 
function for non-object);
}
http://cvs.php.net/viewvc.cgi/php-src/main/php.h?r1=1.221.2.4.2.8.2.5r2=1.221.2.4.2.8.2.6diff_format=u
Index: php-src/main/php.h
diff -u php-src/main/php.h:1.221.2.4.2.8.2.5 
php-src/main/php.h:1.221.2.4.2.8.2.6
--- php-src/main/php.h:1.221.2.4.2.8.2.5Tue Jun 24 05:59:53 2008
+++ php-src/main/php.h  Fri Aug  8 13:21:52 2008
@@ -17,7 +17,7 @@
+--+
  */
 
-/* $Id: php.h,v 1.221.2.4.2.8.2.5 2008/06/24 05:59:53 kalle Exp $ */
+/* $Id: php.h,v 1.221.2.4.2.8.2.6 2008/08/08 13:21:52 helly Exp $ */
 
 #ifndef PHP_H
 #define PHP_H
@@ -288,7 +288,7 @@
 
 BEGIN_EXTERN_C()
 PHPAPI void php_set_error_handling(error_handling_t error_handling, 
zend_class_entry *exception_class TSRMLS_DC);
-#define php_std_error_handling() php_set_error_handling(EH_NORMAL, NULL 
TSRMLS_CC)
+static ZEND_ATTRIBUTE_DEPRECATED void php_std_error_handling() {}
 
 PHPAPI void php_verror(const char *docref, const char *params, int type, const 
char *format, va_list args TSRMLS_DC) PHP_ATTRIBUTE_FORMAT(printf, 4, 0);
 



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-CVS] cvs: php-src(PHP_5_3) /main php.h ZendEngine2 zend_execute_API.c

2008-08-08 Thread Hannes Magnusson
On Fri, Aug 8, 2008 at 15:21, Marcus Boerger [EMAIL PROTECTED] wrote:
 helly   Fri Aug  8 13:21:52 2008 UTC

  Modified files:  (Branch: PHP_5_3)
/ZendEngine2zend_execute_API.c
/php-src/main   php.h
  Log:
  - MFH store error handling mode on stack when executing internal
or overloaded functions and methods. [...]


 http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_execute_API.c?r1=1.331.2.20.2.24.2.50r2=1.331.2.20.2.24.2.51diff_format=u
 Index: ZendEngine2/zend_execute_API.c
 diff -u ZendEngine2/zend_execute_API.c:1.331.2.20.2.24.2.50 
 ZendEngine2/zend_execute_API.c:1.331.2.20.2.24.2.51
 --- ZendEngine2/zend_execute_API.c:1.331.2.20.2.24.2.50 Fri Aug  1 14:22:03 
 2008
 +++ ZendEngine2/zend_execute_API.c  Fri Aug  8 13:21:52 2008
 @@ -17,7 +17,7 @@
+--+
  */

 -/* $Id: zend_execute_API.c,v 1.331.2.20.2.24.2.50 2008/08/01 14:22:03 dmitry 
 Exp $ */
 +/* $Id: zend_execute_API.c,v 1.331.2.20.2.24.2.51 2008/08/08 13:21:52 helly 
 Exp $ */

  #include stdio.h
  #include signal.h
 @@ -890,12 +890,16 @@
EG(opline_ptr) = original_opline_ptr;
} else if (EX(function_state).function-type == 
 ZEND_INTERNAL_FUNCTION) {
int call_via_handler = 
 (EX(function_state).function-common.fn_flags  ZEND_ACC_CALL_VIA_HANDLER) != 
 0;
 +   zend_error_handling_t  error_handling  = EG(error_handling);
 +   zend_class_entry  *exception_class = EG(exception_class);

ALLOC_INIT_ZVAL(*fci-retval_ptr_ptr);
if (EX(function_state).function-common.scope) {
EG(scope) = EX(function_state).function-common.scope;
}
((zend_internal_function *) 
 EX(function_state).function)-handler(fci-param_count, *fci-retval_ptr_ptr, 
 fci-retval_ptr_ptr, (fci-object_pp?*fci-object_pp:NULL), 1 TSRMLS_CC);
 +   EG(error_handling)  = error_handling;
 +   EG(exception_class) = exception_class;
/*  We shouldn't fix bad extensions here,
because it can break proper ones (Bug #34045)
if (!EX(function_state).function-common.return_reference)
 @@ -912,12 +916,15 @@
fci_cache-initialized = 0;
}
} else { /* ZEND_OVERLOADED_FUNCTION */
 -
ALLOC_INIT_ZVAL(*fci-retval_ptr_ptr);

 -   /* Not sure what should be done here if it's a static 
 method */
 +   /* Not sure what should be done here if it's a static method 
 */
if (fci-object_pp) {
 +   zend_error_handling_t  error_handling  = 
 EG(error_handling);
 +   zend_class_entry  *exception_class = 
 EG(exception_class);

 Z_OBJ_HT_PP(fci-object_pp)-call_method(EX(function_state).function-common.function_name,
  fci-param_count, *fci-retval_ptr_ptr, fci-retval_ptr_ptr, 
 *fci-object_pp, 1 TSRMLS_CC);
 +   EG(error_handling)  = error_handling;
 +   EG(exception_class) = exception_class;
} else {
zend_error_noreturn(E_ERROR, Cannot call overloaded 
 function for non-object);
}
 http://cvs.php.net/viewvc.cgi/php-src/main/php.h?r1=1.221.2.4.2.8.2.5r2=1.221.2.4.2.8.2.6diff_format=u
 Index: php-src/main/php.h
 diff -u php-src/main/php.h:1.221.2.4.2.8.2.5 
 php-src/main/php.h:1.221.2.4.2.8.2.6
 --- php-src/main/php.h:1.221.2.4.2.8.2.5Tue Jun 24 05:59:53 2008
 +++ php-src/main/php.h  Fri Aug  8 13:21:52 2008
 @@ -17,7 +17,7 @@
+--+
  */

 -/* $Id: php.h,v 1.221.2.4.2.8.2.5 2008/06/24 05:59:53 kalle Exp $ */
 +/* $Id: php.h,v 1.221.2.4.2.8.2.6 2008/08/08 13:21:52 helly Exp $ */

  #ifndef PHP_H
  #define PHP_H
 @@ -288,7 +288,7 @@

  BEGIN_EXTERN_C()
  PHPAPI void php_set_error_handling(error_handling_t error_handling, 
 zend_class_entry *exception_class TSRMLS_DC);
 -#define php_std_error_handling() php_set_error_handling(EH_NORMAL, NULL 
 TSRMLS_CC)
 +static ZEND_ATTRIBUTE_DEPRECATED void php_std_error_handling() {}

This doesn't look right...

$ sapi/cli/php -r 'try { new DOMAttr();} catch(Exception $e) {} strpos();'

Fatal error: Uncaught exception 'DOMException' with message 'strpos()
expects at least 2 parameters, 0 given' in Command line code:1

-Hannes

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src(PHP_5_3) /main php.h

2008-08-08 Thread Marcus Boerger
helly   Fri Aug  8 14:15:05 2008 UTC

  Modified files:  (Branch: PHP_5_3)
/php-src/main   php.h 
  Log:
  - MFH: Sorry for the compiler warning
  
http://cvs.php.net/viewvc.cgi/php-src/main/php.h?r1=1.221.2.4.2.8.2.6r2=1.221.2.4.2.8.2.7diff_format=u
Index: php-src/main/php.h
diff -u php-src/main/php.h:1.221.2.4.2.8.2.6 
php-src/main/php.h:1.221.2.4.2.8.2.7
--- php-src/main/php.h:1.221.2.4.2.8.2.6Fri Aug  8 13:21:52 2008
+++ php-src/main/php.h  Fri Aug  8 14:15:05 2008
@@ -17,7 +17,7 @@
+--+
  */
 
-/* $Id: php.h,v 1.221.2.4.2.8.2.6 2008/08/08 13:21:52 helly Exp $ */
+/* $Id: php.h,v 1.221.2.4.2.8.2.7 2008/08/08 14:15:05 helly Exp $ */
 
 #ifndef PHP_H
 #define PHP_H
@@ -288,7 +288,7 @@
 
 BEGIN_EXTERN_C()
 PHPAPI void php_set_error_handling(error_handling_t error_handling, 
zend_class_entry *exception_class TSRMLS_DC);
-static ZEND_ATTRIBUTE_DEPRECATED void php_std_error_handling() {}
+static inline ZEND_ATTRIBUTE_DEPRECATED void php_std_error_handling() {}
 
 PHPAPI void php_verror(const char *docref, const char *params, int type, const 
char *format, va_list args TSRMLS_DC) PHP_ATTRIBUTE_FORMAT(printf, 4, 0);
 



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-CVS] cvs: php-src(PHP_5_3) /main php.h ZendEngine2 zend_execute_API.c

2008-08-08 Thread Marcus Boerger
Hello Hannes,

Friday, August 8, 2008, 3:57:16 PM, you wrote:

 On Fri, Aug 8, 2008 at 15:21, Marcus Boerger [EMAIL PROTECTED] wrote:
 helly   Fri Aug  8 13:21:52 2008 UTC

  Modified files:  (Branch: PHP_5_3)
/ZendEngine2zend_execute_API.c
/php-src/main   php.h
  Log:
  - MFH store error handling mode on stack when executing internal
or overloaded functions and methods. [...]


 http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_execute_API.c?r1=1.331.2.20.2.24.2.50r2=1.331.2.20.2.24.2.51diff_format=u
 Index: ZendEngine2/zend_execute_API.c
 diff -u ZendEngine2/zend_execute_API.c:1.331.2.20.2.24.2.50 
 ZendEngine2/zend_execute_API.c:1.331.2.20.2.24.2.51
 --- ZendEngine2/zend_execute_API.c:1.331.2.20.2.24.2.50 Fri Aug  1 14:22:03 
 2008
 +++ ZendEngine2/zend_execute_API.c  Fri Aug  8 13:21:52 2008
 @@ -17,7 +17,7 @@
+--+
  */

 -/* $Id: zend_execute_API.c,v 1.331.2.20.2.24.2.50 2008/08/01 14:22:03 
 dmitry Exp $ */
 +/* $Id: zend_execute_API.c,v 1.331.2.20.2.24.2.51 2008/08/08 13:21:52 helly 
 Exp $ */

  #include stdio.h
  #include signal.h
 @@ -890,12 +890,16 @@
EG(opline_ptr) = original_opline_ptr;
} else if (EX(function_state).function-type == 
 ZEND_INTERNAL_FUNCTION) {
int call_via_handler = 
 (EX(function_state).function-common.fn_flags  ZEND_ACC_CALL_VIA_HANDLER) 
 != 0;
 +   zend_error_handling_t  error_handling  = EG(error_handling);
 +   zend_class_entry  *exception_class = EG(exception_class);

ALLOC_INIT_ZVAL(*fci-retval_ptr_ptr);
if (EX(function_state).function-common.scope) {
EG(scope) = EX(function_state).function-common.scope;
}
((zend_internal_function *) 
 EX(function_state).function)-handler(fci-param_count, 
 *fci-retval_ptr_ptr, fci-retval_ptr_ptr, 
 (fci-object_pp?*fci-object_pp:NULL), 1 TSRMLS_CC);
 +   EG(error_handling)  = error_handling;
 +   EG(exception_class) = exception_class;
/*  We shouldn't fix bad extensions here,
because it can break proper ones (Bug #34045)
if (!EX(function_state).function-common.return_reference)
 @@ -912,12 +916,15 @@
fci_cache-initialized = 0;
}
} else { /* ZEND_OVERLOADED_FUNCTION */
 -
ALLOC_INIT_ZVAL(*fci-retval_ptr_ptr);

 -   /* Not sure what should be done here if it's a 
 static method */
 +   /* Not sure what should be done here if it's a static method 
 */
if (fci-object_pp) {
 +   zend_error_handling_t  error_handling  = 
 EG(error_handling);
 +   zend_class_entry  *exception_class = 
 EG(exception_class);

 Z_OBJ_HT_PP(fci-object_pp)-call_method(EX(function_state).function-common.function_name,
  fci-param_count, *fci-retval_ptr_ptr, fci-retval_ptr_ptr, 
 *fci-object_pp, 1 TSRMLS_CC);
 +   EG(error_handling)  = error_handling;
 +   EG(exception_class) = exception_class;
} else {
zend_error_noreturn(E_ERROR, Cannot call overloaded 
 function for non-object);
}
 http://cvs.php.net/viewvc.cgi/php-src/main/php.h?r1=1.221.2.4.2.8.2.5r2=1.221.2.4.2.8.2.6diff_format=u
 Index: php-src/main/php.h
 diff -u php-src/main/php.h:1.221.2.4.2.8.2.5 
 php-src/main/php.h:1.221.2.4.2.8.2.6
 --- php-src/main/php.h:1.221.2.4.2.8.2.5Tue Jun 24 05:59:53 2008
 +++ php-src/main/php.h  Fri Aug  8 13:21:52 2008
 @@ -17,7 +17,7 @@
+--+
  */

 -/* $Id: php.h,v 1.221.2.4.2.8.2.5 2008/06/24 05:59:53 kalle Exp $ */
 +/* $Id: php.h,v 1.221.2.4.2.8.2.6 2008/08/08 13:21:52 helly Exp $ */

  #ifndef PHP_H
  #define PHP_H
 @@ -288,7 +288,7 @@

  BEGIN_EXTERN_C()
  PHPAPI void php_set_error_handling(error_handling_t error_handling, 
 zend_class_entry *exception_class TSRMLS_DC);
 -#define php_std_error_handling() php_set_error_handling(EH_NORMAL, NULL 
 TSRMLS_CC)
 +static ZEND_ATTRIBUTE_DEPRECATED void php_std_error_handling() {}

 This doesn't look right...

 $ sapi/cli/php -r 'try { new DOMAttr();} catch(Exception $e) {} strpos();'

 Fatal error: Uncaught exception 'DOMException' with message 'strpos()
 expects at least 2 parameters, 0 given' in Command line code:1

I figured out that the VM has a short path through this and needed to
change that as well. We further more realized that the easiy solution won't
work for all cases anyway. So I provided a full version with save, replace
and restore function that Etienne and I will be using to replace all
php_*_error_handling() calls. Once agina a time when one thinks, cool I
found an easy solution and quite soon gets disillusioned.



[PHP-CVS] cvs: php-src(PHP_5_3) /main php.h

2008-06-24 Thread Kalle Sommer Nielsen
kalle   Tue Jun 24 05:59:53 2008 UTC

  Modified files:  (Branch: PHP_5_3)
/php-src/main   php.h 
  Log:
  MFH
  
http://cvs.php.net/viewvc.cgi/php-src/main/php.h?r1=1.221.2.4.2.8.2.4r2=1.221.2.4.2.8.2.5diff_format=u
Index: php-src/main/php.h
diff -u php-src/main/php.h:1.221.2.4.2.8.2.4 
php-src/main/php.h:1.221.2.4.2.8.2.5
--- php-src/main/php.h:1.221.2.4.2.8.2.4Sat Mar  8 22:12:32 2008
+++ php-src/main/php.h  Tue Jun 24 05:59:53 2008
@@ -17,7 +17,7 @@
+--+
  */
 
-/* $Id: php.h,v 1.221.2.4.2.8.2.4 2008/03/08 22:12:32 colder Exp $ */
+/* $Id: php.h,v 1.221.2.4.2.8.2.5 2008/06/24 05:59:53 kalle Exp $ */
 
 #ifndef PHP_H
 #define PHP_H
@@ -54,6 +54,12 @@
 #  endif
 #  define PHP_DIR_SEPARATOR '\\'
 #  define PHP_EOL \r\n
+#  if defined(NTDDI_VERSION)  NTDDI_VERSION = 0x0600
+#  undef NTDDI_VERSION
+#  endif
+#  ifndef NTDDI_VERSION
+#  define NTDDI_VERSION 0x0500
+#  endif
 #else
 #  if defined(__GNUC__)  __GNUC__ = 4
 #  define PHPAPI __attribute__ ((visibility(default)))



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php