| 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/130402
Del: integrated -- https://main.php.net/note/delete/130402/integrated
Del: useless -- https://main.php.net/note/delete/130402/useless
Del: bad code -- https://main.php.net/note/delete/130402/bad+code
Del: spam -- https://main.php.net/note/delete/130402/spam
Del: non-english -- https://main.php.net/note/delete/130402/non-english
Del: in docs -- https://main.php.net/note/delete/130402/in+docs
Del: other reasons-- https://main.php.net/note/delete/130402
Reject -- https://main.php.net/note/reject/130402
Search -- https://main.php.net/manage/user-notes.php