|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-01-25 01:14 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 16:00:01 2025 UTC |
Description: ------------ Any method of any class can be called staticly. Internals and scripted ones too. * TipOfTheDay * Call any internal class's constructor from outside of object. As object doesn't exists, and ZE2 calls the internal constructor, process crashes immadiately. Reproduce code: --------------- <? domdocument::domdocument(); ?> , or <? domdocument::__construct(); ?> both works, to crash the process. <? class check { function not_static() { echo "Impossible, but works!"; } } check::not_static(); Expected result: ---------------- Warning or fatal error. Actual result: -------------- Crash.