[php-src] Issue #13891: === Total 1 memory leaks detected === zend_mm_heap corrupted Segmentation fault

From: Date: Fri, 05 Apr 2024 18:39:41 +0000
Subject: [php-src] Issue #13891: === Total 1 memory leaks detected === zend_mm_heap corrupted Segmentation fault
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-246709@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/13891 Author: kamil-tekiela ### Description The following test case: ```php --TEST-- Bug #74892 Url Rewriting (trans_sid) not working on urls that start with # --INI-- session.use_cookies=0 session.use_only_cookies=0 session.use_trans_sid=1 session.trans_sid_hosts=php.net --EXTENSIONS-- session --SKIPIF-- <?php include('skipif.inc'); ?> --FILE-- <?php ini_set('session.trans_sid_hosts','php.net'); session_id('sessionidhere'); session_start(); ?> <p><a href="index.php">Click This Anchor Tag!</a></p> <p><a href="index.php#place">External link with anchor</a></p> <p><a href="http://php.net#foo">External link with anchor 2</a></p> <p><a href="#place">Internal link</a></p> --EXPECT-- <p><a href="index.php?PHPSESSID=sessionidhere">Click This Anchor Tag!</a></p> <p><a href="index.php?PHPSESSID=sessionidhere#place">External link with anchor</a></p> <p><a href="http://php.net?PHPSESSID=sessionidhere#foo">External link with anchor 2</a></p> <p><a href="#place">Internal link</a></p> ``` Resulted in this output: ``` TEST 1/1 [ext/session/tests/bug74892.phpt] ========DIFF======== -- <p><a href="index.php?PHPSESSID=sessionidhere#place">External link with anchor</a></p> <p><a href="http://php.net?PHPSESSID=sessionidhere#foo">External link with anchor 2</a></p> <p><a href="#place">Internal link</a></p> 005+ [Fri Apr 5 20:37:59 2024] Script: '/mnt/d/projects/php-src/ext/session/tests/bug74892.php' 006+ /mnt/d/projects/php-src/Zend/zend_string.h(176) : Freeing 0x00007f921c406740 (32 bytes), script=/mnt/d/projects/php-src/ext/session/tests/bug74892.php 007+ === Total 1 memory leaks detected === 008+ zend_mm_heap corrupted 009+ Segmentation fault 010+ 011+ Termsig=11 ``` But I expected this output instead: PASS Happens on Ubuntu in WSL on the current master branch. ### PHP Version master ### Operating System Ubuntu 22.04.4 LTS

« previous php.bugs (#246709) next »