Bug #78554 [Opn->Nab]: tokenzier changed behavior

From: Date: Tue, 17 Sep 2019 15:21:36 +0000
Subject: Bug #78554 [Opn->Nab]: tokenzier changed behavior
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-222788@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78554&edit=1 ID: 78554 Updated by: nikic@php.net Reported by: bugreports at gmail dot com Summary: tokenzier changed behavior -Status: Open +Status: Not a bug Type: Bug Package: Unknown/Other Function PHP Version: 7.4Git-2019-09-17 (Git) Block user comment: N Private report: N New Comment: The output is the same, only token IDs changed. Token IDs are not stable between PHP versions. Previous Comments: ------------------------------------------------------------------------ [2019-09-17 15:18:59] bugreports at gmail dot com Description: ------------ check failed in autotests/custom/code-coverage.php on line 103 Test script: --------------- /** tokenizer */ if(function_exists('token_get_all') === TRUE) { if(base64_encode(serialize(token_get_all('<?php echo; ?>'))) !== 'YTo1OntpOjA7YTozOntpOjA7aTozNzk7aToxO3M6NjoiPD9waHAgIjtpOjI7aToxO31pOjE7YTozOntpOjA7aTozMjg7aToxO3M6NDoiZWNobyI7aToyO2k6MTt9aToyO3M6MToiOyI7aTozO2E6Mzp7aTowO2k6MzgyO2k6MTtzOjE6IiAiO2k6MjtpOjE7fWk6NDthOjM6e2k6MDtpOjM4MTtpOjE7czoyOiI/PiI7aToyO2k6MTt9fQ==') { trigger_error('check failed'); $exit_code = 1; } } ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=78554&edit=1

« previous php.bugs (#222788) next »