Re: [PHP-DEV] Re: SAPI apache2handler + pipelined HTTP request core dumps

2015-03-13 Thread Bostjan Skufca
For me PHP 5.5.20 works OK, but PHP 5.6.6 segfaults. b. On 13 March 2015 at 18:18, Jan Ehrhardt php...@ehrhardt.nl wrote: Patrick Schaaf in php.internals (Tue, 10 Mar 2015 10:26:12 +0100): Dear internals, can somebody knowledgeable about the apache2handler code, please have a look at

Re: [PHP-DEV] SAPI apache2handler + pipelined HTTP request core dumps

2015-03-13 Thread Bostjan Skufca
I can confirm the behaviour. Even if I do not change script names and/or HTTP host. b. On 13 March 2015 at 16:01, Patrick Schaaf p...@bof.de wrote: On Tuesday 10 March 2015 10:26:12 Patrick Schaaf wrote: https://bugs.php.net/bug.php?id=68486 Meanwhile I did some more debugging, today

Re: [PHP-DEV] [Discussion] Deprecate function sizeof()

2015-03-07 Thread Bostjan Skufca
On 7 March 2015 at 20:42, Kalle Sommer Nielsen ka...@php.net wrote: Hi Well we could make count()/sizeof() work for strings, so that if: C:\ php -r echo sizeof('abc'); 3 although it would not really accomplish much imo., I think it is more of what background you come from that makes the

Re: [PHP-DEV] New function: spl_object_id() or spl_object_handle()

2014-11-29 Thread Bostjan Skufca
On 29 November 2014 at 00:21, Rowan Collins rowan.coll...@gmail.com wrote: On 28/11/2014 01:13, Bostjan Skufca wrote: A function called spl_object_hash() exists, but it returns identical hashes for equal objects. In case it's been lost in the noise, no it doesn't. Ouch. I am terribly sorry

Re: [PHP-DEV] New function: spl_object_id() or spl_object_handle()

2014-11-29 Thread Bostjan Skufca
On 28 November 2014 at 21:06, Patrick Schaaf p...@bof.de wrote: I really don't get it. What are you trying to do there that you cannot do with storing the object (reference) itself? I probably provided a poor explanation. All this was meant as a convenience method for quick debugging. I just

Re: [PHP-DEV] New function: spl_object_id() or spl_object_handle()

2014-11-28 Thread Bostjan Skufca
On 28 November 2014 at 04:10, reeze re...@php.net wrote: Won't `$obj1 === $obj2` work for you ? This works if you have two objects which are easily accessible in the same scope. Not that it can not be done this way, but it may require jumping through hoops to get two object references into

Re: [PHP-DEV] New function: spl_object_id() or spl_object_handle()

2014-11-28 Thread Bostjan Skufca
On 28 November 2014 at 07:04, Joe Watkins pthre...@pthreads.org wrote: I don't think so, there is talk of removing object handles in 7. Could you point me to a discussion about this? Tnx. Even if we intended to keep object handles, this leaks implementation details that we

[PHP-DEV] New function: spl_object_id() or spl_object_handle()

2014-11-27 Thread Bostjan Skufca
Hello everyone, this is a proposal to add new function to PHP core: spl_object_id() The story: Recently I was debugging some larger libraries and sorely missed a function that would return an object ID. A function called spl_object_hash() exists, but it returns identical hashes for

Re: [PHP-DEV] Forum software

2013-09-11 Thread Bostjan Skufca
I feel we have a lof of 'silent' people reading the list. Maybe someone who is in charge of running this mailing list can provide the ratio: (distinct email addresses which sent email to internals in the last X months) / (number of email addresses subscribed to internals) to actually see an

[PHP-DEV] realpath_cache_size description in php.ini

2013-09-04 Thread Bostjan Skufca
Hi all, there is no description to be found about what the value of realpath_cache_size actually is. Is it a) max number of files/dirs in the cache or b) overall cache size? I checked php.ini samples distributed with PHP 5.5.3, and documentation here: http://php.net/realpath-cache-size Can

[PHP-DEV] Download mirrors lagging behind

2012-11-23 Thread Bostjan Skufca
Hi there, 1. is there any way to get mirrors to sync faster? si1.php.net in lagging behind, and there is no way to choose any other mirror (except manipulating URI manually). This is not the first time though, I've noticed this for the past couple of releases, at least. 2. Also, when release it

Re: [PHP-DEV] Re: [RFC] discussions, about a 5.3 EOL

2012-03-05 Thread Bostjan Skufca
On 5 March 2012 17:20, Pierre Joye pierre@gmail.com wrote: hi Matthew, On Mon, Mar 5, 2012 at 4:27 PM, Matthew Weier O'Phinney weierophin...@php.net wrote: Considering that 5.3 adoption is still eclipsed by 5.2 adoption, to be honest, it feels like doing 1 year bugfix + 1 year

Re: [PHP-DEV] Re: [RFC] discussions, about a 5.3 EOL

2012-03-05 Thread Bostjan Skufca
On 5 March 2012 17:45, Pierre Joye pierre@gmail.com wrote: On Mon, Mar 5, 2012 at 5:41 PM, Bostjan Skufca bost...@a2o.si wrote: This has to be stressed time and again, in order to start changing current perception that upgrading to newer PHP release is a major PITA. I suppose you

Re: [PHP-DEV] Apache 2.4 support in PHP 5.4.0?

2012-02-24 Thread Bostjan Skufca
Despite the fact that Apache HTTPD's website says that 2.4.1 represents the best available version of Apache HTTP Server, and that PHP 5.4.0 will probably also bear similar notation (guesswork here!), very few (if any!) production environments are going to even bother considering running first

