Re: [PHP-DEV] Working with arrays.

2010-12-31 Thread mark skilbeck
://www.php.net/unsub.php -- Mark Skilbeck. http://blog.mahcuz.com - webmaster http://bytes.com - PHP Forum Moderator -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] rename T_PAAMAYIM_NEKUDOTAYIM to T_DOUBLE_COLON

2010-10-30 Thread Mark Skilbeck
On Sat, 30 Oct 2010 12:44:41 -0500 Jack Timmons codeac...@codeacula.com wrote: Also, as one who also answers other's questions (although not IRC, because its my experience most people asking/*answering* questions on there are dbags), FTFY. -- PHP Internals - PHP Runtime Development Mailing

[PHP-DEV] Re: deprecation status of $str{42} versus $str[42], revisited

2010-09-23 Thread Mark Skilbeck
case keeping {} would be wise. [1] http://markmail.org/message/qisqdheeyoccfydh [2] Related bug: http://bugs.php.net/52254 Regards, Philip You're right - it doesn't make sense. My vote goes to leave it as-is. -- Mark Skilbeck mahcuz.com | gtk.php.net | pecl.php.net/cairo | docs.php.net -- PHP

[PHP-DEV] Re: deprecation status of $str{42} versus $str[42], revisited

2010-09-23 Thread Mark Skilbeck
notice. -- Mark Skilbeck mahcuz.com | gtk.php.net | pecl.php.net/cairo | docs.php.net -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: SVN Account Request: mryaggi

2010-06-02 Thread Mark Skilbeck
On 01/06/10 14:59, Guillaume F wrote: Fix bugs i'm fed up to cope with while developping in PHP. Mr. Miyagi?! Give this man an SVN account *right now*!! -- Mark Skilbeck mahcuz.com | gtk.php.net | pecl.php.net/cairo | docs.php.net -- PHP Internals - PHP Runtime Development Mailing List

[PHP-DEV] Re: SVN Account Request: mryaggi

2010-06-02 Thread Mark Skilbeck
On 01/06/10 14:59, Guillaume F wrote: Fix bugs i'm fed up to cope with while developping in PHP. Mr. Miyagi?! Give this man an SVN account *right now*!! -- Mark Skilbeck mahcuz.com | gtk.php.net | pecl.php.net/cairo | docs.php.net -- PHP Internals - PHP Runtime Development Mailing List

Re: [PHP-DEV] ereg deprecation?

2010-05-31 Thread Mark Skilbeck
make no sense to keep it deprecated. Here's a patch for undeprecate ext/ereg in 5_3 and trunk: http://felipe.ath.cx/diff/undeprecate-ereg.diff Any objection? If no, I'll commit it in soon. Why does it make no sense? It was clearly deprecated for a reason. -- Mark Skilbeck mahcuz.com | gtk.php.net

Re: [PHP-DEV] Autoboxing in PHP

2010-05-05 Thread Mark Skilbeck
What exploits are there for __toString()? Just wondering. On 05/05/2010 07:50, Dmitry Stogov wrote: Hi Moriyoshi, I took just a quick look through the patch, but for me it looks like a bad idea. Introducing new magic function may bring a lot of troubles and open a new door for exploit writer

[PHP-DEV] Re: [PHP-CVS] svn: /php/php-src/trunk/win32/build/ config.w32

2010-05-05 Thread Mark Skilbeck
On 29/04/2010 09:45, Hannes Magnusson wrote: On Thu, Apr 29, 2010 at 10:13, Pierre Joyepaj...@php.net wrote: pajoye Thu, 29 Apr 2010 08:13:15 + Revision: http://svn.php.net/viewvc?view=revisionrevision=298759 Log: - Adieu VC6/7/8, merci pour les bons et

[PHP-DEV] Re: Turkish/Azeri locale support

2010-05-04 Thread Mark Skilbeck
be picked. Adam Not that my input matters, but I vote for #2. Mark Skilbeck. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: A critique of PHP 6

2010-04-20 Thread Mark Skilbeck
On 20/04/2010 15:39, Adi Nita wrote: Hi everyone, [...] Thank you for your time, Adrian Nita The PHP-way is to NEVER BREAK BC! -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] No core file being created

2009-11-10 Thread Mark Skilbeck
I'm trying to debug a segfault that's occuring in an extension I'm developing (phpgksu - PHP wrapper for libgksu2). On the PHP site it says that if I have PHP configured with --enable-debug (which I do) then whenever PHP crashes a core file should be created in the same directory the file is

Re: [PHP-DEV] No core file being created

2009-11-10 Thread Mark Skilbeck
Scott MacVicar wrote: On 10 Nov 2009, at 13:55, Mark Skilbeck wrote: I'm trying to debug a segfault that's occuring in an extension I'm developing (phpgksu - PHP wrapper for libgksu2). On the PHP site it says that if I have PHP configured with --enable-debug (which I do) then whenever PHP

[PHP-DEV] Re: alternative to the fopen() hack in autoloaders

2009-11-10 Thread Mark Skilbeck
Lukas Kahwe Smith wrote: Ahoi, I have written an RFC for a more efficient solution to get rid of the common fopen() hack inside autoloaders: if ($fp = @fopen($file, 'r', true)) { fclose($fp); include $file; } Here is the gist of the proposal: In order to solve the above issues this RFC

