Changeset d70377b in git


Ignore:
Timestamp:
2006-08-28T00:31:00Z (13 years ago)
Author:
Xuefer <xuefer@…>
Branches:
1.1, 1.2, 1.3, 3.0, 3.1, 3.2, master, trunk
Children:
745a9ed
Parents:
d468a76
Message:

trigger hash_init+zend_destroy_property_info to compatible with suhosin

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@111 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xcache.c

    r9e78cef rd70377b  
    11181118    xc_coverager_request_init(TSRMLS_C);
    11191119#endif
     1120#if defined(SUHOSIN_PATCH) && SUHOSIN_PATCH && defined(ZEND_ENGINE_2)
     1121    {
     1122        static zend_bool suhosin_trick_done = 0;
     1123        if (!suhosin_trick_done) {
     1124            zend_class_entry *tmpclass = emalloc(sizeof(zend_class_entry));
     1125
     1126            suhosin_trick_done = 1;
     1127            tmpclass->type = ZEND_USER_CLASS;
     1128            tmpclass->name = emalloc(5);
     1129            tmpclass->name_length = 4;
     1130            memcpy(tmpclass->name, "test", tmpclass->name_length);
     1131
     1132            zend_initialize_class_data(tmpclass, 1 TSRMLS_CC);
     1133            destroy_zend_class(&tmpclass);
     1134        }
     1135    }
     1136#endif
    11201137}
    11211138/* }}} */
Note: See TracChangeset for help on using the changeset viewer.