Re: [PHP-DEV] Apache 2.4 support in PHP 5.4.0?

2012-02-24 Thread Bostjan Skufca
On 25 February 2012 00:18, Reindl Harald h.rei...@thelounge.net wrote: Again, why? Because they will skip 5.4.0 in production. And 2.4.1 too. you are missing the fact that many consider testing the new major versions and many of them will only start testing PHP 5.4 in combination with

[PHP-DEV] file_get_contents from HTTPS on Slackware 13.1

2012-02-21 Thread Bostjan Skufca
Hi all, we've bumped into a possible bug where file_get_contents() returns empty string if we try to get contents from HTTPS source. This error only occurs if PHP is compiled with --with-curlwrappers. Funny thing is this only happens on slackware 13.1, but not on 13.0 or older. I've checked

Re: [PHP-DEV] file_get_contents from HTTPS on Slackware 13.1

2012-02-21 Thread Bostjan Skufca
? Will this eventually replace current stream code as default wrapper for communication over the net? Thanks, b. On 21 February 2012 18:16, Rasmus Lerdorf ras...@lerdorf.com wrote: On 02/21/2012 06:54 AM, Bostjan Skufca wrote: Hi all, we've bumped into a possible bug where file_get_contents

Re: [PHP-DEV] Benchmarking ...

2011-10-19 Thread Bostjan Skufca
Are you talking about general server benchmarks, HTTP server benchmarks or PHP-only specific benchmarks (make test?)? b. On 19 October 2011 13:35, Lester Caine les...@lsces.co.uk wrote: OK ... I've pulled out all the old benchmarking stuff, but being several years old, they seem to be a

Re: [PHP-DEV] How to get script filename in module RINIT function

2010-08-12 Thread Bostjan Skufca
believe and cli example you can Prolly find in the cli sapi source. I see argv being a good place maybe. On Aug 10, 2010 9:44 AM, Bostjan Skufca bost...@a2o.si wrote: 2010/8/10 Johannes Schlüter johan...@schlueters.de Hi, On Tue, 2010-08-10 at 17:24 +0200, Bostjan Skufca wrote: I've

Re: [PHP-DEV] How to get script filename in module RINIT function

2010-08-10 Thread Bostjan Skufca
compiled function call trace) to make myself sure that included_files hash gets destroyed AFTER the macro RSHUTDOWN functions are called, so this should not be an issue. Another hint, if I may ask for it? :) Thanks, b. 2010/8/9 Bostjan Skufca bost...@a2o.si I don't think I made myself exactly

Re: [PHP-DEV] How to get script filename in module RINIT function

2010-08-10 Thread Bostjan Skufca
2010/8/10 Johannes Schlüter johan...@schlueters.de Hi, On Tue, 2010-08-10 at 17:24 +0200, Bostjan Skufca wrote: I've been digging a little deeper and have figured out that I probably could retrieve what I want (realpath of first executed file) from included_files hash (first entry

[PHP-DEV] How to get script filename in module RINIT function

2010-08-09 Thread Bostjan Skufca
Hi all! I am developing a small PHP extension and I ATM can't figure out how to get to $_SERVER['SCRIPT_FILENAME'] content while in PHP_RINIT or PHP_RSHUTDOWN function. Can someone please hint me with this one? Thanks, b.

Re: [PHP-DEV] How to get script filename in module RINIT function

2010-08-09 Thread Bostjan Skufca
a poor one:) Thanks again, b. 2010/8/9 Johannes Schlüter johan...@php.net On Mon, 2010-08-09 at 13:32 +0200, Bostjan Skufca wrote: Hi all! I am developing a small PHP extension and I ATM can't figure out how to get to $_SERVER['SCRIPT_FILENAME'] content while in PHP_RINIT

Re: [PHP-DEV] Patch for ext/openssl to support CN_match with asterisk

2010-02-22 Thread Bostjan Skufca
search On 21 February 2010 14:51, Pierre Joye pierre@gmail.com wrote: hi, can you run it through valgrind and paste the output in a new bug report please? Cheers, On Sun, Feb 21, 2010 at 2:47 AM, Bostjan Skufca bost...@a2o.si wrote: a) If you would like to see an example of memory leak

[PHP-DEV] Patch for ext/openssl to support CN_match with asterisk

2010-02-20 Thread Bostjan Skufca
Hi! I've created a patch that enables PHP to do limited wildcard matching if CN_match option in stream context is specified as '*.example.org'. Also I have filled a bug report for this, here: http://bugs.php.net/bug.php?id=51100 Patch is here:

Re: [PHP-DEV] Patch for ext/openssl to support CN_match with asterisk

2010-02-20 Thread Bostjan Skufca
at 8:56 PM, Bostjan Skufca bost...@a2o.si wrote: Hi! I've created a patch that enables PHP to do limited wildcard matching if CN_match option in stream context is specified as '*.example.org'. Also I have filled a bug report for this, here: http://bugs.php.net/bug.php?id=51100 Patch

Re: [PHP-DEV] Patch for ext/openssl to support CN_match with asterisk

2010-02-20 Thread Bostjan Skufca
- watch at server console how STALE CN from previous connection appears 8. execute ./client_openssl_nocert - and the bug is gone to hiding 9. If you repeat steps 6-8 bug reappears/redissapears. I hope this helps, b. On 21 February 2010 01:45, Bostjan Skufca bost...@a2o.si wrote: The patch