[PHP-DEV] Extension Development on Windows

2009-11-03 Thread Mark Skilbeck
Hey, guys/gals. Do any of you know of an up-to-date resource on setting up a development area / building extensions with VS? Everything I find is a couple of years and / doesn't work. Thanks. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit:

Re: [PHP-DEV] Seg fault when using active_symbol_table called fromuserspace function.

2009-11-02 Thread Mark Skilbeck
Mark Skilbeck wrote: Scott MacVicar wrote: On 1 Nov 2009, at 21:41, Mark Skilbeck wrote: Scott MacVicar wrote: On 1 Nov 2009, at 21:09, Mark Skilbeck markskilb...@gmail.com wrote: [snip] There is no symbol table as there are no variables. You should check if it's NULL before using

Re: [PHP-DEV] Is an extension dev. on 5.x usable on 5.x

2009-11-01 Thread Mark Skilbeck
Lester Caine wrote: Mark Skilbeck wrote: That is, is an extension compiled on PHP5.1 usable for PHP5.2? Windows or Linux? In Linux you can normally use an older version, provided nothing else has changed. In windows you normally get a complaint that the versions are not compatible, although

[PHP-DEV] Seg fault when using active_symbol_table called from userspace function.

2009-11-01 Thread Mark Skilbeck
Can you explain to me why the following causes a segfault: [code] PHP_FUNCTION(sample_var_a_exists) { if (!zend_hash_exists(EG(active_symbol_table), a, sizeof(a))) { RETURN_BOOL(0); } RETURN_BOOL(1); } [/code] Note: the segfault only occurs when the

Re: [PHP-DEV] Seg fault when using active_symbol_table called from userspace function.

2009-11-01 Thread Mark Skilbeck
Scott MacVicar wrote: On 1 Nov 2009, at 21:09, Mark Skilbeck markskilb...@gmail.com wrote: [snip] There is no symbol table as there are no variables. You should check if it's NULL before using zend_hash_exists. Scott Ah - of course. Thanks for that, Scott. -- PHP Internals - PHP

Re: [PHP-DEV] Seg fault when using active_symbol_table called from userspace function.

2009-11-01 Thread Mark Skilbeck
Scott MacVicar wrote: On 1 Nov 2009, at 21:09, Mark Skilbeck markskilb...@gmail.com wrote: [snip] There is no symbol table as there are no variables. You should check if it's NULL before using zend_hash_exists. Scott Hi, Scott. I'm having trouble - I added the check to see if the symbol

Re: [PHP-DEV] Seg fault when using active_symbol_table called from userspace function.

2009-11-01 Thread Mark Skilbeck
Scott MacVicar wrote: On 1 Nov 2009, at 21:41, Mark Skilbeck wrote: Scott MacVicar wrote: On 1 Nov 2009, at 21:09, Mark Skilbeck markskilb...@gmail.com wrote: [snip] There is no symbol table as there are no variables. You should check if it's NULL before using zend_hash_exists. Scott Hi

[PHP-DEV] Is an extension dev. on 5.x usable on 5.x

2009-10-31 Thread Mark Skilbeck
That is, is an extension compiled on PHP5.1 usable for PHP5.2? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Where is the EG macro defined?

2009-10-28 Thread Mark Skilbeck
I'd like to check out how the EG macro (I assume it's a macro) works. However, I cannot find it :( -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Where is the EG macro defined?

2009-10-28 Thread Mark Skilbeck
Graham Kelly wrote: Hi, You might find http://lxr.php.net to be a useful tool to help with finding definitions in the PHP code base. - Graham Kelly On Wed, Oct 28, 2009 at 5:57 PM, Mark Skilbeck markskilb...@gmail.comwrote: I'd like to check out how the EG macro (I assume it's a macro

Re: [PHP-DEV] Where is the EG macro defined?

2009-10-28 Thread Mark Skilbeck
Felipe Pena wrote: Hi. 2009/10/28 Mark Skilbeck markskilb...@gmail.com I'd like to check out how the EG macro (I assume it's a macro) works. However, I cannot find it :( Take a look in Zend/zend_globals_macros.h Cheers, Felipe. It's funny that VS didn't find it when I searched

Re: [PHP-DEV] Where is the EG macro defined?

2009-10-28 Thread Mark Skilbeck
definitions in the PHP code base. - Graham Kelly On Wed, Oct 28, 2009 at 5:57 PM, Mark Skilbeck markskilb...@gmail.comwrote: I'd like to check out how the EG macro (I assume it's a macro) works. However, I cannot find it :( -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe

Re: [PHP-DEV] Where is the EG macro defined?

2009-10-28 Thread Mark Skilbeck
Keisial wrote: Mark Skilbeck wrote: I'd like to check out how the EG macro (I assume it's a macro) works. However, I cannot find it :( Zend/zend_globals_macros.h EG means executor_globals. This macro provides access to the value named in the parameter. If running without multi-thread support

[PHP-DEV] Re: #49346 [Bgs]: using return() with an empty argument list is causing in a parser error

2009-09-03 Thread Mark Skilbeck
mirko dot steiner at slashdevslashnull dot de wrote: ID: 49346 User updated by: mirko dot steiner at slashdevslashnull dot de Reported By: mirko dot steiner at slashdevslashnull dot de Status: Bogus Bug Type: Reproducible crash Operating System: linux,