| | 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 |