midgardproject / midgard-php5

PHP5 API for Midgard persistent storage framework
http://www.midgard-project.org/api-docs/midgard/php/ratatoskr/
GNU Lesser General Public License v2.1
9 stars 2 forks source link

metadata problem #25

Closed flack closed 13 years ago

flack commented 13 years ago

With today's ratatoskr dev packages from obs, the following problem occurs:

Code to reproduce:

$t = new midgard_topic('3a31fa768c6911db8866852cac19ea14ea14');
$properties = array('schedulestart', 'scheduleend', 'navnoentry', 'created', 'creator');
foreach ($properties as $p)
{
    var_dump(property_exists($t->metadata, $p));
}

Output:

boolean true

boolean true

( ! ) Warning: First parameter must either be an object or the name of an existing class in rootfile.php on line 24
Call Stack
     Time    Memory    Function    Location
1    0.0006    87564    {main}( )    ../rootfile.php:0
2    0.0043    89760    property_exists ( )    ../rootfile.php:24

null

( ! ) Warning: First parameter must either be an object or the name of an existing class in rootfile.php on line 24
Call Stack
     Time    Memory    Function    Location
1    0.0006    87564    {main}( )    ../rootfile.php:0
2    0.0044    89864    property_exists ( )    ../rootfile.php:24

null

( ! ) Warning: First parameter must either be an object or the name of an existing class in rootfile.php on line 24
Call Stack
     Time    Memory    Function    Location
1    0.0006    87564    {main}( )    ../rootfile.php:0
2    0.0044    89864    property_exists ( )    ../rootfile.php:24

null
piotras commented 13 years ago

Additional test case: http://friendpaste.com/6AuEOQE4dAt7wCxlkBAmTY

piotras commented 13 years ago

Yet another http://friendpaste.com/65LYrMtQquv6hyCl9vs2wu with crash backtrace: http://friendpaste.com/6vqAsr1YTJMnGVPub0oOza

indeyets commented 13 years ago

fixed by recent checkins