Re: [Patch] DB_DataObject
| From: | Alan Knowles | Date: | Fri, 06 Aug 2004 05:38:36 +0000 |
| Subject: | Re: [Patch] DB_DataObject | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-32472@lists.php.net to get a copy of this message | ||
This is a little odd:
try:
#php -r 'class a { function x() { } function y() {} } class b extends a
{ function z() {} } print_r(get_class_methods("b"));'
you should get x,y,z output.
If not - it's a bug in4.3.3
Regards
Alan
Layet Benjamin wrote:
> Hi,
> I had a problem with createTables.php that did not create any file.
> I went through the code of Generator.php and I changed on line 127:
> foreach(get_class_methods($class) as $method) {
> by
> foreach(get_class_methods("DB_DataObject_Generator") as $method) {
> and it worked properly afterward.
> I think the problem was that get_class_methods did not return
> inherited method with me...
> I am using php 4.3.3 with Miracle Linux Standard Edition V2.1 and
> MySql 3.23.56.
> I am sorry I did not have the cvs software, so I did not create a diff
> file...
> Thank you for your great work by the way !
> Ben