cvs: ZendEngine2 / zend_vm_def.h zend_vm_execute.h
| From: | Marcus Boerger | Date: | Mon, 07 Aug 2006 23:16:20 +0000 |
| Subject: | cvs: ZendEngine2 / zend_vm_def.h zend_vm_execute.h | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-5172@lists.php.net to get a copy of this message | ||
helly Mon Aug 7 23:16:20 2006 UTC
Modified files:
/ZendEngine2 zend_vm_def.h zend_vm_execute.h
Log:
- Fixed Bug #38064 ignored constructor visibility
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_vm_def.h?r1=1.134&r2=1.135&diff_format=u
Index: ZendEngine2/zend_vm_def.h
diff -u ZendEngine2/zend_vm_def.h:1.134 ZendEngine2/zend_vm_def.h:1.135
--- ZendEngine2/zend_vm_def.h:1.134 Mon Aug 7 15:15:36 2006
+++ ZendEngine2/zend_vm_def.h Mon Aug 7 23:16:20 2006
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_vm_def.h,v 1.134 2006/08/07 15:15:36 dmitry Exp $ */
+/* $Id: zend_vm_def.h,v 1.135 2006/08/07 23:16:20 helly Exp $ */
/* If you change this file, please regenerate the zend_vm_execute.h and
* zend_vm_opcodes.h files by running:
@@ -1789,6 +1789,9 @@
if(!ce->constructor) {
zend_error_noreturn(E_ERROR, "Can not call constructor");
}
+ if (Z_OBJCE_P(EG(This)) != ce->constructor->common.scope &&
(ce->constructor->common.fn_flags & ZEND_ACC_PRIVATE)) {
+ zend_error(E_COMPILE_ERROR, "Cannot call private %v::__constrcut()", ce->name);
+ }
EX(fbc) = ce->constructor;
}
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_vm_execute.h?r1=1.138&r2=1.139&diff_format=u
Index: ZendEngine2/zend_vm_execute.h
diff -u ZendEngine2/zend_vm_execute.h:1.138 ZendEngine2/zend_vm_execute.h:1.139
--- ZendEngine2/zend_vm_execute.h:1.138 Mon Aug 7 15:15:36 2006
+++ ZendEngine2/zend_vm_execute.h Mon Aug 7 23:16:20 2006
@@ -680,6 +680,9 @@
if(!ce->constructor) {
zend_error_noreturn(E_ERROR, "Can not call constructor");
}
+ if (Z_OBJCE_P(EG(This)) != ce->constructor->common.scope &&
(ce->constructor->common.fn_flags & ZEND_ACC_PRIVATE)) {
+ zend_error(E_COMPILE_ERROR, "Cannot call private %v::__constrcut()", ce->name);
+ }
EX(fbc) = ce->constructor;
}
@@ -898,6 +901,9 @@
if(!ce->constructor) {
zend_error_noreturn(E_ERROR, "Can not call constructor");
}
+ if (Z_OBJCE_P(EG(This)) != ce->constructor->common.scope &&
(ce->constructor->common.fn_flags & ZEND_ACC_PRIVATE)) {
+ zend_error(E_COMPILE_ERROR, "Cannot call private %v::__constrcut()", ce->name);
+ }
EX(fbc) = ce->constructor;
}
@@ -1031,6 +1037,9 @@
if(!ce->constructor) {
zend_error_noreturn(E_ERROR, "Can not call constructor");
}
+ if (Z_OBJCE_P(EG(This)) != ce->constructor->common.scope &&
(ce->constructor->common.fn_flags & ZEND_ACC_PRIVATE)) {
+ zend_error(E_COMPILE_ERROR, "Cannot call private %v::__constrcut()", ce->name);
+ }
EX(fbc) = ce->constructor;
}
@@ -1163,6 +1172,9 @@
if(!ce->constructor) {
zend_error_noreturn(E_ERROR, "Can not call constructor");
}
+ if (Z_OBJCE_P(EG(This)) != ce->constructor->common.scope &&
(ce->constructor->common.fn_flags & ZEND_ACC_PRIVATE)) {
+ zend_error(E_COMPILE_ERROR, "Cannot call private %v::__constrcut()", ce->name);
+ }
EX(fbc) = ce->constructor;
}
@@ -1253,6 +1265,9 @@
if(!ce->constructor) {
zend_error_noreturn(E_ERROR, "Can not call constructor");
}
+ if (Z_OBJCE_P(EG(This)) != ce->constructor->common.scope &&
(ce->constructor->common.fn_flags & ZEND_ACC_PRIVATE)) {
+ zend_error(E_COMPILE_ERROR, "Cannot call private %v::__constrcut()", ce->name);
+ }
EX(fbc) = ce->constructor;
}