[PHP-DEV] PHP5x question related to opcode caching & HashTable entries

2016-02-16 Thread Eric Stenson
Internals Folks-- I'm investigating a problem in WinCache's opcode caching for PHP5x, and I'm baffled. Could someone please explain the difference between the two following code fragments? Specifically, what is the difference in the HashTable and Bucket entries in C. /* Assume $values is a

RE: [PHP-DEV] Re: Windows OpCache bug fix

2015-10-05 Thread Eric Stenson
>From: Dmitry Stogov [mailto:dmi...@zend.com] > >> On Thu, Oct 1, 2015 at 11:54 AM, Matt Ficken >> wrote: >> >>> Pierre Joy wrote: >>> And what wincache does. It is slower but the request is served. >> >> WinCache (file cache) if it can't reattach, creates a new shared mem >> file > > I'm not su

[PHP-DEV] Q: Writing *.phpt's: How to specify multi-process test?

2015-08-24 Thread Eric Stenson
Good Morning PHP Internals! I'm trying to get some unit test coverage on some functionality that requires two separate processes, and I'm wondering how to do this with a *.phpt. WinCache has a cross-process lock functionality that allows synchronization between two processes. (See: http://php

[PHP-DEV] Q: Caching IS_REFERENCE zvals in PHP7?

2015-08-12 Thread Eric Stenson
Good Morning, PHP Internals Folks! I have a design question about caching of IS_REFERENCE zval values, and want to understand the most correct way to implement a memory Cache for zvals in PHP7. Background: --- WinCache's user cache does a 'deep copy' of zvals into a shared memory segmen

RE: [PHP-DEV] [Q] Session provider & returning FAILURE from PS_OPEN_FUNC?

2015-06-24 Thread Eric Stenson
From: Chris Wright Sent: Wednesday, June 24, 2015 6:57 AM > > On 23 June 2015 at 23:09, Eric Stenson wrote: > > Quick behavioral question: > > > > If an extension is implementing a Session handler, and returns FAILURE from > > its > > PS_OPEN_FUNC(), w

[PHP-DEV] [Q] Session provider & returning FAILURE from PS_OPEN_FUNC?

2015-06-23 Thread Eric Stenson
Quick behavioral question: If an extension is implementing a Session handler, and returns FAILURE from its PS_OPEN_FUNC(), will the extension receive subsequent PS_READ_FUNC()/PS_WRITE_FUNC() calls? Also, if an extension returns FAILURE from its PS_OPEN_FUNC(), will the extension receive a PS_

[PHP-DEV] RE: [INTERNALS-WIN] Re: [PHP-DEV] Q: What is the Config.w32 equivalent of PHP_ADD_MAKEFILE_FRAGMENT?

2015-05-26 Thread Eric Stenson
-Original Message- > From: Anatol Belski [mailto:anatol@belski.net] [...] > Can you please share what exactly you need it to do? Like the > command sequence or alike, maybe there is already a way to do that. I need to run the $(MC) command, with the '-um' option, which will create E

[PHP-DEV] Q: What is the Config.w32 equivalent of PHP_ADD_MAKEFILE_FRAGMENT?

2015-05-20 Thread Eric Stenson
Internals folks-- I'm trying to add something...complicated to a PECL extension, and I need to add some custom dependency rules to the Makefile. Specifically, I'm compiling a manifest file using 'mc', which produces both a .h file and a .rc file. I need to ensure the 'mc' command runs before t

RE: [PHP-DEV] [Q] Does PHP have a negative cache for file stat operations?

2015-03-20 Thread Eric Stenson
From: Stanislav Malyshev [mailto:smalys...@gmail.com] > > Does the PHP stat cache include negative cache entries? If not, why > > not? > > Negative cache is tricky. Most frequent patterns look like this: > > 1. if(file_exists("blah")) { do stuff } > > 2. if(!file_exists("blah")) { throw new Ex

RE: [PHP-DEV] [Q] Does PHP have a negative cache for file stat operations?

2015-03-20 Thread Eric Stenson
From: Dan Ackroyd [mailto:dan...@basereality.com] > What context are these filesystem hits in, is it class autoloading > by any chance? Not really. Drupal is looking for 'sites.php' in the root of the web site, and then probing lower down and finding it. It's also looking for 'settings.php'

RE: [PHP-DEV] [Q] Does PHP have a negative cache for file stat operations?

2015-03-20 Thread Eric Stenson
From: Alexander Lisachenko [mailto:lisachenko...@gmail.com] said: > I want to mention http://php.net/manual/en/opcache.configuration > .php#ini.opcache.enable-file-override option, that can cache > positive checks information between subsequent requests. Yes, WinCache's file cache and opcode cach

[PHP-DEV] [Q] Does PHP have a negative cache for file stat operations?

2015-03-19 Thread Eric Stenson
PHP Internals folks-- We're doing some performance work in WinCache, and we're finding that some frameworks are...uh...enthusiastically using file_exists(), is_file() and is_dir() functions on files/directories that don't exist. Every. Single. Pageload. Does the PHP stat cache include negativ

RE: [PHP-DEV] Top 10 Pecl extensions PHP7 compatibility

2015-01-14 Thread Eric Stenson
From: Ferenc Kovacs [mailto:tyr...@gmail.com] Sent: Wednesday, January 14, 2015 10:16 AM > On Wed, Jan 14, 2015 at 6:53 PM, Julien Pauli wrote: > > It would be cool if we could have a PHP7 compat of our top-10 Pecl > extensions before our first PHP7 RC. > > hi, > > here are some download stat

Re: [PHP-DEV] AV on PHP 5.5.18 + Zend Opcache in accel_chdir

2014-11-26 Thread Eric Stenson
​Thank you, Matt. It's not easily repro-able. I'm trying to get an isolated repro. I'll add to the existing bug 68439. Thx! --E. From: Matt Ficken Sent: Tuesday, November 25, 2014 10:16 AM To: Eric Stenson Cc: internals@lists.php.

[PHP-DEV] AV on PHP 5.5.18 + Zend Opcache in accel_chdir

2014-11-24 Thread Eric Stenson
Internals folks-- Who owns Zend Opcache these days? I've got a crash dump that appears to be a double-free of ZCG(cwd) during accel_chdir on PHP 5.5.18. Does this crash look familiar to anyone? [windbg output] 0:000> .ecxr eax= ebx=01b47cb0 ecx=77b12240 edx=01b0 esi=01b12f08 edi=

RE: [PHP-DEV] Is the fix for #61238 in PHP 5.4.4 & pecl yet?

2012-10-24 Thread Eric Stenson
> From: Anthony Ferrara [mailto:ircmax...@gmail.com] > > > [Pierre said:] > > It is still the case. > > > > I for one would like to kill all the legacy features or too specific > > features which are really unusable by any common developers. > > > > Other developers may disagree but it makes very h

RE: [PHP-DEV] Q: ZEND_HANDLE_STREAM and wincache extension on PHP 5.4

2012-03-16 Thread Eric Stenson
> -Original Message- > From: Gustavo Lopes [mailto:glo...@nebm.ist.utl.pt] [...] > For instance, see > > http://lxr.php.net/opengrok/xref/PHP_TRUNK/ext/phar/phar.c#3364 > > which has: > > file_handle->handle.stream.handle = phar; > > and *phar is of type phar_archive_data, which is not

[PHP-DEV] Q: ZEND_HANDLE_STREAM and wincache extension on PHP 5.4

2012-03-15 Thread Eric Stenson
PHP Internals folks-- My name is Eric Stenson, and I'm a developer at Microsoft working on IIS. I've been given the task of upgrading our php_wincache extension to work on PHP5.4, and I've run into a problem. The problem I'm running into is the php_cgi!main() on PHP5.4