Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102710 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11566 invoked from network); 10 Jul 2018 13:39:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jul 2018 13:39:48 -0000 X-Host-Fingerprint: 85.148.127.252 s55947ffc.adsl.online.nl Received: from [85.148.127.252] ([85.148.127.252:23346] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1A/25-15421-027B44B5 for ; Tue, 10 Jul 2018 09:39:44 -0400 To: internals@lists.php.net Date: Tue, 10 Jul 2018 15:39:39 +0200 Message-ID: References: <8jq8kdlrqnaiego6no06osfq2ciao11tdm@4ax.com> <64dbb0c4-f960-9025-99ed-08d624864977@gmx.de> X-Newsreader: Forte Agent 3.3/32.846 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Posted-By: 85.148.127.252 Subject: Re: libmbfl API changes in PHP 7.3 From: phpdev@ehrhardt.nl (Jan Ehrhardt) "Christoph M. Becker" in php.internals (Tue, 10 Jul 2018 12:04:10 +0200): >Have you tried to convert the first two arguments via mbfl_no2encoding()[1]? It compiles, but segfaults in 1 test on this line https://github.com/php/pecl-mail-mailparse/blob/master/mailparse.c#L1466 Unhandled exception at 0x000007FEEC6E83C2 (php7.dll) in php.exe: 0xC0000005: Access violation reading location 0x000000060BE02800. occurred Relevant part of the backtrace: [Inline Frame] php7.dll!zend_mm_alloc_small(_zend_mm_heap *) Line 1285 [Inline Frame] php7.dll!zend_mm_alloc_heap(_zend_mm_heap * heap, unsigned __int64) Line 1356 php7.dll!_emalloc(unsigned __int64 size) Line 2496 [Inline Frame] php_mailparse.dll!zend_string_alloc(unsigned __int64) Line 133 [Inline Frame] php_mailparse.dll!zend_string_init(const char *) Line 155 php_mailparse.dll!mailparse_get_part_data(_php_mimepart * part, _zval_struct * return_value) It passes all tests in PHP 7.2.8 RC1. I will make a PR and continue the discussion there. -- Jan