|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-04-13 09:43 UTC] ab@php.net
-Status: Open
+Status: Feedback
[2016-04-13 09:43 UTC] ab@php.net
[2016-04-13 10:45 UTC] aayaresko at gmail dot com
[2016-04-13 12:22 UTC] ab@php.net
[2016-04-13 12:22 UTC] aayaresko at gmail dot com
[2016-04-13 12:58 UTC] aayaresko at gmail dot com
[2016-04-13 13:21 UTC] ab@php.net
[2016-04-14 06:28 UTC] aayaresko at gmail dot com
[2016-04-14 19:46 UTC] ab@php.net
[2016-04-15 05:16 UTC] aayaresko at gmail dot com
[2016-04-24 04:22 UTC] php-bugs at lists dot php dot net
[2016-04-24 04:28 UTC] requinix@php.net
-Status: No Feedback
+Status: Open
[2016-04-24 04:45 UTC] aayaresko at gmail dot com
[2016-04-24 08:39 UTC] aayareslp at gmail dot com
[2016-04-24 09:48 UTC] pajoye@php.net
[2016-04-24 10:41 UTC] aayaresko at gmail dot com
[2016-04-24 16:18 UTC] pajoye@php.net
[2016-04-24 17:16 UTC] aayareslp at gmail dot com
[2016-05-11 05:49 UTC] aayaresko at gmail dot com
[2016-06-29 07:36 UTC] esteban dot marin at bithost dot ch
[2016-06-29 07:51 UTC] esteban dot marin at bithost dot ch
[2016-06-29 08:36 UTC] esteban dot marin at bithost dot ch
[2016-08-20 10:16 UTC] cmb@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: cmb
[2016-08-20 10:16 UTC] cmb@php.net
[2016-08-20 10:18 UTC] cmb@php.net
-Package: *Regular Expressions
+Package: PCRE related
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 17 07:00:01 2025 UTC |
Description: ------------ Performing any regular expression function with pattern similar to this one '/(:(?:nth-last-child|nth-of-type|nth-last-of-type|first-child|last-child|first-of-type|last-of-type|only-child|only-of-type|nth-child|first|last|gt|lt|eq|root|nth|empty|not|has|contains|parent|link|visited|hover|active)(?:\((?>[^()]|(?R))*\))?|\[(?>[^\[\]]|(?R))*\]|[#.][\w-]+)/' causes a php error. On linux operating systems this error can be reproduced with php-cli (command line interface) in interactive mode. Running php-fpm on this example leads to a similar result. Test script: --------------- preg_split('/(:(?:nth-last-child|nth-of-type|nth-last-of-type|first-child|last-child|first-of-type|last-of-type|only-child|only-of-type|nth-child|first|last|gt|lt|eq|root|nth|empty|not|has|contains|parent|link|visited|hover|active)(?:\((?>[^()]|(?R))*\))?|\[(?>[^\[\]]|(?R))*\]|[#.][\w-]+)/', '#hello-world', 0, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY); preg_match('/(:(?:nth-last-child|nth-of-type|nth-last-of-type|first-child|last-child|first-of-type|last-of-type|only-child|only-of-type|nth-child|first|last|gt|lt|eq|root|nth|empty|not|has|contains|parent|link|visited|hover|active)(?:\((?>[^()]|(?R))*\))?|\[(?>[^\[\]]|(?R))*\]|[#.][\w-]+)/', '#hello-world'); Actual result: -------------- *** Error in `php': free(): invalid pointer: 0x00007ff5bb019564 *** *** Error in `php': malloc(): smallbin double linked list corrupted: 0x0000000002c4dca0 ***