|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-08-08 01:39 UTC] mazzarelli at gmail dot com
[2008-08-08 14:12 UTC] lbarnaud@php.net
[2009-06-03 23:22 UTC] asti at informatik dot uni-kiel dot de
[2009-06-12 14:23 UTC] felipe@php.net
[2009-06-20 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 08:00:01 2025 UTC |
Description: ------------ when running a bit of code from the command line, it works. Running the same code interactively causes it to hang. Reproduce code: --------------- <?php // example1.php if (false) { try {} catch (Exception $e) {} } ?> <?php // example2.php function stop_the_madness () { static $i; if (++$i > 1) exit("WTF?!\n"); } stop_the_madness(); if (false) { try {} catch (Exception $e) {} } exit("A-OK\n"); ?> Expected result: ---------------- In the first snippet, nothing should happen. But when that is in a file, and require_once'ed from the interactive shell, it hangs. In the second example, when ran from CLI, it says A-OK. But when ran interactively, it says "WTF?!"