PHP 4.0 Bug #4586: if (!empty($class_a->get('aa'))) { produces parse error
| From: | wints at hot dot ee | Date: | Wed, 24 May 2000 19:02:03 +0000 |
| Subject: | PHP 4.0 Bug #4586: if (!empty($class_a->get('aa'))) { produces parse error | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-19403@lists.php.net to get a copy of this message | ||
From: wints@hot.ee
Operating system: redhat 6.0
PHP version: 4.0 Release Candidate 2
PHP Bug Type: Scripting Engine problem
Bug description: if (!empty($class_a->get('aa'))) { produces parse error
this script produces error:
parse error ,expecting ´')" in ... on line ...
if (!empty($t_dtd->get('group_field'))) {
$group_field = 'v'.$t_dtd->get('group_field');
if (!empty($t_dtd->get('group_func'))){
$group_func = "g_fn_".$t_dtd->get('group_func');
}else{
$group_func = "g_fn_base";
}
}
this one is ok
$t = $t_dtd->get('group_field');
if (!empty($t)) {
$group_field = 'v'.$t_dtd->get('group_field');
$t = $t_dtd->get('group_func');
if (!empty($t)){
$group_func = "g_fn_".$t_dtd->get('group_func');
}else{
$group_func = "g_fn_base";
}
}