ID: 16857 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: Feature/Change Request Operating System: Any PHP Version: 4.2.0 New Comment:
Works fine for me. Can you please add a short and complete example which shows clearly what you're exactly asking for? --Jani Previous Comments: ------------------------------------------------------------------------ [2002-04-26 12:09:37] [EMAIL PROTECTED] Would be nice if this worked. But the short syntax isn't accepted for a static var, even it's not in the initial declaration. <?php function sql_num_rows($result) { static $cmd='undefined'; if($cmd == 'undefined') { $cmd=($this->pg_new_api) ? 'pg_num_rows' : 'pg_numrows'; } return @$cmd($result); } ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16857&edit=1