For Programmers: Free Programming Magazines  


Home > Archive > PHP Zend Engine > July 2004 > cvs: Zend(PHP_4_3) / zend_execute.c









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: Zend(PHP_4_3) / zend_execute.c
Ilia Alshanetsky

2004-07-12, 3:58 pm

iliaa Mon Jul 12 13:47:32 2004 EDT

Modified files: (Branch: PHP_4_3)
/Zend zend_execute.c
Log:
MFZE2: Fixed bug #29086 & #28064 (PHP crashes on extremly long scripts).


http://cvs.php.net/diff.php/Zend/ze...1.316.2.38&ty=u
Index: Zend/zend_execute.c
diff -u Zend/zend_execute.c:1.316.2.37 Zend/zend_execute.c:1.316.2.38
--- Zend/zend_execute.c:1.316.2.37 Thu Jun 24 12:39:47 2004
+++ Zend/zend_execute.c Mon Jul 12 13:47:32 2004
@@ -1038,7 +1038,7 @@
EX(ce) = NULL;
EX(object).ptr = NULL;
EX(op_array) = op_array;
- EX(Ts) = (temp_variable *) do_alloca(sizeof(temp_variable)*op_array
->T);
+ EX(Ts) = (temp_variable *) safe_emalloc(sizeof(temp_variable), op_array->T, 0);
EX(prev_execute_data) = EG(current_execute_data);
EX(original_in_execution)=EG(in_executio
n);

@@ -1757,7 +1757,7 @@
(*EG(return_value_ptr_ptr))->is_ref = 0;
}
}
- free_alloca(EX(Ts));
+ efree(EX(Ts));
EG(in_execution) = EX(original_in_execution);
EG(current_execute_data) = EX(prev_execute_data);
return;
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com