Re: cvs: php-src / README.UNICODE-UPGRADES /main snprintf.c spprintf.c
| From: | Gregory Beaver | Date: | Fri, 08 Feb 2008 00:33:02 +0000 |
| Subject: | Re: cvs: php-src / README.UNICODE-UPGRADES /main snprintf.c spprintf.c | ||
| References: | 1 | Groups: | php.cvs php.internals |
| Request: | Send a blank email to internals+get-35314@lists.php.net to get a copy of this message | ||
Marcus Boerger wrote:
> helly Thu Feb 7 18:40:29 2008 UTC
>
> Modified files:
> /php-src README.UNICODE-UPGRADES
> /php-src/main snprintf.c spprintf.c
> Log:
> - Add %Z to *printf
>
>
> http://cvs.php.net/viewvc.cgi/php-src/README.UNICODE-UPGRADES?r1=1.18&r2=1.19&diff_format=u
> Index: php-src/README.UNICODE-UPGRADES
> diff -u php-src/README.UNICODE-UPGRADES:1.18 php-src/README.UNICODE-UPGRADES:1.19
> --- php-src/README.UNICODE-UPGRADES:1.18 Thu Feb 7 18:33:20 2008
> +++ php-src/README.UNICODE-UPGRADES Thu Feb 7 18:40:28 2008
> @@ -540,6 +540,19 @@
> zend_error(E_WARNING, "%v::__toString() did not return anything",
> Z_OBJCE_P(object)->name);
>
> + %Z
> + This format prints a zval's value. You can specify the minimum length
> + of the string representation using "%*Z" as well as the absolute length
> + using "%.*Z". The following example is taken from the engine and
> + therefor uses zend_spprintf rather than spprintf. Further more clen is
> + an integer that is smaller than Z_UNILEN_P(callable).
> +
> + zend_spprintf(error, 0, "class '%.*Z' not found", clen, callable);
> +
> + The function allows to output any kind of zaval values, as long as a
^^^^^
tpyo alert
Greg