[PHP-DEV] proc_open and ptys

2006-04-04 Thread Jon
it whatsoever. thanks in advance, ~jon -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] compiling a 64-bit PHP on a mac G5

2006-04-19 Thread Jon
y be enabled with a source-code edit. Any advice would be appreciated. ~jon -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] compiling a 64-bit PHP on a mac G5

2006-04-19 Thread Jon
Ok, its pretty clear what the problem is. I must not have all 64 bit libraries on my system. Does this mean that I've gotta find and recompile ALL of them for PHP to be able to work with them? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/un

[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] 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:

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] 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
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] 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] 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] 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] 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] 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] 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

[PHP-DEV] small bug in date()

2008-05-02 Thread Jon L.
php-5.2.6\ext\date\php_date.c @ 813-820 rfc_colon isn't reset between the 'O' and 'P' format characters. Allowing (date('P O') === date('P P')) to return true. Has anyone else noticed this? - Jon L.

Re: [PHP-DEV] Re: Short syntax for array literals [...]

2008-05-28 Thread Jon L.
, 3]?! ;) Ok, so "easier" probably wasn't the best word to use. "Shorter" works; but, it isn't as enticing. The only ease I can see in it is simply for familiarity (see "kids argument" above). Though, the amount of ease will obviously vary from one person to another. - Jon L.

Re: [PHP-DEV] 23 nothing is so as it seems, but why

2006-01-20 Thread Jon Dowland
On Thu, Jan 19, 2006 at 06:41:17PM +0200, Marco Kaiser wrote: > Today during a session i had a strange "magic" feature found in php. > > $a = 10; > echo ++$a + $a++; > ?> > > this works perfect as expected. it returns 22. Odd, I expected 21: echo (1

Re: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread Jon Dowland
At 1141902889, Andrey Hristov wrote: > sorry for sending second email. Another choice could be `leave`, which > seems better than `escape` (clashes with escaping sequences). I think `leave` has too many connotations with `break` and similar commands, and could be misleading. -- Jon Dowlan

Re: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread Jon Dowland
this? Both work > equally well and most people are familiar with the term "goto". Seeing as this does not behave the same as the classic C "goto", re-using the term could prove to be misleading and confusing. For this reason I prefer "jump". -- Jon Dowland http://a

[PHP-DEV] Object Memory Leakage...

2006-09-25 Thread Jon Anderson
ects...Done. Memory Usage: 7752920 Freeing 32767 objects...Done. Memory Usage: 2807080 Allocating 7 MB of data... Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1 bytes) in /home/janderson/svn/memtest.php on line 44 Am I missing something? (Is there a force_garbage_collection() function somewhere that I'm missing?) Any suggestions/workarounds/anything would be most appreciated. Cheers, jon -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Object Memory Leakage...

2006-10-03 Thread Jon Anderson
(cli) (built: Oct 3 2006 12:00:39)" <- That's 9 minutes ago). The same issues still seem to exist. Not much help in answering the issue, so maybe this is an issue that has been fixed already? Since the issue still exists in PHP CVS, perhaps I should file a bug report? jon -- P

[PHP-DEV] Re: [ANNOUNCE] PHP 5.4.30 Released

2014-07-18 Thread Jon Arano
On 27 June 2014 06:12, Stas Malyshev wrote: > Hello! > > The PHP development team announces the immediate availability of PHP > 5.4.30. Over 20 bugs were fixed in this release, including the following > security issues: CVE-2014-3981, CVE-2014-0207, CVE-2014-3478, > CVE-2014-3479, CVE-2014-3480,

Re: [PHP-DEV] Re: [ANNOUNCE] PHP 5.4.30 Released

2014-07-20 Thread Jon Arano
Unsuscribe On 18 July 2014 15:10, Andrea Faulds wrote: > > On 18 Jul 2014, at 12:31, Jon Arano wrote: > > >> > > Were you meaning to say something? > > -- > Andrea Faulds > http://ajf.me/ > > > > >

Re: [PHP-DEV] Re: PHP Performance in Apache: Multi-Process vs Multi-Threaded

2010-12-15 Thread Jon Davey
wth in memory usage if the extensions maintained a large payload of data that was being heavily modified in each request, such as caches, but I expect they create their own shared memory segments (I have yet to check the source of APC). Jon -- PHP Internals - PHP Runtime Development Mailing List To u

Re: [PHP-DEV] Re: EBNF

2011-01-02 Thread Jon Davey
ould be useful in cases where we want to write something like Ruby's CoffeeScript. After looking at PHP's grammar file, it's about 1,000 lines long. Since this is used to generate the parser, isn't it possible to strip out the C macros to create an EBNF that catches all edge cases? Jon -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

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

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] 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] 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

[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

[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

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

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

[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

[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

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://

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] [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] 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] 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] 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

[PHP-DEV] CVS Account Request: kriek

2003-06-25 Thread Jon Kriek
Maintaining documentation. -- 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] before beta 2

