소스 검색

Rename constructor functions to __construct

Stefan Siegl 9 년 전
부모
커밋
cbbce91ffd
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      tests/get_constructor.phpt
  2. 1 1
      tests/magic_func.phpt

+ 1 - 1
tests/get_constructor.phpt

@@ -6,7 +6,7 @@ Test V8::executeString() : Get constructor method
 <?php
 
 class Foo {
-	function Foo() {
+	function __construct() {
 		echo "called constructor: ";
 		var_dump(func_get_args());
 	}

+ 1 - 1
tests/magic_func.phpt

@@ -9,7 +9,7 @@ class Foo {
 	var $bar = 'foobar';
 	var $nullprop = null;
 
-	function Foo() {
+	function __construct() {
 		echo "called constructor: ";
 		var_dump(func_get_args());
 	}