Bug #74833 [Com]: Random crashes, seemingly related to DateTimeImmutable and mod_php

From: Date: Tue, 04 Jul 2017 17:04:26 +0000
Subject: Bug #74833 [Com]: Random crashes, seemingly related to DateTimeImmutable and mod_php
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-209806@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=74833&edit=1 ID: 74833 Comment by: mike dot fellows at shaw dot ca Reported by: mike dot fellows at shaw dot ca Summary: Random crashes, seemingly related to DateTimeImmutable and mod_php Status: Assigned Type: Bug Package: Apache2 related Operating System: Windows 7 64 bit, MacOs, Linux PHP Version: 7.0.1 to 7.1.6 Assigned To: ab Block user comment: N Private report: N New Comment: @ab thanks for build the MS SQL server extension. Unfortunately I get a 401 error when I try to download it (Access is denied due to invalid credentials). Not sure how to get around that one. Previous Comments: ------------------------------------------------------------------------ [2017-07-02 17:35:03] ab@php.net Here you are http://windows.php.net/downloads/snaps/ostc/74833/php_pdo_sqlsrv-4.3.0rc1-7.2-ts-vc15-x64.zip Thanks. ------------------------------------------------------------------------ [2017-07-02 03:10:17] mike dot fellows at shaw dot ca I'm using the 64 bit thread safe pdo_sqlsrv extension. I'm happy to test as much as I can, be great if you think you can build the extension. But I can do it as well. I won't be able to start testing until Tuesday at the earliest though. Cheers. ------------------------------------------------------------------------ [2017-07-01 19:39:55] ab@php.net The repo linked contains at least two exts, pdo_sqlsrv and sqlsrv. Which one do you use? Also, which flavour, x64, x86, etc. These exts are on PECL, so some latest release could be built. Right now it looks like it's indeed the known issue already fixed in 7.2, so it would be great to have confirmed. For 7.1 - as long as it's mod_winnt + PHP, there's no sublime workaround :( Moving to FCGI might show some more stability. Thanks. ------------------------------------------------------------------------ [2017-07-01 18:06:32] mike dot fellows at shaw dot ca @nikic definitely not using opcache then as nothing was showing in php_info, and I have not enabled it. I can capture more backtraces if you change your minds, it is not a big deal to do. Are they any recommendations for avoiding this problem in 7.1? Or is the only option to use 7.2? For 7.2 The only extension I would need beyond the standard PHP ones is the Microsoft SQL Server driver for PHP: https://github.com/Microsoft/msphpsql No 7.2 support yet (https://github.com/Microsoft/msphpsql/issues/444). I can't imagine that much has changed between 7.1 to 7.2 though. I'll see about building it next week for 7.2 and see what happens. I'm not really in a jam with this yet, but I will need to have some kind of workaround ready in about 8-10 weeks - I think a 7.2 PHP beta would be fine. Right now this problem is just a (very minor) development headache. Thx again for your help with this. ------------------------------------------------------------------------ [2017-07-01 16:47:58] ab@php.net Ah, i see i've overseen the backtraces already there. Yeah, the part like this AcXtrnal.dll!NS_FaultTolerantHeap::APIHook_RtlFreeHeap(void *,unsigned long,void *) Unknown ucrtbase.dll!free() Unknown php7ts.dll!zend_hash_reverse_apply(_zend_array * ht, int(*)(_zval_struct *) apply_func) Line 1603 C php7ts.dll!shutdown_executor() Line 376 C php7ts.dll!zend_deactivate() Line 1001 C php7ts.dll!php_request_shutdown(void * dummy) Line 1880 C php7apache2_4.dll!php_handler(request_rec * r) Line 725 C looks very much like the issue already fixed in 7.2. No further backtrace needed. Thanks. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=74833 -- Edit this bug report at https://bugs.php.net/bug.php?id=74833&edit=1

« previous php.bugs (#209806) next »