Bug #72966 [Opn->Dup]: declare(ticks=1) doesn't seem to be impacting files included by a parent file

From: Date: Tue, 14 Mar 2017 13:04:24 +0000
Subject: Bug #72966 [Opn->Dup]: declare(ticks=1) doesn't seem to be impacting files included by a parent file
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-207828@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72966&edit=1 ID: 72966 Updated by: nikic@php.net Reported by: matt dot minix at gmail dot com Summary: declare(ticks=1) doesn't seem to be impacting files included by a parent file -Status: Open +Status: Duplicate Type: Bug Package: Scripting Engine problem Operating System: CentOS Linux release 7.2.1511 PHP Version: 7.0.10 Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2017-03-14 13:04:14] nikic@php.net Duplicate of bug #71448. ------------------------------------------------------------------------ [2017-03-14 12:44:16] dasteph at gmail dot com I can confirm this bug for PHP 7.1.2-4+deb.sury.org~xenial+1 on Ubuntu 16.04.2 LTS ------------------------------------------------------------------------ [2016-08-30 10:45:27] rowan dot collins at gmail dot com This has definitely changed behaviour in PHP 7: https://3v4l.org/LsanG And placing all the code in one file does indeed show the expected output: https://3v4l.org/8I083 ------------------------------------------------------------------------ [2016-08-29 18:17:31] matt dot minix at gmail dot com I think I chose the wrong package for this bug ------------------------------------------------------------------------ [2016-08-29 18:13:54] matt dot minix at gmail dot com I tested this in php 5.6.18, and it is definitely working differently in 5.6.18 than 7.0.10. In 5.6.18 it gives the expected result of tick tick tick tick 0 tick 1 tick 2 tick 3 tick 4 tick 5 tick 6 tick 7 tick 8 tick 9 tick tick tick ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=72966 -- Edit this bug report at https://bugs.php.net/bug.php?id=72966&edit=1

« previous php.bugs (#207828) next »