Patch Add_sequence_count_to_build_runtime_defined_function_key for Scripting Engine problem Bug #64291
Patch version 2013-11-21 14:59 UTC
Return to Bug #64291 |
Download this patch
Patch Revisions:
Developer: Terry@ellisons.org.uk
--- zend_compile.c~ 2013-06-05 06:03:57.000000000 +0100
+++ zend_compile.c 2013-11-21 14:42:53.201084707 +0000
@@ -141,11 +141,12 @@
static void build_runtime_defined_function_key(zval *result, const char *name, int name_length TSRMLS_DC) /* {{{ */
{
- char char_pos_buf[32];
+ char char_pos_buf[32+2+(sizeof(int)/4)];
uint char_pos_len;
const char *filename;
+ static unsigned int seq_count = 0;
- char_pos_len = zend_sprintf(char_pos_buf, "%p", LANG_SCNG(yy_text));
+ char_pos_len = zend_sprintf(char_pos_buf, "%p0x%x", LANG_SCNG(yy_text), seq_count++);
if (CG(active_op_array)->filename) {
filename = CG(active_op_array)->filename;
} else {
|