Re: [PHP-DEV] PHP CLI setting cooked terminal mode

2013-09-16 Thread Edward Z. Yang
I've seen something similar on Debian; it might be a patch that your distro is shipping on top of PHP. Edward Excerpts from Alain Williams's message of Sat Sep 14 04:45:41 -0700 2013: > Hi, > > I am running a PHP script at the command line and piping the output through > less: > > ./myScri

Re: [PHP-DEV] [PATCH] Enable extension loading from .user.ini when run as CGI.

2012-07-27 Thread Edward Z. Yang
Excerpts from Pierre Joye's message of Sat Jul 28 02:20:51 -0400 2012: > > Functionality is not included for other SAPIs because they either do not > > support .user.ini (e.g. CLI) or they serve multiple requests and thus > > do not support dl() (e.g. FastCGI). > > dl has been disabled in FastCGI

[PHP-DEV] [PATCH] Enable extension loading from .user.ini when run as CGI.

2012-07-27 Thread Edward Z. Yang
From: "Edward Z. Yang" Functionality is not included for other SAPIs because they either do not support .user.ini (e.g. CLI) or they serve multiple requests and thus do not support dl() (e.g. FastCGI). There is also a bugfix to invoke zlist_clean, to ensure extension_lists can be reus

Re: [PHP-DEV] Bug 48417 and PHP 5.4

2012-01-19 Thread Edward Z. Yang
allation. > > Cheers, > Edward > > Excerpts from Pierre Joye's message of Sun Jan 08 07:36:03 -0500 2012: > > hi, > > > > I closed one bug (unrelated to what you have) and added a comment to > > the /ignore issue. I do not see a bug in PHP but if you have

Re: [PHP-DEV] Bug 48417 and PHP 5.4

2012-01-08 Thread Edward Z. Yang
ue. I do not see a bug in PHP but if you have any info > that shows that PHP causes this problem, then please add them to the > bug so we can fix it, if not I will bogus it as there is no bug in php > but in iconv (glibc or other implementations). > > On Thu, Jan 5, 2012 at 7:42 PM,

[PHP-DEV] Bug 48417 and PHP 5.4

2012-01-05 Thread Edward Z. Yang
Hello all, I know it seems like there always is infinite pile of work to do before the PHP 5.4 release comes out, but I think this bug is worth looking at. https://bugs.php.net/bug.php?id=52211 I suggest reverting r300894, since this causes //IGNORE to stop working. Preserving functionality shou

Re: [PHP-DEV] Load extensions for .user.ini files

2011-11-12 Thread Edward Z. Yang
Excerpts from Hannes Magnusson's message of Fri Nov 11 18:54:27 -0500 2011: > Hmh. > Whats the difference between .user.ini and -dextension=? > I hate it when bucketloads of .ini files are picked up when I run PHP via cli The idea would be to make it easy to simulate the same configuration as when

Re: [PHP-DEV] Load extensions for .user.ini files

2011-11-11 Thread Edward Z. Yang
mean we should implement .user.ini for these SAPIs? I'd be in favor. Edward > > -Rasmus > > On 11/11/2011 11:42 AM, Edward Z. Yang wrote: > > http://svn.php.net/repository/php/php-src/branches/PHP_5_3 > > r318957 > > > > We also applied it to 5.3.8 releas

Re: [PHP-DEV] Load extensions for .user.ini files

