소스 검색

Merge pull request #4044 from vbence/php-dynamics-safeguard

Safeguard in reflection not to trigger magic __get in subclasses unintentionally.
Simon Krajewski 10 년 전
부모
커밋
9ced6009bb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      std/php/Boot.hx

+ 1 - 1
std/php/Boot.hx

@@ -398,7 +398,7 @@ function _hx_field($o, $field) {
 							return $o->$field;
 						}
 					}
-				} else if(isset($o->__dynamics[$field])) {
+				} else if(isset($o->__dynamics) && isset($o->__dynamics[$field])) {
 					return $o->__dynamics[$field];
 				} else {
 					return array($o, $field);