[PHP-NOTES] note 130401 added to language.exceptions.extending

[email protected] ("Anonymous") Wed, 2 Jul 2025 14:25:06 +0000 (UTC)
Newsgroups php.notes
Message-ID <[email protected]>
Since 2002 i used php's class containers  build "custom oop" never oop's features..
If you make anything of this ..enjoy !!!

<?php

class m{
	public function __construct(){
		echo 'm::__construct'.PHP_EOL;
	}
	public function __destruct(){
		echo 'm::__destruct'.PHP_EOL;
	}
	public static function p1(){
		echo 'm::p1()'.PHP_EOL;
	}
	public static function p2(){
		echo 'm::p2()'.PHP_EOL;
	}
	public static function itwas(){
		echo 'I`m just '.phpversion().' on m::itwas()'.PHP_EOL;
	}
}

$_=new m;
$_::p1();
$_::p2();
//$_::itwas();
register_shutdown_function([$_,'itwas']);
/*
 * 
 * Debian 12 ,server 1,php cli
 * (Geany/Set build commands/Execute  /opt/lampp/bin/php "%f") :
 * ==============================
 * m::__construct
 * m::p1()
 * m::p2()
 * I`m just 5.4.31 on m::itwas()
 * m::__destruct
 *
 * 
 * 
 * 
 * 
 * Debian 12, server 2,php cli
 * (Geany/Set build commands/Execute  php "%f"):
 * ==============================
 * m::__construct
 * m::p1()
 * m::p2()
 * I`m just 8.4.8 on m::itwas()
 * m::__destruct
 * 
 * 
 * 
 */
?>
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 86.125.181.181)
----
Manual Page -- https://php.net/manual/en/language.exceptions.extending.php
Edit        -- https://main.php.net/note/edit/130401
Del: integrated  -- https://main.php.net/note/delete/130401/integrated
Del: useless     -- https://main.php.net/note/delete/130401/useless
Del: bad code    -- https://main.php.net/note/delete/130401/bad+code
Del: spam        -- https://main.php.net/note/delete/130401/spam
Del: non-english -- https://main.php.net/note/delete/130401/non-english
Del: in docs     -- https://main.php.net/note/delete/130401/in+docs
Del: other reasons-- https://main.php.net/note/delete/130401
Reject      -- https://main.php.net/note/reject/130401
Search      -- https://main.php.net/manage/user-notes.php