2011-11-11 Thread Edward Z. Yang
inst? It doesn't apply to 5_3/5_4/trunk > > It is short and simple so I could do it manually, of course, but I'd > like to know what you have been testing it against. > > On 11/10/2011 07:14 PM, Edward Z. Yang wrote: > > Here is the proposed patch (sans tests; we d

Re: [PHP-DEV] Load extensions for .user.ini files

2011-11-11 Thread Edward Z. Yang
Well, I'm kind of hoping this patch will go in, so we don't have to bother with a bug. I can if you really want me to. Cheers, Edward Excerpts from Christopher Jones's message of Fri Nov 11 14:28:30 -0500 2011: > > On 11/10/2011 07:14 PM, Edward Z. Yang wrote: > >

Re: [PHP-DEV] Load extensions for .user.ini files

2011-11-10 Thread Edward Z. Yang
2011: > On 11/08/2011 12:23 AM, Edward Z. Yang wrote: > > Hello all, > > > > My team is interested in permitting .user.ini files to load > > extensions. We believe this to be a simple fix: add > > an invocation of php_ini_register_extensions to the end > >

Re: [PHP-DEV] Load extensions for .user.ini files

2011-11-08 Thread Edward Z. Yang
Excerpts from Rasmus Lerdorf's message of Tue Nov 08 03:54:56 -0500 2011: > It should match the dl() SAPI availability. OK, can do! Cheers, Edward -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Load extensions for .user.ini files

2011-11-08 Thread Edward Z. Yang
Excerpts from Rasmus Lerdorf's message of Tue Nov 08 03:40:17 -0500 2011: > You are aware that these extensions can't be unloaded, right? So one > user loading an extension will potentially be stepping on another user > and breaking their code. Yep. If you like, I can make it so that it only appli

[PHP-DEV] Load extensions for .user.ini files

2011-11-08 Thread Edward Z. Yang
Hello all, My team is interested in permitting .user.ini files to load extensions. We believe this to be a simple fix: add an invocation of php_ini_register_extensions to the end of sapi/cgi/cgi-main.c. I don't believe this steps on any invariants, since extensions can usually be loaded arbitrar

[PHP-DEV] Autoloader invariant

2010-12-30 Thread Edward Z. Yang
Hello all, long time no see. When I am inside the body of an autoloader function, am I allowed to assume the invariant that the class passed to the autoloader function does not exist? Last time I checked, PHP was still single-threaded, so this invariant being broken would be quite suprising to me

[PHP-DEV] Bug tracker cannot connect to database

2009-11-19 Thread Edward Z. Yang
I don't know if this is the right list to report to, but bugs.php.net is currently non-functional. Cheers, Edward -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Per-directory PHP configuration

2009-08-24 Thread Edward Z. Yang
Excerpts from Pierre Joye's message of Mon Aug 24 19:37:38 -0400 2009: > - It looks in the current directory for ini file (named by default > .user.ini) and scan the parent directories up to the document root to > apply rules from other .user.ini. My apologies, I was reading php_ini.c and didn't

Re: [PHP-DEV] Per-directory PHP configuration

2009-08-24 Thread Edward Z. Yang
Excerpts from Pierre Joye's message of Mon Aug 24 18:21:32 -0400 2009: > Please point out the differences and list what else you may need. I do > not think we will introduce another feature but improve the current > implementation. As I understand it, the features are not compatible. One takes an

Re: [PHP-DEV] Per-directory PHP configuration

2009-08-24 Thread Edward Z. Yang
Excerpts from Pierre Joye's message of Mon Aug 24 18:03:14 -0400 2009: > The patch is missing. I intentionally omitted it, since it had some code specific to our environment. I have posted it here: http://web.mit.edu/~ezyang/Public/php-scripts.patch It is very very rough and does things that wo

[PHP-DEV] Per-directory PHP configuration

2009-08-24 Thread Edward Z. Yang
Hello all, I cooked up a patch that gives PHP support for per-directory php.ini files that properly inherit. This makes php.ini files act a little like .htaccess files. We are cognizant of the associated performance issues, and thus this is a strictly optional feature. For a little history, the

Re: [PHP-DEV] PHP CLI and opcode caches

2009-07-14 Thread Edward Z. Yang
Excerpts from Peter Wang's message of Mon Jul 13 05:34:33 -0400 2009: > http://www.php.net/manual/en/apc.configuration.php#ini.apc.enable-cli > > is that what you want? Not really, since the manual even specifically states that the opcode cache will get created and destroyed. I think Thomas is l

Re: [PHP-DEV] git mirror of svn.php.net

2009-07-13 Thread Edward Z. Yang
Excerpts from David Soria Parra's message of Mon Jul 13 15:38:04 -0400 2009: > Quite a few people mentioned that they want to use git as a frontend to > the svn server. Therefore most of them need an initial import of the > svn.php.net repository using git-svn. As this operation will retrieve > eve

Re: [PHP-DEV] Can't use embeded sapi

2009-07-13 Thread Edward Z. Yang
Excerpts from Thomas Koch's message of Mon Jul 13 16:15:10 -0400 2009: > worker.o: In function `main': > /var/checkouts/gearman-php-worker/worker.c:5: undefined reference to > `php_embed_init' > /var/checkouts/gearman-php-worker/worker.c:6: undefined reference to > `php_embed_shutdown' > collect2

Re: [PHP-DEV] constructors are callable as regular functions.

2009-07-02 Thread Edward Z. Yang
Excerpts from troels knak-nielsen's message of Thu Jul 02 10:55:48 -0400 2009: > I understand that. It's not a technical issue - It's more a matter of > language semantics. Constructors are used for initializing state on an > object. Basically, this behaviour makes it impossible to implement > immu

Re: [PHP-DEV] constructors are callable as regular functions.

2009-07-02 Thread Edward Z. Yang
Excerpts from troels knak-nielsen's message of Thu Jul 02 10:14:18 -0400 2009: > I would have expected the second call to __construct() to yield an error. Why should it? Especially since this is idiomatic code: class A { public function __construct($a) { $this->a = $a; } } class B extend

Re: [PHP-DEV] PHP 5.3.0 Released!

2009-06-30 Thread Edward Z. Yang
Excerpts from Lukas Kahwe Smith's message of Tue Jun 30 09:01:16 -0400 2009: > The PHP Development Team would like to announce the immediate release > of PHP 5.3.0. This release is a major improvement in the 5.X series, > which includes a large number of new features and bug fixes. Congratulat

Re: [PHP-DEV] add "scream" feature to core

2009-02-26 Thread Edward Z. Yang
So, my understanding of the shut-up operator was that it temporarily set error_reporting to zero, so you could define a custom error handler that would do the equivalent simply by not honoring error_reporting = 0. Something that would be more useful, and that I don't think is implementable in PHP,

Re: [PHP-DEV] Don't compress empty output with zlib

2009-02-23 Thread Edward Z. Yang
CC'ed authors of zlib.c Could this patch be applied to PHP_5_2 and further? Index: ext/zlib/zlib.c === RCS file: /repository/php-src/ext/zlib/zlib.c,v retrieving revision 1.183.2.6.2.8 diff -u -r1.183.2.6.2.8 zlib.c --- ext/zlib/zlib

Re: [PHP-DEV] Don't compress empty output with zlib

2009-02-18 Thread Edward Z. Yang
Edward Z. Yang wrote: > The previous patch is wrong (it doesn't handle the flush();flush(); case > well). Here's a better one, although it's 304 specific: Bump? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Don't compress empty output with zlib

2009-02-17 Thread Edward Z. Yang
Edward Z. Yang wrote: > Hello all, I've cooked up a short paonetch for Bug 42362, and would > appreciate comments. The patch turns off zlib compression if there is no > output, to make zlib_compression play more nicely with 304s. The previous patch is wrong (it doesn't handl

[PHP-DEV] Don't compress empty output with zlib

2009-02-17 Thread Edward Z. Yang
Hello all, I've cooked up a short patch for Bug 42362, and would appreciate comments. The patch turns off zlib compression if there is no output, to make zlib_compression play more nicely with 304s. Cheers, Edward Index: ext/zlib/zlib.c

Re: [PHP-DEV] json_encode()

2008-12-15 Thread Edward Z. Yang
Jared Williams wrote: > Don't think that's what he said... More like... > > assert(is_object($foo) || is_array($foo)); // ensure strictly conforming > $json = json_encode($foo); Which is, for all intents and purposes, the same thing. (Since you can't pass json_encode(34) for strict JSON). PHP ha

Re: [PHP-DEV] PHP 5.2.7RC4 Testing

2008-11-23 Thread Edward Z. Yang
Edward Z. Yang wrote: > And I get an error. I tested on another Vista machine and an XP virtual > machine, and I did NOT get the error, so it's something wonky in my > configuration. When I clear my %PATH% variable, the error goes away. The culprit is *some* DLL in C:\Program Files

Re: [PHP-DEV] PHP 5.2.7RC4 Testing

2008-11-23 Thread Edward Z. Yang
Edward Z. Yang wrote: > And no error. That's very curious! Maybe it's two extensions causing the > problem? I'm going to twiddle with my php.ini some more. My fault; the php.exe being executed was my 5.2.6 in the path. When I run it on the "real" executable, I

Re: [PHP-DEV] PHP 5.2.7RC4 Testing

2008-11-23 Thread Edward Z. Yang
Pierre Joye wrote: > Please try in the cmd line: > > cd C:\Software\PHP\versions\5.2.7RC5-dev\ext > > php.exe -n -d extension_dir=ext -d extension=php_curl.dll -m > C:\Users\Edward>cd C:\Software\PHP\versions\5.2.7RC5-dev\ext C:\Software\PHP\versions\5.2.7RC5-dev\ext>php.exe -n -d extension_di

Re: [PHP-DEV] PHP 5.2.7RC4 Testing

2008-11-23 Thread Edward Z. Yang
Pierre Joye wrote: > Are you sure you are using the right php/php.ini/extension? Yep. (Errors omitted for brevity) $ phpv 5.2.7RC5-dev --version PHP 5.2.7RC5-dev (cli) (built: Nov 23 2008 11:39:53) Copyright (c) 1997-2008 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

Re: [PHP-DEV] PHP 5.2.7RC4 Testing

2008-11-23 Thread Edward Z. Yang
Pierre Joye wrote: > Are you sure you are using the right php/php.ini/extension? Yep. (Errors omitted for brevity) $ phpv 5.2.7RC5-dev --version PHP 5.2.7RC5-dev (cli) (built: Nov 23 2008 11:39:53) Copyright (c) 1997-2008 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

Re: [PHP-DEV] PHP 5.2.7RC4 Testing

2008-11-23 Thread Edward Z. Yang
Pierre Joye wrote: >> It should not use MSVCR80.dll as it is only for VC9. >> > >> > Can you try with a clean install and/or using a snapshot (5.2, >> > http://windows.php.net)? > > I will try the snapshot very shortly. I get the same error from php_curl.dll in the snapshot. > I did a little mo

Re: [PHP-DEV] PHP 5.2.7RC4 Testing

2008-11-23 Thread Edward Z. Yang
Pierre Joye wrote: > It should not use MSVCR80.dll as it is only for VC9. > > Can you try with a clean install and/or using a snapshot (5.2, > http://windows.php.net)? I will try the snapshot very shortly. I did a little more poking around and php_curl.dll appears to be the culprit, not php.exe.

Re: [PHP-DEV] PHP 5.2.7RC4 Testing

2008-11-23 Thread Edward Z. Yang
Ilia Alshanetsky wrote: > The Windows are available as well at the following URL: > http://windows.php.net/qa/. The number of changes since the last RC were > fairly minimal and it is my opinion we are ready for the final release > come Thursday next week. As usual please test this release and repo

Re: [PHP-DEV] Proposal for new construct: nameof

2008-10-29 Thread Edward Z. Yang
Stan Vassilev | FM wrote: > I suggest we introduce a new construct which will return a string when passed > any identifier to resolve against the current file's use clauses: > > nameof Symbol\Name; > > With this identifier, the above example can be "normalized" to the following > code: I secon

Re: [PHP-DEV] Where do I find a fresh PHP 6 Win32 build?

2008-10-06 Thread Edward Z. Yang
Tore B. Krudtaa wrote: > Why is it not built more often? Usually it's because the PHP6 build is broken on Windows. Check the latest compile logs; they'll usually tell you where things broke, and then you bug the appropriate people to get it fixed. -- PHP Internals - PHP Runtime Development Mail

Re: [PHP-DEV] Where do I find a fresh PHP 6 Win32 build?

2008-10-06 Thread Edward Z. Yang
Tore B. Krudtaa wrote: > Why is it not built more often? Usually it's because the PHP6 build is broken on Windows. Check the latest compile logs; they'll usually tell you where things broke, and then you bug the appropriate people to get it fixed. -- PHP Internals - PHP Runtime Development Maili

Re: [PHP-DEV] Where do I find a fresh PHP 6 Win32 build?

2008-10-06 Thread Edward Z. Yang
Tore B. Krudtaa wrote: > Why is it not built more often? Usually it's because the PHP6 build is broken on Windows. Check the latest compile logs; they'll usually tell you where things broke, and then you bug the appropriate people to get it fixed. -- PHP Internals - PHP Runtime Development Mail

Re: [PHP-DEV] Strange phenomenon

2008-09-30 Thread Edward Z. Yang
Lars Schultz wrote: > http://forum.hardened-php.net/viewtopic.php?pid=1650 I vaguely recall Suhosin patched var_export to handle non-ASCII characters in var_export in a safe manner; var_export is known to do funky things to Unicode/binary data in vanilla PHP. -- PHP Internals - PHP Runtime Devel

Re: [PHP-DEV] PHP mixin RFC

2008-09-10 Thread Edward Z. Yang
Jonathan Bond-Caron wrote: > http://wiki.php.net/rfc/mixin It seems to me that class_mixin() is a bad idea for the core; it's more of a runkit type functionality than traits. After all, we don't allow dynamic inheritance, or dynamic interfaces... -- PHP Internals - PHP Runtime Development Maili

Re: [PHP-DEV] Cases in which loadHTML doesn't exit

2008-09-02 Thread Edward Z. Yang
Antony Dovgal wrote: > And even if there are, I don't believe they are on our side, since it's > the same #ifdef used in two different places, no chance to get different > values. Yep. I did more source diving and this should not be possible. Which means that whoever deployed this PHP (i.e. the ho

[PHP-DEV] Cases in which loadHTML doesn't exit

2008-09-02 Thread Edward Z. Yang
I've been debugging a case where a PHP installation doesn't have DOMDocument->loadHTML, but phpinfo reports that HTML is enabled (the normal reason why loadHTML would not be available) and that the API version of 20031129. Is there any other way to check for the compile-time constant LIBXML_HTML_EN

Re: [PHP-DEV] Volunteers for Subversion 1.5 conversion of cvs.php.net?

2008-07-29 Thread Edward Z. Yang
y, my personal opinion has no matter in it. I'm just saying that Travis's proposal is a good one and retains many of the benefits of Git (esp. in patch preparation) especially if it's officially blessed. Cheers, Edward -- Edward Z. YangGnuPG: 0x869C48DA H

Re: [PHP-DEV] Patch for HTTP successful status codes

2008-07-28 Thread Edward Z. Yang
Edward Z. Yang wrote: > It's a configurable option (don't have the code in front of me, so no > proof, sorry). You can set redirects = 0, and have http not follow any > redirects. Whoops, I'm talking about pecl/http, not the http wrapper. Disregard the abo

Re: [PHP-DEV] Patch for HTTP successful status codes

2008-07-28 Thread Edward Z. Yang
cts = 0, and have http not follow any redirects. -- Edward Z. YangGnuPG: 0x869C48DA HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter [[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]] -- PHP Internals - PHP Runtime Development Mailing List To unsubs

Re: [PHP-DEV] Volunteers for Subversion 1.5 conversion of cvs.php.net?

2008-07-28 Thread Edward Z. Yang
SVN repo once they've prepared their patches. That would certainly be nice! I would normally advocate a full switch from CVS to Git, but since it seems the general consensus is to SVN, a parallel Git repository would greatly aid those of us stuck on Windows with bjorked git-svn ins

Re: [PHP-DEV] New flame

2008-06-24 Thread Edward Z. Yang
Asbjørn Sloth Tønnesen wrote: > Some some minor inconsistencies, between Shift-JIS and Unicode. > > http://en.wikipedia.org/wiki/Unicode#Mapping_to_legacy_character_sets And I say good riddance! The yen/backslash conflation has given me plenty a PITA in the past. -- Edwar

Re: [PHP-DEV] [RFC] Strict type hints (parameter and return value)

2008-06-18 Thread Edward Z. Yang
n (PHP adds === only because of its type-juggling system). Other languages have = as comparison, and := as assignment. Donald Knuth uses = as comparison, and a left arrow (<-) for assignment. -- Edward Z. YangGnuPG: 0x869C48DA HTML Purifier <http://htmlpurifier.o

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

2008-06-18 Thread Edward Z. Yang
uences, characters, words, etc. So making it do all that would only make sense with intl, and even then not really (as Stanislav points out performance-wise). What I was suggesting was a shortcut to iterating over binary data; i.e. byte by byte. -- Edward Z. YangGnuPG: 0x869C4

Re: [PHP-DEV] [PATCH] [RFC] Closures and lambda functions in PHP

2008-06-17 Thread Edward Z. Yang
he callee's context can be passed via a parameter What would be neat, however, is the ability to rebind the lambda to another context. Also, I don't know how other languages do it (Python? Lisp?). -- Edward Z. YangGnuPG: 0x869C48DA HTML Purifier <http://html

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

2008-06-17 Thread Edward Z. Yang
iterate across a string. If I'm doing this sort of heavy string processing, I probably need some semblance of performance. -- Edward Z. YangGnuPG: 0x869C48DA HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter [[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

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

2008-06-16 Thread Edward Z. Yang
t would be neat if we could get that foreach syntax to work. I get sick of for($i = 0, $c = strlen($str); $i < $c; $i++) very quickly. -- Edward Z. YangGnuPG: 0x869C48DA HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter [[ 3FA8 E9A9 7385 B691 A6FC B3CB A9

Re: [PHP-DEV] Unicode and XML

2008-06-01 Thread Edward Z. Yang
Edward Z. Yang wrote: > My proposal is to introduce a new filter (for the filter extension) > which performs codepoint sanitization appropriate for HTML/XML contexts > (alternatively, this could be an option on the FILTER_DEFAULT filter, > which would be for Unicode strings, I assume).

Re: [PHP-DEV] Unicode and XML

2008-05-29 Thread Edward Z. Yang
ttp://marc.info/?l=php-internals&m=116631089122369&w=2 [3] http://docs.php.net/manual/en/regexp.reference.php#regexp.reference.unicode -- Edward Z. YangGnuPG: 0x869C48DA HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter [[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 B

[PHP-DEV] Unicode and XML

2008-05-28 Thread Edward Z. Yang
s not allowed in HTML). How should we go about making this easy in PHP 6? Perhaps a web_encoding (terrible name, I know) function is in order? -- Edward Z. YangGnuPG: 0x869C48DA HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter [[ 3FA8 E9A9 7385 B691 A6FC B3C

Re: [PHP-DEV] APC doesn't work on Windows?

2008-05-25 Thread Edward Z. Yang
urposes; seeing how nicely my code plays with the opcode cache, whether or not a different include scheme would result in better performance, etc. Testing with XCache would be helpful (and I will certainly look into it), but APC is the industry standard and my first priority. -- Edward Z. Yang

Re: [PHP-DEV] APC doesn't work on Windows?

2008-05-25 Thread Edward Z. Yang
I give up and figure out how to install APC on Ubuntu. -- Edward Z. YangGnuPG: 0x869C48DA HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter [[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] APC doesn't work on Windows?

2008-05-25 Thread Edward Z. Yang
re you running Windows or Linux? I'm sure APC works on Linux; I'm curious about Windows. -- Edward Z. YangGnuPG: 0x869C48DA HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter [[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]] -- PHP Inter

Re: [PHP-DEV] APC doesn't work on Windows?

2008-05-23 Thread Edward Z. Yang
Jared Williams wrote: > I'm running php 5.2.5 NTS with APC 3.1.0-dev. It works, but not without some > issues, like occasionally get a FastCGI process crashing which I suspect is > APC. Hello Jared, Doesn't running APC under FastCGI kind of defeat the purpose of APC?

[PHP-DEV] APC doesn't work on Windows?

2008-05-23 Thread Edward Z. Yang
s generally known to be the case? -- Edward Z. YangGnuPG: 0x869C48DA HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter [[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Unicode progress [Was: unicode.semantics ad infinitum]

2008-05-22 Thread Edward Z. Yang
her. As far as I can tell, it's effectively impossible for anyone who wants to support "low" PHP 5 versions. That's because the b"" prefix wasn't introduced until PHP 5.2.1, and that prefix is *crucial* to future-proofing any code that deals with binary dat

Re: [PHP-DEV] Unicode progress [Was: unicode.semantics ad infinitum]

2008-05-20 Thread Edward Z. Yang
Edward Z. Yang wrote: > Also, as stands it appears most non-trivial applications are fairly > broken. Those issues need to be resolved first, before we toss Unicode > onto the pile. I retract this statement; I didn't realize we had already turned on Unicode semantics. --

Re: [PHP-DEV] Unicode progress [Was: unicode.semantics ad infinitum]

2008-05-20 Thread Edward Z. Yang
efore we toss Unicode onto the pile. -- Edward Z. YangGnuPG: 0x869C48DA HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter [[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Float comparison

2008-05-04 Thread Edward Z. Yang
to do with the floating point comparison argument.) -- Edward Z. YangGnuPG: 0x869C48DA HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter [[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]] -- PHP Internals - PHP Runtime Development Mailing List To unsubscri

Re: [PHP-DEV] PHP 5.2.6RC5 windows build available

2008-04-30 Thread Edward Z. Yang
Pierre Joye wrote: > http://pecl2.php.net/downloads/php-windows-builds/ Woohoo! That's pretty awesome! -- Edward Z. YangGnuPG: 0x869C48DA HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter [[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]] --

[PHP-DEV] Const-correctness with Zend

2008-04-26 Thread Edward Z. Yang
ugh monkeying around in Zend is something probably best left to the experts. Still, I'm wondering if this would be a good idea or not. Code-wise, it should be fully backwards and forwards compatible (warnings simply disappear in newer versions), although it wouldn't be binary com

[PHP-DEV] Re: Help with calling PHP functions

2008-04-26 Thread Edward Z. Yang
Edward Z. Yang wrote: > Callback works with the native C functions too. It'll be pretty nasty > trying to get all of PHP's macros to work from scratch. Just use the > infrastructure that's in place already. Sorry about the double-post; I should clarify: I mean that

[PHP-DEV] Re: Help with calling PHP functions

2008-04-26 Thread Edward Z. Yang
atch. Just use the infrastructure that's in place already. -- Edward Z. YangGnuPG: 0x869C48DA HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter [[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: Help with calling PHP functions

2008-04-26 Thread Edward Z. Yang
help you for the other, although "Extending and Embedding PHP" by Sara Golemon, George Schlossnagle and Wez Furlong covers that topic, I think. -- Edward Z. YangGnuPG: 0x869C48DA HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter [[ 3FA8 E9A9 738

[PHP-DEV] Re: Return type hinting patch

2008-04-25 Thread Edward Z. Yang
Sam Barrow wrote: > Attached is my return type hinting patch. [snip] I have a question independent of syntax/design-concerns: does this patch utilize typed returns to afford performance benefits to userland code that use it? -- Edward Z. YangGnuPG: 0x869C48DA H

[PHP-DEV] Re: Unresolved external symbol __mysqlnd_debug

2008-04-23 Thread Edward Z. Yang
Johannes Schlüter wrote: > Please do a cvs up and try again, thanks, mysqli working like a charm, thanks! -- Edward Z. YangGnuPG: 0x869C48DA HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter [[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]]

Re: [PHP-DEV] Unresolved external symbol __mysqlnd_debug

2008-04-23 Thread Edward Z. Yang
Antony Dovgal wrote: > Is this HEAD? Or 5_3 ? 5_3. HEAD has way too many errors and failing extensions on Windows for me to care right now. :-) -- Edward Z. YangGnuPG: 0x869C48DA HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter [[ 3FA8 E9A9 7385 B691

[PHP-DEV] Unresolved external symbol __mysqlnd_debug

2008-04-22 Thread Edward Z. Yang
K1120: 1 unresolved externals A similar error is occuring in the snapshot builds at snaps.php.net. Where can I get a more recent version of the library files? (if that is the problem?) -- Edward Z. YangGnuPG: 0x869C48DA HTML Purifier <http://htmlpurifier.org> Anti

Re: [PHP-DEV] intl naming

2008-04-08 Thread Edward Z. Yang
he quick and dirty prototype. -- Edward Z. YangGnuPG: 0x869C48DA HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter [[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit:

Re: [PHP-DEV] The "jump" operator

2008-04-04 Thread Edward Z. Yang
Richard Quadling wrote: > Is there use case that can be used for the documentation? Two big ones I can think of: Multi-loop breaks and parsers. -- Edward Z. YangGnuPG: 0x869C48DA HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter [[ 3FA8 E9A9 7385 B691

Re: FW: [PHP-DEV] memory corruptions in APC env when using references or extract(..., EXTR_REFS) [was re: references / zend_assign_to_variable / IS_CONST operands in APC]

2008-04-03 Thread Edward Z. Yang
Kannan Muthukkaruppan wrote: > We are on 5.2.5. Download a snap/rc and check it out on that. Esp. 5.2.6, which will be officially released soon. -- Edward Z. YangGnuPG: 0x869C48DA HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter [[ 3FA8 E9A9 7385 B691

Re: [PHP-DEV] PHP_5_3 GOTO?

2008-04-02 Thread Edward Z. Yang
David Coallier wrote: > See > http://marc.info/?l=php-internals&w=2&r=1&s=Backporting+to+5_3&q=b As far as I know (and I was following that conversation), there was no discussion about the new goto keyword conflicting with existing code. -- Edward Z. Yang

Re: [PHP-DEV] zend_ini_parser.c fails to create in latest PHP6

2008-03-30 Thread Edward Z. Yang
Antony Dovgal wrote: > He's using snapshots, so that should not be required. > I'd say somebody forgot to upgrade re2c on the snaps machine. Btw, when is 0.13.4, the currently "required" version, going to be released? -- Edward Z. YangGnuPG:

Re: [PHP-DEV] making var_dump and var_export even better

2008-03-30 Thread Edward Z. Yang
to the > value being exported. I know this is a little hackish, but what if we inserted a NULL in that location, and then appended a few PHP statements that created the references? -- Edward Z. YangGnuPG: 0x869C48DA HTML Purifier <http://htmlpurifier.org> A

[PHP-DEV] Re: [PATCH] Allow unsetting headers previously set by header()

2008-03-30 Thread Edward Z. Yang
Christian Schmidt wrote: > What do you think of the general idea of being able to unset headers? > And what do you think of my patch? If you need this kind of flexibility, I recommend you make an HttpHeaders class which manages these things and then sends them when necessary. -- Edward Z

Re: [PHP-DEV] Re: Backporting to 5_3

2008-03-30 Thread Edward Z. Yang
it's functionality drop, we may want to wait with > it, unless it doesn't work anyway (e.g. produces segfaults in some cases). Did a little poking around. The only gotcha seems to be that the feature doesn't work when used with a literal string: list($b)

Re: [PHP-DEV] short_open_tag

2008-03-23 Thread Edward Z. Yang
e developer from dropping a few echo's except some sort of auditing strategy; discipline still plays a large role in it. Of course, adopting a less-obvious syntax for raw data will make it more evident when PHP's easy&insecure capabilities are used... -- Edward Z. Ya

Re: [PHP-DEV] short_open_tag

2008-03-23 Thread Edward Z. Yang
ill fix the majority of these issues. Just not 100%. -- Edward Z. YangGnuPG: 0x869C48DA HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter [[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] short_open_tag

2008-03-23 Thread Edward Z. Yang
pure data and the escaped version (in a kind of cache) in the database, because if you store just the escaped version you don't have any easy way (besides decoding) to get the raw version back. Of course, this doubles the storage requirement. -- Edward Z. YangGnuPG:

Re: [PHP-DEV] [RFC] Double quoted NOWDOC is HEREDOC

2008-03-22 Thread Edward Z. Yang
ore than one to do things", which, in terms of syntax, is completely unnecessary. -- Edward Z. YangGnuPG: 0x869C48DA HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter [[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]] -- PHP Internals - PHP Run

[PHP-DEV] Re: halo 3 tournaments - 4v4, 2v2, 1v1 and FFA tournaments weekly athalo3-tournaments.com

2008-03-22 Thread Edward Z. Yang
tly floating at the top of my list. -- Edward Z. YangGnuPG: 0x869C48DA HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter [[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] short_open_tag

2008-03-21 Thread Edward Z. Yang
Elizabeth M Smith wrote: > I'd argue that a the difference" between the ugliness of the long version and the need to > not break php every time an xml declaration pops up in a file. +1 -- Edward Z. YangGnuPG: 0x869C48DA HTML Purifier <http://htm

Re: [PHP-DEV] Re: cvs: php-src(PHP_5_3) /main SAPI.c SAPI.h main.c php_globals.h /sapi/apache mod_php5.c ZendEngine2 zend_execute.h zend_execute_API.c

2008-03-18 Thread Edward Z. Yang
ding to call > that function either. Gotcha. Just making sure. :-) - -- Edward Z. YangGnuPG: 0x869C48DA HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter [[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]] -BEGIN PGP SIGNATURE- Version: GnuPG v1.

[PHP-DEV] Re: cvs: php-src(PHP_5_3) /main SAPI.c SAPI.h main.c php_globals.h /sapi/apache mod_php5.c ZendEngine2 zend_execute.h zend_execute_API.c

2008-03-18 Thread Edward Z. Yang
Rasmus Lerdorf wrote: > exit_on_timeout patch Hi Rasmus, I noticed that this patch modifies the Zend Engine API slightly. Does this translate into any changes that need documentation at php.net? -- Edward Z. YangGnuPG: 0x869C48DA HTML Purifier &l

Re: [PHP-DEV] Re: [ANNOUNCE] Scanner to be based on re2c

2008-03-16 Thread Edward Z. Yang
Marcus Boerger wrote: > Another option is to always generate both versions > and then select the correc one form the build system. +1 -- Edward Z. YangGnuPG: 0x869C48DA HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter [[ 3FA8 E9A9 7385 B691 A6FC B3

[PHP-DEV] Re: [ANNOUNCE] Scanner to be based on re2c

2008-03-16 Thread Edward Z. Yang
Edward Z. Yang wrote: > Here is a patch [snip] Marcus beat me to it. :-) -- Edward Z. YangGnuPG: 0x869C48DA HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter [[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]] -- PHP Internals - PHP Runtime De

Re: [PHP-DEV] Re: cvs: php-src(PHP_5_3) / Makefile.frag NEWS acinclude.m4 configure.in /ext/spl php_spl.c /ext/standard/tests/strings 006.phpt 007.phpt highlight_file.phpt strip_tags_basic1.phpt stri

2008-03-16 Thread Edward Z. Yang
see http://www.thewritingpot.com/patches/php-re2c-windows.patch ). I'm not sure about requiring re2c? -- Edward Z. YangGnuPG: 0x869C48DA HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter [[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]] -- PHP Inter

[PHP-DEV] Re: [ANNOUNCE] Scanner to be based on re2c

2008-03-16 Thread Edward Z. Yang
e. Someone might want to do that later if we start supporting other compilers. Zend-related source files appear to have compiled successfully; re2c didn't give any output and exited with error code 0 (I assume it worked). -- Edward Z. YangGnuPG: 0x869C48DA HTML

Re: [PHP-DEV] Re: cvs: php-src(PHP_5_3) / Makefile.frag NEWS acinclude.m4 configure.in /ext/spl php_spl.c /ext/standard/tests/strings 006.phpt 007.phpt highlight_file.phpt strip_tags_basic1.phpt stri

2008-03-16 Thread Edward Z. Yang
those changes should be well-documented. For me, the Windows build is currently broken; it looks like nmake is still trying to use flex to generate the parser code (i.e. the Windows build scripts weren't updated). Wondering if I should punt to Elizabeth. -- Edward Z. Yang

  1   2   >