2003-06-30 Thread Jon Parise
27;s plenty of that to go around, > > > and while I realize that everyone wants to get their pet feature added > > > to or expanded in PHP 5, we need to be realistic. > > Jon, the overloading issues were left to beta 2, this was already agreed > upon. Okay. I admit that I

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

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

2003-07-05 Thread Jon Parise
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/libsqlite/src/sqliteInt.h:17: sqlite.h: No such file or directory *** Error code 1 /ho

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

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] 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] 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

[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] [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

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] 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] 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] 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] 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] 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] 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] 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] __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] __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
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
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

[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] 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

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] 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-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-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] 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] 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] 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] 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] 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] 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] 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] Scalar type hinting

2012-02-29 Thread Adam Jon Richardson
On Wed, Feb 29, 2012 at 8:46 PM, Kris Craig wrote: > I was thinking something more along the lines of simply throwing an error > if, say, (int) $a != $a *if *$a is defined as an integer. > > --Kris > > > On Wed, Feb 29, 2012 at 5:16 PM, John Crenshaw >wrote: > > > > -Original Message

[PHP-DEV] Scalar Type Intentions

2012-02-29 Thread Adam Jon Richardson
PHP currently allows users to provide type hints for functions and methods, although the type hints are currently limited to objects and arrays: http://en.wikipedia.org/wiki/Type_system#Variable_levels_of_type_checking Restricting the type hinting to arrays and objects makes sense, as PHP's type j

Re: [PHP-DEV] Scalar Type Intentions

2012-02-29 Thread Adam Jon Richardson
First, phpunit is a fantastic tool! I'm thankful for your contributions to all of the PHP community (especially with the code coverage capabilities.) I speak to your 2 points inline below: On Wed, Feb 29, 2012 at 9:36 PM, Sebastian Bergmann wrote: > On 02/29/2012 09:01 PM, Adam Jon Ri

Re: [PHP-DEV] Scalar Type Intentions

2012-03-01 Thread Adam Jon Richardson
On Thu, Mar 1, 2012 at 4:36 AM, Lazare Inepologlou wrote: > And, *what if PHP added the following aliases for the hint scalar*: > > - bool > > - int > > - float > > - string >> > > If an object has a __toString method, does it qualify as a valid value to > be passed to a scalar argument? In my opi

Re: [PHP-DEV] Scalar Type Intentions

2012-03-01 Thread Adam Jon Richardson
On Thu, Mar 1, 2012 at 8:33 AM, Lazare Inepologlou wrote: > Yes, I agree, the casting (or the failing to cast) has to happen on entry, > for the reasons that you have very well explained. > > However, I cannot understand what it means to cast an object to a scalar. > Does it always mean casting to

Re: [PHP-DEV] Scalar Type Intentions

2012-03-01 Thread Adam Jon Richardson
On Thu, Mar 1, 2012 at 8:55 AM, Anthony Ferrara wrote: > Please do not implement int, float, etc as an alias to scalar. That's > going to cause nothing but trouble later on. It will instantly close > the door to any type of casting magic (due to BC concerns), be > completely non-obvious ("I hin

Re: [PHP-DEV] Scalar Type Intentions

2012-03-01 Thread Adam Jon Richardson
On Thu, Mar 1, 2012 at 10:36 AM, Lazare Inepologlou wrote: > Of note, the scalar type hinting I've outlined does not automatically >> perform casts... > > > Thank you for your answer. Maybe, this exact fact is what I don't like > about your suggestion. Please read the following RFC, where Lukas S

Re: [PHP-DEV] [POC Patch] Scalar Type Hinting/Casting - Proof Of Concept

2012-03-02 Thread Adam Jon Richardson
On Fri, Mar 2, 2012 at 7:51 AM, Anthony Ferrara wrote: > Well, there are a few questions about the implementation: > > 1. *Which* type casting rules should it follow? > > a. Regular cast rules (like $foo = (int) $foo), where it converts > always without error? > b. Internal function cast rules, w

Re: [PHP-DEV] '

2012-03-05 Thread Adam Jon Richardson
On Mon, Mar 5, 2012 at 6:04 PM, Kris Craig wrote: > Personally, I HATE short_open_tab. It has no value-- *except* that, > unfortunately, it's still widely used in many apps and even some frameworks > TTBOMK. I personally like it and find value in its inclusion :) Adam

Re: [PHP-DEV] '

2012-03-05 Thread Adam Jon Richardson
On Mon, Mar 5, 2012 at 7:03 PM, Kris Craig wrote: > Certainly. I don't believe this is about "inclusion" any more than > creating a function called "ech" as an alias for "echo" would be. The tag, as you all know, creates problems when working with XML. Furthermore, > I've never understood the

[PHP-DEV] Providing sandboxed versions of include and require language constructs

