Re: [PHP-DEV] no read-only, no moderation, just a simple self-enforced checklist

2008-01-10 Thread Jon Parise
; php.net for web admins) but cut down on duplicate proposals and simplify > things socially. My preference would be something more akin to Python's PEPs: http://www.python.org/dev/peps/ PEP 1 is an overview of the system: http://www.python.org/dev/peps/pep-0001/ -- Jon Paris

Re: [PHP-DEV] PATCH: Implementing closures in PHP

2007-12-24 Thread Jon Parise
he API clearer, and there might be memory size benefits when used as a structure member. On the other hand, changing those integers to zend_bool (unsigned char) types could potentially have a runtime performance cost on some platforms (depending on how those values are being marshaled around),

Re: [PHP-DEV] PATCH: Implementing closures in PHP

2007-12-24 Thread Jon Parise
t breaks the precedent started by some related flags (such as "is_method"). 4. This part of the zend_vm_def.h diff looks wrong (a stray "f"): -/* +f/* Looks great overall! -- Jon Parise (jon of php.net) :: The PHP Project (http://www.php.net/) --

Re: [PHP-DEV] Re: PATCH: anonymous functions in PHP

2007-03-19 Thread Jon Parise
to something like __zend_anon_FILE_LINE_COLUMN, but that could be an unnecessary waste of string memory. -- Jon Parise (jon of php.net) :: The PHP Project (http://www.php.net/) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] php 4.4 BC break

2005-07-17 Thread Jon Parise
plication developers to explain the change over and over again. Or, even better, the administrator would find it there themself. -- Jon Parise (jon of php.net) :: The PHP Project (http://www.php.net/) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Build system support for stock FreeBSD autoconf ports

2005-04-05 Thread Jon Parise
On Tue, Apr 05, 2005 at 09:20:17AM +0100, Joe Orton wrote: > On Mon, Apr 04, 2005 at 01:35:37AM -0400, Jon Parise wrote: > > Index: build/build2.mk > > === > > RCS file: /repository/php-src/build/build2.mk,v &g

Re: [PHP-DEV] Build system support for stock FreeBSD autoconf ports

2005-04-03 Thread Jon Parise
On Tue, Mar 29, 2005 at 10:43:30PM -0500, Jon Parise wrote: > On Tue, Mar 29, 2005 at 04:15:38PM +0300, Jani Taskinen wrote: > > > > Such schemes are quite common thanks to incompatibilities between > > > autotools versions, e. g. Subversion's buildconf equival

Re: [PHP-DEV] php5 win build

2005-03-30 Thread Jon Parise
On Wed, Mar 30, 2005 at 12:04:46PM -0500, Jon Parise wrote: > > I want to build php-5.0.3 on WinXP using Visual Studio.NET. I have read > > the instructions at php.net as well as in README.WIN32-BUILD-SYSTEM file. > > > > Initially got an error regarding some functi

Re: [PHP-DEV] php5 win build

2005-03-30 Thread Jon Parise
s, so I'll take a crack at getting everything running some time soon (probably this weekend). [1] http://msdn.microsoft.com/visualc/vctoolkit2003/ -- Jon Parise (jon of php.net) :: The PHP Project (http://www.php.net/) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] php5 win build

2005-03-30 Thread Jon Parise
g CVS. Someone should probably update that[3]. I'll take care of it later today if no one beats me to it. [1] http://cvs.php.net/diff.php/bindlib_w32/nsap_addr.c?r1=1.1&r2=1.2&ty=h [2] http://www.php.net/extra/bindlib_w32.zip [3] http://cvs.php.net/co.php/phpweb/extra/bindlib_w32.zip

Re: [PHP-DEV] Build system support for stock FreeBSD autoconf ports

2005-03-29 Thread Jon Parise
;autoheader', respectively. The idea is borrowed from Subversion's buildconf equivalent (which Roman mentions above). I believe this is a workable, non-intrusive solution that should work in all environments. -- Jon Parise (jon of php.net) :: The PHP Project (http://www.php.net/) Index:

[PHP-DEV] Build system support for stock FreeBSD autoconf ports

2005-03-27 Thread Jon Parise
ed that Jani did a bit of work earlier this year directed at simplifying the build system (such that it only uses our bundled libtool, for example). Given that, I'm not sure if it is still acceptable to use shtool to locate external executables, so I'm asking for a patch review here befor

Re: [PHP-DEV] Re: cvs: php-src /ext/imap php_imap.c

2004-08-12 Thread Jon Parise
wonder of OpenSource doesn't give you the right to be an ass. I'm glad the code problem is fixed. I hope the attitude problem will be fixed as expediently. -- Jon Parise (jon of php.net) :: The PHP Project (http://www.php.net/) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: cvs: php-src /ext/imap php_imap.c

2004-08-12 Thread Jon Parise
Jan doesn't have php-src commit privileges, so he can't fix it himself. -- Jon Parise (jon of php.net) :: The PHP Project (http://www.php.net/) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] still can`t build php5 win :(

2004-07-06 Thread Jon Parise
#x27;: No such file or directory Your build is failing here. The error should be self-explanatory. -- Jon Parise (jon of php.net) :: The PHP Project (http://www.php.net/) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [patch] re-invoking default error handler

2004-05-27 Thread Jon Parise
;s backwards compatible with previous functionality, i.e. if you don't > return anything, the default handler does not get invoked. This argument may overrule my preference, of course. -- Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] cvs.php.net - horde bugs..

2004-04-14 Thread Jon Parise
On Wed, Apr 14, 2004 at 12:41:05PM +0800, Alan Knowles wrote: > Can someone have a look at cvs.php.net - looks like it's missing > Horde/Auth/autoo.php There's a typo in horde/config/conf.php ('autoo' instead of 'auto'). I don't have access to fix it, t

Re: [PHP-DEV] reload() in Python, Possible in PHP?

2004-03-28 Thread Jon Parise
() your file multiple times, I don't think adding a reload() function to PHP is going to improve your situation all that much. The engine would have to do a fair amount of work to figure out how to "reload" the contents of the external script. -- Jon Parise ([EMAIL PROTECTED]) :: T

Re: [PHP-DEV] RC1

2004-02-08 Thread Jon Parise
you suggesting that it should be > > >enabled by default? > > > > I think we should consider both. > > Adding it to the distribution is +1 from me, enabling it by default is a > -1 personally as I would turn others on by default before this one. I agree with Der

Re: [PHP-DEV] php-cgi command line switch memory check

2004-02-05 Thread Jon Parise
P 3 (main.c revision 1.354, from 5 years, 11 months ago): http://cvs.php.net/diff.php/php3/main.c?login=2&r1=1.354&r2=1.355&ty=h I was kind of hoping it was something you had committed, but no such luck. =) -- Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.

Re: [PHP-DEV] Tidy, CS, OO, Vote

2004-01-21 Thread Jon Parise
ing to apply > this patch, but before I do can I please get a +1 -1 vote on this? +0 (I'm comfortable either way with a preference for consistency.) -- Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/) -- PHP Internals - PHP Runtime Development Mailing List

Re: [PHP-DEV] SPL

2004-01-18 Thread Jon Parise
ore sense. > Any votes pro or against? +1 I hope to use SPL some time soon in the context of my new PHP5-aware Python extension. -- Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http:/

Re: [PHP-DEV] fix for bug #26696

2004-01-13 Thread Jon Parise
nce in this comment? -- Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] win32 build system and VS .NET

2004-01-03 Thread Jon Parise
> Checking for resolv.lib ... > Checking for Release\resolv.lib ... > Checking for resolv.lib ... You need to build resolv.lib if you're going to check out the bindlib_w32 source directory. The compiled library is not stored in cvs. -- Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Custom object creation and reference counts

2004-01-03 Thread Jon Parise
s.[ch]. > Also you should name the constructor '__construct' instead of > 'python' because the former is the prefered way for ZE2. That was a remnant of my original (Zend Engine 1) code (where the constructor had to match the name of the container class). Thanks for notici

Re: [PHP-DEV] win32 build system and VS .NET

2004-01-02 Thread Jon Parise
The 'php5' module alias will ensure that ZendEngine2 is checked out into the 'Zend' directory. > So, it looks like Visual Studio .NET isn't going to cut it, huh? It works fine for me. I've been using it all day (building on the command line and debugging in t

Re: [PHP-DEV] Custom object creation and reference counts

2004-01-02 Thread Jon Parise
the 'scope' field, I end up with a second reference to the new object. I don't know if that's intentional or a bug. I'm still getting familiar with the new object model code. -- Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Custom object creation and reference counts

2004-01-02 Thread Jon Parise
e underlying _store_object's reference > > count is still incremented. What will ever reclaim that reference on > > the _store_object? > > zval_dtor() will. It calls del_ref on the underlying object. I see. I would have to call zval_dtor() myself in any of the case

[PHP-DEV] Custom object creation and reference counts

2004-01-02 Thread Jon Parise
s the reference count of the variable's zval to 1, but the underlying _store_object's reference count is still incremented. What will ever reclaim that reference on the _store_object? I'm still finding my way around the the "new" ZE2 way of doing things, so please be gentle

Re: [PHP-DEV] __toString()

2003-12-14 Thread Jon Parise
g() method, then the casting functionality won't be available. For the record, I'm cool with your interface proposal, too, as long as it becomes a "standard" interface (i.e. it's a stock PHP interface). -- Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] __toString()

2003-12-14 Thread Jon Parise
plement Stringable. I think that's reasonable, although I think it's generally useful for all objects to implicitly implement 'Stringable' (in the same way that they all implement "Cloneable", via the __clone() method, today). -- Jon Parise ([EMAIL PROTECTED]) :: The PHP Pro

Re: [PHP-DEV] __toString()

2003-12-14 Thread Jon Parise
->__toString(); } else { print $e; } } I don't belong to the "character saving" camp. I'm really after expressive code that hides away administrative machinery whenever possible. -- Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] __toString()

2003-12-14 Thread Jon Parise
Exception() > > does not work but the object returned from thrownException() has a > __toString() method? Hopefully, this still works (don't have a recent PHP5 build to try): print (string)$defect->thrownException(); The explicit cast also addresses this case: print (s

Re: [PHP-DEV] New win32 build system

2003-12-02 Thread Jon Parise
that you provided in this email? -- Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_API.c

2003-11-30 Thread Jon Parise
epr__() in that it does not have to be a valid Python expression: a more convenient or concise representation may be used instead. The return value must be a string object. -- Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] validate_file() and strip_file()

2003-11-19 Thread Jon Parise
php_strip() or php_strip_whitespace(). I can see these functions being useful in various (albeit rare) situations. -- Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Question about ?> bug or feature.

2003-11-15 Thread Jon Parise
; that it's a bug. It's really neither. It's a function of the language definition. '' ends the PHP interpretation. If there's no need to end the PHP interpretation at the end of a file and return to "normal" output mode, then the trailing '?>'

Re: [PHP-DEV] Re: Fwd: Re: #25494 [Com]: array_merge allowing "false" as argument (silent when non-array is passed)

2003-10-07 Thread Jon Parise
On Tue, Oct 07, 2003 at 08:36:11PM -0400, Ilia Alshanetsky wrote: > On October 7, 2003 08:19 pm, Jon Parise wrote: > > By your definition, the code was "proper" (i.e. did not generate > > warnings) until the underlying rules were changed, and I'm sure we all

Re: [PHP-DEV] Re: Fwd: Re: #25494 [Com]: array_merge allowing "false" as argument (silent when non-array is passed)

2003-10-07 Thread Jon Parise
7;m sure we all agree that that's a silly definition of "proper code". > This by no means is a problem in PHP. Sorry, I forgot that PHP and PEAR must be playing on separate teams. -- Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] file_exists and array_merge_clobber

2003-10-01 Thread Jon Parise
a more generic, reusable way: file_exists("somefile.php", ini_get('include_path')) That would give us some additional mileage out of the change. For the record, I'm -0 on this. I'd be -1 if it wasn't so obviously optional. -- Jon Parise ([EMAIL PROTECTED

Re: [PHP-DEV] [patch] __string() method

2003-09-02 Thread Jon Parise
On Tue, Sep 02, 2003 at 11:45:29AM -0400, Jon Parise wrote: > I chose '__string' to follow the existing convention for "special" > method names (e.g. __construct, __clone, __call). Also, I suspect > that many developers are already using toString() methods in their &

Re: [PHP-DEV] [patch] __string() method

2003-09-02 Thread Jon Parise
casting (that function entry is currently NULL in zend_object_handers.c). Admittedly, I wasn't comfortable at the time with writing a universal casting handler, and because I only wanted to deal with string conversions, I decided to just implement it as a separate dedicated function entry. -- Jo

[PHP-DEV] [patch] __string() method

2003-09-02 Thread Jon Parise
he object is requested. I can see this being useful for things like object serialization or as a shortcut for things like the Exception class's toString() method. The patch is attached. Comments are welcome. [1] http://www.python.org/doc/current/ref/customization.html -- Jon P

Re: [PHP-DEV] sqlite and 'make -j'

2003-08-20 Thread Jon Parise
On Sat, Jul 05, 2003 at 05:39:04PM -0400, Jon Parise wrote: > Just a note that the addition of sqlite to the PHP build has broken > 'make -j' compiling: > > In file included from /home/jon/src/php5/ext/sqlite/libsqlite/src/auth.c:19: > /home/jon/src/php5/ext/sqlite/lib

Re: [PHP-DEV] Developer Newbie Questions

2003-07-29 Thread Jon Parise
On Tue, Jul 29, 2003 at 04:13:03PM +0100, Daniel Lorch wrote: > > TSRMLS_* > > Thread Safe Resource Manager L.. S.. (?). See file comments. Local Storage -- Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/) -- PHP Internals - PHP Runtime Development Mai

Re: [PHP-DEV] [PATCH] Add 'Z' flag to zend_parse_parameters*()

2003-07-08 Thread Jon Parise
case 's': case 'b': > case 'r': case 'a': > case 'o': case 'O': > - case 'z': > + case 'z': case 'Z': >

Re: [PHP-DEV] [patch] send_headers

2003-07-07 Thread Jon Parise
On Mon, Jul 07, 2003 at 11:41:24AM +0200, Andi Gutmans wrote: > Naming conventions... > It should be something like headers_were_sent() (I'm not good with names > but you get the point :) http://www.php.net/headers_sent -- Jon Parise ([EMAIL PROTECTED]) :: The PHP

[PHP-DEV] sqlite and 'make -j'

2003-07-05 Thread Jon Parise
this in terms of the PHP build system, though. Maybe someone else does? -- Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Reflection API

2003-07-03 Thread Jon Parise
e on a concensus first. > > +1 (maybe both)? Please, not both. I think it would be best if there was one way to get at this information. I don't have a personal preference for either, though. -- Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/) -- PHP Internals

Re: [PHP-DEV] before beta 2

2003-06-30 Thread Jon Parise
ver results will be largely emergent and de facto based on these TODO lists, with very little strategy involved. The fact that this discussion is even happening in the first place is indicative of a lack of developer unity over the issue. This is all just my opinion, of course. -- Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] before beta 2

2003-06-29 Thread Jon Parise
egrate" should be left for 5.1. Any items marked as "complete" or "finish" are open for debate. Any items marked as "fix" should be addressed as soon as possible. -- Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/) -- PHP Internals - PHP

Re: [PHP-DEV] CVS Administriva (important)

2003-06-23 Thread Jon Parise
x27; => 'PHP_4', 'php5' => 'HEAD'). When PHP5 ships as a stable product, a 'PHP_5' branch is created, stable development happens there, and 'php6' is created, which points to HEAD. -- Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://

[PHP-DEV] Re: [PEAR-DEV] [RFC] Binary pecl packages

2003-06-19 Thread Jon Parise
s for generating the whole package. > > Let's say something like: > > pear package [-t ] [-b] [-s] > > -t The type of package you want to generate (pear, rpm, > msi, etc) > -b Specifies a binary package > -d Only generate the description package file I think this

[PHP-DEV] Re: [PEAR-DEV] [RFC] Binary pecl packages

2003-06-18 Thread Jon Parise
7;m not sure if this is entirely necessary, but I can see where it would be useful. I'll also point you to distutils[1]. The Python folks spent a lot of time thinking about these kinds of problems, and the result is a quite good system. [1] http://www.python.org/doc/current/lib/module-d

Re: [PHP-DEV] LDAP bind option

2003-06-04 Thread Jon Parise
m/library/default.asp?url=/library/en-us/netdir/ldap/ldap_bind_s.asp For now, I'll work from the OpenLDAP implementation. That will probably benefit the largest percentage of PHP users. > It's great if you look into this, I have sort of had it on my todo list > for a couple of ye

Re: [PHP-DEV] LDAP bind option

2003-06-04 Thread Jon Parise
o the PHP > function? I have an application that obtains x509 certs (securely) and I > want to use them to bind to the LDAP server. I'll try and have a look at this soon. I just need to find the time to get my local LDAP server up and running again for testing. -- Jon Parise ([EMAIL PR

[PHP-DEV] bindlib_w32 fix for Visual Studio .NET (resend)

2003-06-01 Thread Jon Parise
My previous message was missing the attachments. -- Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/) I ran into a problem when building bindlib_w32 using Visual Studio .NEt under Windows XP: nsap_addr.c(38) : error C2491: 'isxdigit' : definition of dllimport fu

[PHP-DEV] bindlib_w32 fix for Visual Studio .NET (resend)

2003-06-01 Thread Jon Parise
eceive karma for the bindlib_w32 module and commit the patch myself. -- Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] renaming cvs files

2003-03-30 Thread Jon Parise
l) $ cvs checkout new (local) $ rm old; cvs remove old (local) $ cvs commit -m "Renamed old to new" -r x.x old -- Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Reflection API RFC

2003-03-30 Thread Jon Parise
e was a way to get the (defined) set of parameters for a function / method. I'm going to assume that, because it's not included in your proposal, it's not currently possible given the current model, though. -- Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/)

Re: [PHP-DEV] CVSspam

2003-03-27 Thread Jon Parise
hat's what I do for the Horde CVS mailing list: http://lists.horde.org/archives/cvs/Week-of-Mon-20030324/021984.html The code that adds the links is here: http://cvs.horde.org/co.php/CVSROOT/cfg_local.pm -- Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/)

Re: [PHP-DEV] Disabling error docref stuff by default

2003-03-13 Thread Jon Parise
What if it were made (bu default) on the error_reporting level? E_ALL would use the docrefs but "lower" levels would not (e.g. E_FATAL). Or a new INI option (docref_errors or docref_enable)? -- Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/) -- PHP Development In