[PHP-DEV] Syntax error

2001-09-10 Thread Walter Franzini
message in my opinion. The following code give the same error but for a very different reason: ?php function A () { static $a = array ( 'a' = a very . long string, 'c' = 'C' ); } ? How can I help improving messages reported for syntax errors? Ciao -- Walter Franzini, e-mail: [EMAIL

Re: [PHP-DEV] Syntax error

2001-09-10 Thread Walter Franzini
Alexander Wagner [EMAIL PROTECTED] writes: Zeev Suraski wrote: for ($sz=1; $sz 6; sz++) { You're missing a $ on the last sz in this line He knows that. He want a better error-message. :-) Yes, and I'm offering my help if someone can give me some hints. Ciao. -- Walter Franzini, e

Re: [PHP-DEV] [TOPIC CHANGE] OBDC SQLColumns patch...

2001-08-30 Thread Walter Franzini
.03.00.0051 (Linux ix86 MT) Ciao -- Walter Franzini, e-mail: [EMAIL PROTECTED] SysNet, Via Digione 8, 27100 Pavia - Italy -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators

Re: [PHP-DEV] [PATCH] Zend/zend_alloc.c

2001-08-29 Thread Walter Franzini
difference in this case, but if you check for NULL you can fail gracefully. Ciao -- Walter Franzini, e-mail: [EMAIL PROTECTED] SysNet, Via Digione 8, 27100 Pavia - Italy -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP-DEV] [PATCH] Zend/zend_alloc.c

2001-08-29 Thread Walter Franzini
on this, from the times when it wasn't true, but it doesn't cause any problem, so there's no reason to change it urgently. Ok, I hope my current patch can live longer :-) Zeev Ciao -- Walter Franzini, e-mail: [EMAIL PROTECTED] SysNet, Via Digione 8, 27100 Pavia - Italy diff -ur php-4.0.6.ORIG/ext

Re: [PHP-DEV] [PATCH] Zend/zend_alloc.c

2001-08-29 Thread Walter Franzini
approach and I try to lower this number to a more reasonable value. Ciao -- Walter Franzini, e-mail: [EMAIL PROTECTED] SysNet, Via Digione 8, 27100 Pavia - Italy -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP-DEV] [PATCH] Zend/zend_alloc.c

2001-08-29 Thread Walter Franzini
Zeev Suraski [EMAIL PROTECTED] writes: At 12:38 29-08-01, Walter Franzini wrote: Stanislav Malyshev [EMAIL PROTECTED] writes: [...] WF I faced this problem using odbc with Solid. SQLColAttributes can WF return very big number (2147483647) when you ask for WF SQL_COLUMN_DISPLAY_SIZE

Re: [PHP-DEV] [PATCH] Zend/zend_alloc.c

2001-08-29 Thread Walter Franzini
Zeev Suraski [EMAIL PROTECTED] writes: At 14:57 29-08-01, Walter Franzini wrote: From the extension (the user of kernel services) pov I must disagree. But obviusly I'missing something :-) I don't see why there's a difference. Maybe the difference is not ZE vs. extension but internal vs

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/standardbasic_functions.c incomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c

2001-08-28 Thread Walter Franzini
, they must export the same API but could provide different features (or bugs) so you must use xslt1 for app1 and xslt2 for app2. Please don't drop dl () :-) Ciao -- Walter Franzini, e-mail: [EMAIL PROTECTED] SysNet, Via Digione 8, 27100 Pavia - Italy -- PHP Development Mailing List http://www.php.net

[PHP-DEV] [PATCH] Zend/zend_alloc.c

2001-08-28 Thread Walter Franzini
\n, +(long unsigned) size); #if ZEND_DEBUG defined(HAVE_KILL) defined(HAVE_GETPID) kill(getpid(), SIGSEGV); -#else - exit(1); #endif + HANDLE_UNBLOCK_INTERRUPTIONS(); return (void *)p; } Ciao -- Walter Franzini, e-mail

[PHP-DEV] [PATCH] ext/gettext adding *ngettext functions

2001-08-27 Thread Walter Franzini
Hi all, I have added to ext/gettext the wrapper needed to support *ngettext functions, you can find the patch below. Ciao -- Walter Franzini, e-mail: [EMAIL PROTECTED] SysNet, Via Digione 8, 27100 Pavia - Italy diff -aur php-4.0.6.ORIG/ext/gettext/gettext.c php-4.0.6+gettext-patch/ext

[PHP-DEV] [PATCH] 2 patch for ext/odbc/php_odbc.c

2001-08-02 Thread Walter Franzini
Only in php-4.0.6.ORIG/Zend: zend_alloc.2.c Only in php-4.0.6.ORIG/Zend: zend_alloc.2.c~ Only in php-4.0.6.ORIG/: cgi_build Only in php-4.0.6.ORIG/ext/bcmath: number.c Only in php-4.0.6.ORIG/ext/bcmath: number.h diff -ur php-4.0.6.ORIG/ext/odbc/php_odbc.c php-4.0.6/ext/odbc/php_odbc.c ---

[PHP-DEV] [PATCH] Zend/zend_alloc.c

2001-08-02 Thread Walter Franzini
--- php-4.0.6.ORIG/Zend/zend_alloc.c Tue Jun 19 20:04:53 2001 +++ php-4.0.6/Zend/zend_alloc.c Tue Jul 31 10:32:39 2001 @@ -158,12 +158,11 @@ HANDLE_BLOCK_INTERRUPTIONS(); if (!p) { - fprintf(stderr,FATAL: emalloc(): Unable to allocate %ld bytes\n, (long) size); + fprintf(stderr,FATAL:

[PHP-DEV] _emalloc bug?

2001-07-27 Thread Walter Franzini
this iff it's ok. Maybe I'missing something :-) A minor problem exists with size: size_t should be unsigned and the type modifier assumes it's signed. Ciao. -- Walter Franzini, e-mail: [EMAIL PROTECTED] SysNet, Via Digione 8, 27100 Pavia - Italy -- PHP Development Mailing List http

Re: [PHP-DEV] Moving output.c from ext/standard to main/

2001-07-20 Thread Walter Franzini
Jason Greene [EMAIL PROTECTED] writes: It a shame that CVS doesn't have a way to handle things like this.. Are there commercial systems that can? Aegis handle file and directory rename operation and is Free. Read more here http://www.canb.auug.org.au/~millerp/aegis/aegis.html -- Walter