2012-03-05 Thread Adam Jon Richardson
Plugins are a big deal (see http://oneofmanyworlds.blogspot.in/2012/03/difficult-decision.html for a recent example.) In this era of mashups and breakneck innovation, developers must rely on vast amounts of code they've never seen, let alone audited. Wordpress, Drupal, and many other tools develope

Re: [PHP-DEV] Providing sandboxed versions of include and require language constructs

2012-03-06 Thread Adam Jon Richardson
On Tue, Mar 6, 2012 at 3:30 AM, Florian Anderiasch wrote: > Isn't that basically what all template engines tried to solve before > with giving you a defined subset of tokens that are more or less > directly converted to php code? The benefit I see is that plugin > developers wouldn't need to learn

Re: [PHP-DEV] Providing sandboxed versions of include and require language constructs

2012-03-06 Thread Adam Jon Richardson
On Tue, Mar 6, 2012 at 4:38 AM, Stas Malyshev wrote: > Hi! > > Thoughts? >> > > This is a fine idea, however actually doing it is not that easy. Note that > knowing which function is "safe" is pretty hard, but that's only a start. > Plugin code, for example, can call functions outside plugin cont

Re: [PHP-DEV] Providing sandboxed versions of include and require language constructs

2012-03-06 Thread Adam Jon Richardson
2012/3/6 Ángel González > On 06/03/12 14:04, Adam Jon Richardson wrote: > > The sandbox I'm considering would only impact the ability to directly > call... > It's not that easy. The internal functions could be splitted to > safe/unsafe (according > tosome defi

Re: [PHP-DEV] Scalar Type Hinting

2012-03-08 Thread Adam Jon Richardson
On Thu, Mar 8, 2012 at 6:08 PM, John Crenshaw wrote: > > > Well, if your type hints gets more forgiving, than it's the same that was > > proposed by this function a((int) $arg) {} And in this case hints have no > > meaning at all - it's just other syntax to do the conversion that now > looks > > l

Re: [PHP-DEV] default charset confusion

2012-03-12 Thread Adam Jon Richardson
On Mon, Mar 12, 2012 at 2:49 AM, Rasmus Lerdorf wrote: > What we really need is what we added in PHP 6. A runtime encoding ini > setting that is distinct from the output charset which we can use here. > That would allow people to fix all their legacy code to a specific > runtime encoding with a s

Re: [PHP-DEV] default charset confusion

2012-03-12 Thread Adam Jon Richardson
On Mon, Mar 12, 2012 at 3:52 AM, Stas Malyshev wrote: > Hi! > > > Ignoring 5.4 for a second, if you in 5.3 do this: >> >> echo htmlspecialchars($string); >> echo htmlspecialchars($string, NULL, "ISO-8859-1"); >> echo htmlspecialchars($string, NULL, "UTF-8"); >> >> You will see that the first two

Re: [PHP-DEV] Providing sandboxed versions of include and require language constructs

2012-03-12 Thread Adam Jon Richardson
On Mon, Mar 12, 2012 at 5:08 PM, Richard Lynch wrote: > On Tue, March 6, 2012 3:30 am, Florian Anderiasch wrote: > > Security by blacklist almost always isn't security... > > You're bound to miss one of the functions you should have blacklisted, > but didn't. > Agreed. The approach I'm developi

Re: [PHP-DEV] Providing sandboxed versions of include and require language constructs

2012-03-12 Thread Adam Jon Richardson
2012/3/7 Ángel González > On 07/03/12 00:04, Adam Jon Richardson wrote: > > It would be the responsibility of the framework or CMS or application > > to protect against this type of attack (which they do quite well.) > > When you can force a plugin to work through y

Re: [PHP-DEV] Scalar-type-hinting - which way is the best to go?

2012-03-17 Thread Adam Jon Richardson
On Sat, Mar 17, 2012 at 10:37 AM, Marco Pivetta wrote: > Unenforced type hinting: > - If you have mixed types, then you just don't need type hinting. Lazy > devs can still avoid using it. Lazyness shouldn't really be > encouraged, so > providing some kind of "backwards compatibility

Re: [PHP-DEV] Scalar-type-hinting - which way is the best to go?

2012-03-18 Thread Adam Jon Richardson
On Sun, Mar 18, 2012 at 7:12 AM, Simon Schick wrote: > > Hi, All > > Just to add an example why I want a more strictly type-check here as > we have in the current type-juggling: > > http://www.brandonsavage.net/an-xss-vulerability-in-the-making/?utm_source=rss&utm_medium=rss&utm_campaign=an-xss-vu

Re: [PHP-DEV] Scalar-type-hinting - which way is the best to go?

2012-03-18 Thread Adam Jon Richardson
On Sun, Mar 18, 2012 at 7:11 PM, Simon Schick wrote: > Hi, Adam > > I totally agree that type-hinting should not cover what the programmer > should do for validating the given input ... > But I just wanted to point out that this is something the author (and > I) would never expect to happen ... >

Re: [PHP-DEV] HEADS UP: php-src is in read only mode

2012-03-18 Thread Adam Jon Richardson
On Mon, Mar 19, 2012 at 12:33 AM, David Soria Parra wrote: > Migration is underway. > Will take a while. Import takes a few hours. > Expect git access to be available by Monday afternoon. Great work organizing and carrying out this update, David. Git's gonna be great! Adam

  1   2   >