|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-09-22 14:13 UTC] tularis@php.net
[2008-09-22 21:30 UTC] paszczak at thecamels dot org
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 11:00:02 2025 UTC |
Description: ------------ Why exit don't stop execute of PHP script? Reproduce code: --------------- class innaklasa { public function __construct() { print "inna klasa<br />"; } public function zrob() { print "inna klasa zrob<br />"; } } class klasa { public function __construct() { print "konstruktor<br />"; } public function __destruct() { print "destruktor<br />"; $innaklasa = new innaklasa; $innaklasa->zrob(); } } $c = new klasa; exit; Expected result: ---------------- konstruktor Actual result: -------------- konstruktor inna klasa inna klasa zrob