Bug #12610: vaprintf() and other va_arg functions please!

From: Date: Tue, 07 Aug 2001 05:42:11 +0000
Subject: Bug #12610: vaprintf() and other va_arg functions please!
Groups: php.dev 
Request: Send a blank email to php-dev+get-62377@lists.php.net to get a copy of this message
From: nutbar@innocent.com Operating system: Linux PHP version: 4.0.6 PHP Bug Type: Feature/Change Request Bug description: vaprintf() and other va_arg functions please! I would love to have access to variable length argument functions such as vaprintf(), vasprintf(), etc... so I can easily use func_get_args() in a function and then pass all remaining arguments to a function that can accept arguments in an array format, similar to call_user_func_array, except for non-user defined functions. Small example: function tprintf() { clearstatcache(); $arg_list = func_get_args(); $filename = array_shift($arg_list); if (($fd = @fopen($filename, "r"))) { rewind($fd); $contents = fread($fd, filesize($filename)); fclose($fd); } return vaprintf($contents, $arg_list); } Thanks in advance! -- Edit bug report at: http://bugs.php.net/?id=12610&edit=1

« previous php.dev (#62377) next »