Edit report at https://bugs.php.net/bug.php?id=78118&edit=1

 ID:                 78118
 Updated by:         c...@php.net
 Reported by:        v-altruo at microsoft dot com
 Summary:            preg match error
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            Testing related
 Operating System:   Windows
 PHP Version:        7.3.6
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

Thanks for reporting!  I cannot reproduce this test
failure,though.  Looking at the posted test script, there might be
an issue regarding the character encoding, since the extension_dir
is a/é/w (UTF-8), but the comment above states that the file is
required to be encoded in iso-8859-1.  Can you please
double-check, that the file's encoding is what it is supposed to
be?  Furthermore, for debugging purposes, it might be helpful to
insert a `var_dump($out);` after `$out = shell_exec($cmd);` to be
able to see in bug71273.out what was actually reported by PHP.


Previous Comments:
------------------------------------------------------------------------
[2019-06-05 20:18:17] v-altruo at microsoft dot com

Description:
------------
Test fails for TS build only regardless of opcache on/off.

Test File location: tests\basic\bug71273.phpt 

Test script:
---------------
<?php
        /* NOTE this file is required to be encoded in iso-8859-1 */

        $cmd = getenv('TEST_PHP_EXECUTABLE') . " -n -d html_errors=on -d 
extension_dir=a/é/w -d extension=php_kartoffelbrei.dll -v 2>&1";
        $out = shell_exec($cmd);

        var_dump(preg_match(",.+a[\\/].+[\\/]w.php_kartoffelbrei.dll.+,s", 
$out));
?>

Expected result:
----------------
int(1)
==DONE==

Actual result:
--------------
int(0)
==DONE==


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=78118&edit=1

Reply via email to