Tab | 23 Mar 2006 19:08

Bugs found

Hi,

I'm new to metastorage. I installed and created a component and some 
classes and ran the metastorage command line tool to generate 
things. FYI, I'm using PHP 5.0.3.

The first problem I encountered was that the component file MUST 
include at least one class definition inline (in the component 
file). I prefer to have all my classes in separate files and use the 
includeclass tag, but when I did this, I got this error:

Building generatecomponent.files ...
Error: it was not specified any persistence component class argument 
(File "security.component", Line 2, Column 11, Byte 32)

I was able to get past it by inlining one of the classes. This is 
broken.

The next problem was when I ran the tool again and received all 
these notices:

Building component.files ...
Building install.files ...
Built install.files .

Building generatecomponent.files ...
PHP Notice:  Undefined variable: function 
in /usr/share/metal/metal/metal_persistence.php on line 2092
PHP Notice:  Undefined variable: function 
in /usr/share/metal/metal/metal_persistence.php on line 2092
(Continue reading)

Manuel Lemos | 23 Mar 2006 19:54
Picon
Favicon

Re: Bugs found

Hello,

on 03/23/2006 03:08 PM Tab said the following:
> The first problem I encountered was that the component file MUST 
> include at least one class definition inline (in the component 
> file). I prefer to have all my classes in separate files and use the 
> includeclass tag, but when I did this, I got this error:
> 
> Building generatecomponent.files ...
> Error: it was not specified any persistence component class argument 
> (File "security.component", Line 2, Column 11, Byte 32)
> 
> I was able to get past it by inlining one of the classes. This is 
> broken.
> 
> The next problem was when I ran the tool again and received all 
> these notices:

I suspect that this has to due with known bugs in PHP <= 5.0.4 (and also
PHP <= 4.4.1) that make PHP not be able to traverse array structures
correctly.

If that is the case, you would need to upgrade PHP to at least to PHP
5.0.5 (or PHP 4.4.2). PHP 5.1.x and PHP 4.3.x work ok.

Plese try a newer version and let me know if you still run into problems.

Apart from that, you may also want to try the latest Metastorage
snapshot CVS. Some bugs unrelated to what you are experiencing were
fixed, although they only affect the generated code under PHP 4.4.x .
(Continue reading)

Tab Bennedum | 23 Mar 2006 23:42

Re: Bugs found

I upgraded to php 5.1.2 and I'm still getting the same errors. Any
other ideas?

-Tab

> Hello,
>
> on 03/23/2006 03:08 PM Tab said the following:
>> The first problem I encountered was that the component file MUST
>> include at least one class definition inline (in the component
>> file). I prefer to have all my classes in separate files and use
>> the
>> includeclass tag, but when I did this, I got this error:
>>
>> Building generatecomponent.files ...
>> Error: it was not specified any persistence component class
>> argument
>> (File "security.component", Line 2, Column 11, Byte 32)
>>
>> I was able to get past it by inlining one of the classes. This is
>> broken.
>>
>> The next problem was when I ran the tool again and received all
>> these notices:
>
> I suspect that this has to due with known bugs in PHP <= 5.0.4 (and
> also
> PHP <= 4.4.1) that make PHP not be able to traverse array structures
> correctly.
>
(Continue reading)

Tab Bennedum | 23 Mar 2006 23:41

Re: Bugs found

Thanks for the tip, but it didn't work. I upgraded to php 5.1.2 and
I'm getting the same errors. Any other ideas?

-Tab

> Hello,
>
> on 03/23/2006 03:08 PM Tab said the following:
>> The first problem I encountered was that the component file MUST
>> include at least one class definition inline (in the component
>> file). I prefer to have all my classes in separate files and use
>> the
>> includeclass tag, but when I did this, I got this error:
>>
>> Building generatecomponent.files ...
>> Error: it was not specified any persistence component class
>> argument
>> (File "security.component", Line 2, Column 11, Byte 32)
>>
>> I was able to get past it by inlining one of the classes. This is
>> broken.
>>
>> The next problem was when I ran the tool again and received all
>> these notices:
>
> I suspect that this has to due with known bugs in PHP <= 5.0.4 (and
> also
> PHP <= 4.4.1) that make PHP not be able to traverse array structures
> correctly.
>
(Continue reading)

Manuel Lemos | 24 Mar 2006 00:45
Picon
Favicon

Re: Bugs found

Hello,

on 03/23/2006 07:41 PM Tab Bennedum said the following:
> Thanks for the tip, but it didn't work. I upgraded to php 5.1.2 and
> I'm getting the same errors. Any other ideas?

Now, that you mentioned, I double checked and there was indeed a bug of
complaining about missing class definitions when all classes are defined
with includeclass. I just fixed the bug and you may now download the
latest Metastorage CVS snapshot to use the fixed version.

http://www.meta-language.net/download.html#snapshots

--

-- 

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

 
Tab Bennedum | 24 Mar 2006 17:46

Re: Bugs found


I've updated from the CVS snapshot and things are working as
expected. Thanks.

-Tab

On Thu, March 23, 2006 6:45 pm, Manuel Lemos wrote:
> Hello,
>
>
> on 03/23/2006 07:41 PM Tab Bennedum said the following:
>> Thanks for the tip, but it didn't work. I upgraded to php 5.1.2
>> and I'm getting the same errors. Any other ideas?
>>
>
> Now, that you mentioned, I double checked and there was indeed a
> bug of complaining about missing class definitions when all classes
> are defined with includeclass. I just fixed the bug and you may now
> download the latest Metastorage CVS snapshot to use the fixed
> version.
>
> http://www.meta-language.net/download.html#snapshots
>
>
> --
>
>
> Regards,
> Manuel Lemos
>
(Continue reading)

Manuel Lemos | 24 Mar 2006 00:29
Picon
Favicon

Re: Bugs found

Hello,

on 03/23/2006 07:41 PM Tab Bennedum said the following:
> Thanks for the tip, but it didn't work. I upgraded to php 5.1.2 and
> I'm getting the same errors. Any other ideas?

The undefined function warning was fixed some time ago. Did you download
the latest CVS snapshot version of Metastorage?

http://www.meta-language.net/download.html#snapshots

--

-- 

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

 
Tab Bennedum | 24 Mar 2006 01:01

Re: Bugs found

I downloaded from

http://www.meta-language.net/download.html

I wouldn't have expected to have to download from CVS for a
"current" version. I would normally consider downloading from CVS
only for "development" versions.

-Tab

> Hello,
>
> on 03/23/2006 07:41 PM Tab Bennedum said the following:
>> Thanks for the tip, but it didn't work. I upgraded to php 5.1.2
>> and
>> I'm getting the same errors. Any other ideas?
>
> The undefined function warning was fixed some time ago. Did you
> download
> the latest CVS snapshot version of Metastorage?
>
> http://www.meta-language.net/download.html#snapshots
>
>
> --
>
> Regards,
> Manuel Lemos
>
> Metastorage - Data object relational mapping layer generator
(Continue reading)


Gmane