Doc #74248 [Opn->Csd]: Missing migration gotcha in regards to declare(ticks=1);

From: Date: Wed, 17 Apr 2019 14:53:31 +0000
Subject: Doc #74248 [Opn->Csd]: Missing migration gotcha in regards to declare(ticks=1);
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-16598@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=74248&edit=1 ID: 74248 Updated by: girgias@php.net Reported by: matt dot minix at gmail dot com Summary: Missing migration gotcha in regards to declare(ticks=1); -Status: Open +Status: Closed Type: Documentation Problem Package: Documentation problem -Operating System: Irrelevant +Operating System: PHP Version: Irrelevant -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: This seems to fixed by this SVN commit: https://svn.php.net/viewvc?view=revision&revision=347260 As this bug seems related to #77901 Previous Comments: ------------------------------------------------------------------------ [2017-03-14 23:02:54] matt dot minix at gmail dot com Description: ------------ --- From manual page: http://www.php.net/migration70 --- declare(ticks=1); in versions of php prior to 7 had a global effect, all code after it in any file were affected, this is apparently due to an implementation bug (see: nikic@php.net's resolution comment here - https://bugs.php.net/bug.php?id=71448), with that bug being fixed this now has a different behavior (of only being in affect in the file it's in), which can cause problems in applications that assume the old behavior. In addition, I think the change is worth a mention on this page - http://php.net/manual/en/control-structures.declare.php ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=74248&edit=1

« previous php.doc.bugs (#16598) next »