php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #62313
Patch 62313.patch revision 2012-06-27 17:35 UTC by ab@php.net
revision 2012-06-15 15:52 UTC by ab@php.net
revision 2012-06-15 09:38 UTC by ab@php.net

Patch 62313.patch for Reproducible crash Bug #62313

Patch version 2012-06-27 17:35 UTC

Return to Bug #62313 | Download this patch
Patch Revisions: 2012-06-27 17:35 UTC | 2012-06-15 15:52 UTC | 2012-06-15 09:38 UTC

Developer: ab@php.net


 --- php-src-PHP-5.4-a18cede.old.1/Zend/zend_API.c	Fri Jun 15 16:15:50 2012
 +++ php-src-PHP-5.4-a18cede.old.1/Zend/zend_API.c.new.0	Fri Jun 15 16:15:32 2012
 @@ -2545,6 +2545,9 @@
  	ZEND_FE_END
  };
 Index: Zend/zend_API.c
 ===================================================================
 --- Zend/zend_API.c	(revision 322463)
 +++ Zend/zend_API.c	(working copy)
 @@ -2523,6 +2523,9 @@
  }
  /* }}} */
   
 +#ifdef PHP_WIN32
 +# pragma optimize("", off)
 +#ifdef ZEND_WIN32
 +#pragma optimize("", off)
  +#endif
  ZEND_API int zend_disable_class(char *class_name, uint class_name_length TSRMLS_DC) /* {{{ */
  static zend_object_value display_disabled_class(zend_class_entry *class_type TSRMLS_DC) /* {{{ */
   {
  	zend_class_entry disabled_class;
 @@ -2559,6 +2562,9 @@
  	zend_register_internal_class(&disabled_class TSRMLS_CC);
  	return SUCCESS;
  	zend_object_value retval;
 @@ -2531,6 +2534,9 @@
  	zend_error(E_WARNING, "%s() has been disabled for security reasons", class_type->name);
  	return retval;
   }
 +#ifdef PHP_WIN32
 +# pragma optimize("", on)
 +#ifdef ZEND_WIN32
 +#pragma optimize("", on)
  +#endif
   /* }}} */
   
  static int zend_is_callable_check_class(const char *name, int name_len, zend_fcall_info_cache *fcc, int *strict_class, char **error TSRMLS_DC) /* {{{ */
  static const zend_function_entry disabled_class_new[] = {
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 02:01:29 2024 UTC