|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-01-16 04:12 UTC] requinix@php.net
-Status: Open
+Status: Feedback
[2014-01-16 04:12 UTC] requinix@php.net
[2014-01-16 14:43 UTC] daniuf at gmail dot com
-Status: Feedback
+Status: Open
[2014-01-16 14:43 UTC] daniuf at gmail dot com
[2014-01-19 14:54 UTC] felipe@php.net
-Status: Open
+Status: Feedback
[2014-01-19 14:54 UTC] felipe@php.net
[2014-01-23 01:23 UTC] daniuf at gmail dot com
-Status: Feedback
+Status: Closed
[2014-01-23 01:23 UTC] daniuf at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 16 04:00:02 2025 UTC |
Description: ------------ When trying to use preg_match I'm not getting the expected result. As you can see, $chiche var should have one element, and it's empty. I've tested same script with version 5.3.3 and works perfectly fine. Also, I'm not getting any error, although I've setted up error_reporting(E_ALL). Best regards! Test script: --------------- <?php error_reporting(E_ALL); $res = "hola"; $res = preg_match("/hola/", $res, $chiche); var_dump($chiche); Expected result: ---------------- I expect to see : array(1) { [0]=> string(4) "hola" } Actual result: -------------- I see: array(0) { }