FreeBSD Bugzilla – Attachment 49610 Details for
Bug 75737
[PATCH] lang/php4: fix for crashing with overloaded objects
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
php4-4.3.10_1.patch
php4-4.3.10_1.patch (text/plain), 1.52 KB, created by
Toni Viemerö
on 2005-01-03 06:10:15 UTC
(
hide
)
Description:
php4-4.3.10_1.patch
Filename:
MIME Type:
Creator:
Toni Viemerö
Created:
2005-01-03 06:10:15 UTC
Size:
1.52 KB
patch
obsolete
>diff -ruN --exclude=CVS /usr/ports/lang/php4/Makefile /home/toni/ports/php4/Makefile >--- /usr/ports/lang/php4/Makefile Thu Dec 16 13:37:23 2004 >+++ /home/toni/ports/php4/Makefile Tue Dec 28 15:00:39 2004 >@@ -7,7 +7,7 @@ > > PORTNAME= php4 > PORTVERSION= 4.3.10 >-PORTREVISION?= 0 >+PORTREVISION?= 1 > CATEGORIES?= lang devel www > MASTER_SITES= ${MASTER_SITE_PHP:S,$,:release,} \ > http://downloads.php.net/ilia/:rc \ >diff -ruN --exclude=CVS /usr/ports/lang/php4/files/patch-Zend::zend_execute.c /home/toni/ports/php4/files/patch-Zend::zend_execute.c >--- /usr/ports/lang/php4/files/patch-Zend::zend_execute.c Thu Jan 1 02:00:00 1970 >+++ /home/toni/ports/php4/files/patch-Zend::zend_execute.c Tue Dec 28 15:04:38 2004 >@@ -0,0 +1,13 @@ >+--- Zend/zend_execute.c.orig Tue Dec 28 15:03:55 2004 >++++ Zend/zend_execute.c Tue Dec 28 15:03:57 2004 >+@@ -1577,6 +1577,10 @@ >+ EX(Ts)[EX(opline)->op1.u.var].EA.data.overloaded_element.elements_list = (zend_llist *) emalloc(sizeof(zend_llist)); >+ zend_llist_init(EX(Ts)[EX(opline)->op1.u.var].EA.data.overloaded_element.elements_list, sizeof(zend_overloaded_element), NULL, 0); >+ EX(object).ptr->refcount++; >++ /* is-ref needed so that assign to this in call won't separate it */ >++ if(EX(object).ptr->refcount > 1) { >++ EX(object).ptr->is_ref = 1; >++ } >+ } >+ zend_llist_add_element(EX(Ts)[EX(opline)->op1.u.var].EA.data.overloaded_element.elements_list, &overloaded_element); >+ EX(fbc) = (zend_function *) emalloc(sizeof(zend_function));
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 75737
: 49610