php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch check_for_failed_apc_pool_alloc.patch for APC Bug #64141

Patch version 2013-02-04 13:36 UTC

Return to Bug #64141 | Download this patch
Patch Revisions:

Developer: lazy@iq.pl

Index: apc_compile.c
===================================================================
--- apc_compile.c	(wersja 814)
+++ apc_compile.c	(kopia robocza)
@@ -1208,7 +1208,7 @@
         zend_literal *p, *q, *end;
 
         q = src->literals;
-        p = dst->literals = (zend_literal*) apc_pool_alloc(pool, (sizeof(zend_literal) * src->last_literal));
+        CHECK(p = dst->literals = (zend_literal*) apc_pool_alloc(pool, (sizeof(zend_literal) * src->last_literal)));
         end = p + src->last_literal;
         while (p < end) {
             *p = *q;
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 23:01:30 2024 UTC