Re: [Patch] DB_DataObject

From: Date: Fri, 06 Aug 2004 06:57:47 +0000
Subject: Re: [Patch] DB_DataObject
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-32473@lists.php.net to get a copy of this message
ok, I was wrong: I actually get x,y,z on this test. and I've just found out that if I set 'DB_DATAOBJECT_NO_OVERLOAD' to true, I don't get any problem. So I guess that this is related to something you already knew, and it probably does not need a patch... So sorry for bothering you for nothing, and thank you again for your work. The rest works fine and is really cool. Regards, Benjamin ----- Original Message ----- From: "Alan Knowles" <alan@akbkhome.com> To: "Layet Benjamin" <benjamin@moonfactory.co.jp> Cc: <pear-dev@lists.php.net> Sent: Friday, August 06, 2004 2:38 PM Subject: Re: [Patch] DB_DataObject > 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 > > >

« previous php.pear.dev (#32473) next »