mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Deprecate PHP 4 constructors
This commit is contained in:
parent
d252c9f832
commit
db76b708cf
110 changed files with 219 additions and 191 deletions
|
@ -8,7 +8,7 @@ array_uintersect_assoc(): Test return type and value for expected input
|
|||
*/
|
||||
class cr {
|
||||
private $priv_member;
|
||||
function cr($val) {
|
||||
function __construct($val) {
|
||||
$this->priv_member = $val;
|
||||
}
|
||||
static function comp_func_cr($a, $b) {
|
||||
|
@ -33,4 +33,4 @@ array(2) {
|
|||
["priv_member":"cr":private]=>
|
||||
int(-15)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue