⬆️ ⬇️

PHP 5.3: DoS is not a bug, but a feature

This is exactly what PHP developers think.

The feature is in Segmentation Fault / Access Violation under unix / windows when executing code:

  <? php
 class A {} 
 class B extends A { 
     public function __construct () { 
         $ args = func_get_args (); 
         call_user_func_array (array ($ this, "parent :: __ construct"), $ args); 
     } 
 } 
 class C extends B {} 
 $ instance = new C ();  // segfault 


The developers say that this is not a bug at all and they want to add information about this feature to the documentation.



The webserver / server server falls naturally. But this is normal, __ because it should be __.


')

Source: https://habr.com/ru/post/70558/



All Articles