RE: [PHP-DEV] cvs: /php3/functions gd.c
| From: | Rasmus Lerdorf | Date: | Mon, 01 May 2000 23:19:19 +0000 |
| Subject: | RE: [PHP-DEV] cvs: /php3/functions gd.c | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-18334@lists.php.net to get a copy of this message | ||
> > - if (npoints > PolyMaxPoints) {
> > - php3_error(E_WARNING, "maximum %d points", PolyMaxPoints);
> > + points = (gdPointPtr) emalloc(npoints * sizeof(gdPoint));
> > + if (points == NULL) {
> > + php_error(E_WARNING, "ImagePolygon: Memory
>
> That should be php3_error, not php_error, right? It looks like php_ftp.c
> gets around this with a define (#define php_error php3_error).
Gah, I keep doing that when working on both PHP 3 and 4 code. Just
copy-pasting stuff back and forth.
-Rasmus