Re: [PHP-DEV] [PATCH] late binding for parent (and other options) - Was Re: [PHP-DEV] late static binding php6

2007-11-26 Thread m
>> - static always points to the original callee, w/o being "broken" by >> parent:: >> - get_called_class() should _not_ behave like shown above. It really was >> not B that got called, but it was A, trough parent:: >> - a new get_static_class() method should return "B". > > Ouch. So now not only w

Re: [PHP-DEV] __get() magic method and its use with empty() function.

2008-10-04 Thread M.
Hello, Le samedi 04 octobre 2008 à 22:59 +0200, Kuba Wieczorek a écrit : > Well, this is a sample code for this: > > header('Content-type: text/plain'); > > class test > { > protected $a; > protected $b = 'test'; > > public function __get($var) > { > retur

Re: [PHP-DEV] Where to send small enhancement patch for openssl module of PHP 5.2.6 ?

2008-11-09 Thread M.
Hi Pierre, If you have time to look at his bug, maybe you'll also have time to look at my one-line patch also related to OpenSSL ? http://bugs.php.net/bug.php?id=46127 I really don't know if I'm being ignored or what, but every time I write something for PHP, it gets nowhere (see: bug #46073 and

Re: [PHP-DEV] Can someone explain me why this happens please?

2008-11-16 Thread M.
Hi, Try initializing your "res" variable first. either: memset(&res, 0, sizeof(res)); Or: res[0] = 0; Both will work, it all depends if you want to write "clean" code, of "fast" code (and your definition of both). I believe there are cleaner way to do what you are doing, but I'll let that to

Re: [PHP-DEV] Can someone explain me why this happens please?

2008-11-16 Thread M.
Le dimanche 16 novembre 2008 à 21:35 +0800, Chris Jiang a écrit : > Still, this is a really strange experience. Where are those characters > come from? Shouldn't it be a clean array when I first created them? > Anything related to the zval structure? This is not PHP-related. When you *define* a

Re: [PHP-DEV] Removing basic types from our JSON parser

2008-12-14 Thread M.
Le dimanche 14 décembre 2008 à 00:39 -0800, Rasmus Lerdorf a écrit : > > var foo = ; > > > will always work. The only question is what sort of variable foo will > end up being. The RFC says we have to wrap basic types in an array or > object, while currently we le

Re: [PHP-DEV] Re: [PHP] POSIX 1003.1-2001 gethostname(2)

2008-12-29 Thread M.
Isn't this whole function the same as calling php_uname('n') ? According to gethostname()'s manpage on Linux: The GNU C library implements gethostname() as a library function that calls uname(2) and copies up to len bytes from the returned nodename field into name. php_uname('n') is already imp

Re: [PHP-DEV] RFC for new INI's

2009-02-10 Thread M.
Hi, Some suggestions: Links: Instead of forcing language to english, allow autodetection from http headers. Before: http://www.php.net/manual/en/ini.core.php#ini.user-dir After: http://www.php.net/ini.core#ini.user-dir Also some things I think are not appropriate: extension_dir = "./" enable_

Re: [PHP-DEV] Class names (with regard to autoload)

2009-02-26 Thread M.
Le jeudi 26 février 2009 à 20:27 +, Robin Burchell a écrit : > I've been playing around with autoload lately, and specifically using > autoload to load classes which may be in subdirectories. I came up > with the following test script: The best solution for you is to wait for PHP 5.3.0, then u

Re: [PHP-DEV] Implementing fdopen in PHP

2010-03-14 Thread M.
Hi, Le dimanche 14 mars 2010 à 15:30 +0100, Keisial a écrit : > Creating a fdopen call is useless, since it needs a previous > descriptor to > work from, and all descriptors are equal. Where's that file > descriptor > coming > from? When you spawn a new program, you can pass it additionnal desc

Re: [PHP-DEV] why does PHP accept [new] session ids from client?

2005-03-29 Thread M. Sokolewicz
"why is it this way" should also be posted to the general newsgroup, it barely has anything to do with internals - tul Hans L wrote: Ok, I'll post it there. I thought that it was more a question of "why is it this way?" than "how do I do ?". Thanks, Hans Jeremy Johnstone wrote: Not to be r

Re: [PHP-DEV] php5 win build

2005-03-30 Thread M. Sokolewicz
Jon Parise wrote: On Wed, Mar 30, 2005 at 11:23:37AM -0500, Dan Scott wrote: Reading http://www.zend.com/manual/install.windows.building.php suggests that to fix this problem I need to rebuild resolv.lib -- but using the bindlib.dsp file requires msdev, which requires a full MS Visual Studio envir

[PHP-DEV] Re: phpPgAdmin

2005-04-10 Thread M. Sokolewicz
wwhhhyyy. did you CC internals on this? :| Christopher Kings-Lynne wrote: Hi Plamen, My name is Plamen Petrov and I wanted to help out in developing phpPgAdmin. Currently I don't have much time to contribute since I am working on a project that takes away my weekends too but in couple of months

Re: [PHP-DEV] Re: Fw: win32 build broken

2005-05-12 Thread M. Sokolewicz
I'm havind the exact same problem as Sebastian. Building it using VS.NET 7.0, building it against mysql 4.1.11. Rob Richards wrote: It builds fine here. Assuming the problem you are hitting is still in mysql, I'm building it shared and using headers from mysql-3.23.58 and under VC++ 6 so not su

Re: [PHP-DEV] PHP 5.1

2005-06-14 Thread M. Sokolewicz
Robert Cummings wrote: On Tue, 2005-06-14 at 01:31, Ron Korving wrote: Jason, you are absolutely right.. this is not about input filtering at all. It's about replacing: $x = (isset($ANY_var) ? $ANY_var : 'Default Value'); by $x = ifsetor($ANY_var, 'Default Value'); So, Robert's solution is no

Re: [PHP-DEV] is_callable and method_exists always true when __call is defined

2005-07-09 Thread M. Sokolewicz
I would expect is_callable() to return true (since it is callable), but method_exists() to return false (since it doesn't really exist, it's magic)... at least, that's what would make most sense to me... Marcus Boerger wrote: Hello Davey, if you ask me it is stupid to return true because __

[PHP-DEV] Re: phpnamespaces.org!

2005-12-01 Thread M. Sokolewicz
hi, personally, I find :::A, ::A and such constructs *extremely* ugly. Might I suggest using a special keyword to denote global scoped classes? eg: global:::A and such. global already is a keyword, but I'm pretty sure it could be reused in this context. Plus, it clearly shows where you're get

Re: [PHP-DEV] why is '01' == '1.'?

2005-12-15 Thread M. Sokolewicz
actually, you're right in that (colder.ch) since what happens here is a conversion. This applies to all these 'logic cases' posted. When something is converted to something else, as part of a process, you can't state that the process returns unique results (meaning the result always points back

[PHP-DEV] Re: Win32 snapshot compile failure

2005-12-21 Thread M. Sokolewicz
Marian Kostadinov wrote: Hello everyone, I wonder why is nobody keeping track of the snaps.php.net win snapshots?:) The last one is built successfully 3 days ago! Unfortunately, it is not the first time when there is no snap for more than two days. I just had a quick look at the snapshot log (

Re: [PHP-DEV] Re: PHP taint support: first results

2007-10-05 Thread M. Sokolewicz
(Wietse Venema) wrote: laurent jouanneau: (Wietse Venema) wrote: To give an idea of the functionality, consider the following program with an obvious HTML injection bug: With default .ini settings, this program does exactly what the programmer wrote: it echos the contents of the username

Re: [PHP-DEV] why we must get rid of unicode.semantics switch ASAP

2008-01-21 Thread David M.
Without repeating too much of what has already been said, phpBB3 runs with its own normalizer (NF[CD]K?) and a full implementation of case folding along with all sorts of other goodies. For us, it would be best if semantics were off. Then we could trivially determine whether or not we should us

Re: [PHP-DEV] RFC: Traits for PHP

2008-02-20 Thread M. Sokolewicz
Marcus, Jochem, Although I agree with the general idea, I feel strongly against possesses, mainly because for a non-native english speaker it's a pita to write and will (and I'm sure of this) *very* often be misspelled (leading to general annoyances while debugging). I can't give any better f

Re: [PHP-DEV] PHP Cookie Class

2006-06-15 Thread M. Sokolewicz
Alexander Pak wrote: I think it's a great idea, maybe it sould be implemented the same way for sessions too? On 6/15/06, Jason Boudreault <[EMAIL PROTECTED]> wrote: So, I found myself wondering today why PHP has no built in way to treat cookies as objects. Why? I've already written my own

Re: [PHP-DEV] HTTP-Only Patch

2006-08-07 Thread Scott M
Quoting steve <[EMAIL PROTECTED]>: > Just a note -- having implemented and deployed this (in userspace, not > in php itself) -- setting the http_only flag kills the cookie in IE on > the Mac. One would hope no one is using such a thing anymore, but I > thought I'd point it out, and I'm definately

Re: [PHP-DEV] RFC: unicode.semantics: runtime or not?

2006-09-06 Thread M. Sokolewicz
Ilia Alshanetsky wrote: From a technical perspective it makes sense to keep it php.ini only setting or as Sara insists (STARTUP phase only). However, from a user (hosting companies) perspective it adds a fair degree of complexity to their setup, which would probably mean one php6 instance

[PHP-DEV] Name of Next Release of PHP (again)

2014-07-23 Thread m appu
Hi, Two quick points on the PHP6/7 discussion: 1. There is an existing alternative PHP-compatible implementation called PH7 available from http://ph7.symisc.net/. This may be very confusing if mainline PHP is called PHP 7. 2. People may see the latest version of PHP 7, think that there have been

Re: [PHP-DEV] RFC: Anonymous Classes

2013-09-26 Thread Alexander M
On Thu, Sep 26, 2013 at 5:59 PM, Joe Watkins wrote: > Ok, I included just about all the information on use cases that is obvious > or has been discussed, so I think we got use cases covered now, right ?? > > See a good one yet ?? > > > Cheers > Joe Wondering about scoping. Yes, anonymous classes

[PHP-DEV] Named Parameters

2010-07-22 Thread G M
Rasmus - so what is the state of Named Parameters? We discussed it and the sentiment seemed to be more or less positive about including it in PHP 6.3 . Now what should happen? Greg -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Named parameters

2010-10-15 Thread G M
Okay so I am thinking about submitting a patch to PHP that would enable you to call functions like this: stuff(1, 2, 'separator' => '', 'clean' => true); and define them like this: /** * function to do stuff * @param integer $a * @param integer $b * @param string $separator * Optional, y

Re: [PHP-DEV] Named parameters

2010-10-15 Thread G M
t; 'b', $c => $d)? PS: Please let's NOT make it stuff(1, 2, a => 'b', c => $d) as it would take away the option of having variable key names, which we can have in array(). Also it would create slight ambiguity with constants. On Oct 15, 2010, at 1:27 PM, Michae

[PHP-DEV] Re: internals Digest 18 Apr 2011 04:07:09 -0000 Issue 2314

2011-04-17 Thread G M
I wrote a function that takes a reference, like so: ifset($arr, $key, $default) wouldn't this be more in line with PHP's design, anyway? Greg -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] ternary operator

2011-04-17 Thread G M
I should mention the more general use cases of the function I had made: ifset($arr, $key1, $key2, ..., $keyN, $default) actually, this function checks with array_key_exists, and not just isset. Meaning, if the value exists at that array key path and is null, it is used, otherwise, $default is u

Re: [PHP-DEV] Re: Help with the snaps site

2007-05-26 Thread M. Sokolewicz
Hi John, I actually kind of liked the branch names instead of just "PHP4/PHP5". "PHP5" doesn't mean squat to me, I'd prefer to see the branch names as they barely take any more space and yet provide a lot more info. - Tul John Mertic wrote: Hi Chris, I can see where you are coming from. I

Re: [PHP-DEV] Recursive classes ... possible bug?

2007-06-06 Thread M. Sokolewicz
Christian Schneider wrote: Daniel Penning wrote: Checking if the reference is equal and then doing the member-by-member comparison if they differ would prevent too deep recursion in most cases. That would solve this particular case (and might be worth doing for performance reasons anyway I'd s

Re: [PHP-DEV] What is the use of "unicode.semantics" in PHP 6?

2007-07-12 Thread M. Sokolewicz
Richard Lynch wrote: On Wed, July 11, 2007 3:11 am, Richard Quadling wrote: On 11/07/07, Evert | Rooftop <[EMAIL PROTECTED]> wrote: Larry Garfield wrote: Top 10 by what metric? If I had to guess based on market share, I'd say (unordered): Drupal Squirrelmail WordPress phpMyAdmin MediaWiki

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-17 Thread M. Sokolewicz
I've been reading this lengthy discussion and here's a sumup of what I found: - PHP's implementation is only a part of what most people expect to find when they hear "php has namespace support" - PHP's implementation looks a bit like JAVA's package support, and a bit like many other (differently

[PHP-DEV] Re: [PATCH] bracketed namespace, unset import, removal of namespace blah;

2007-08-22 Thread M. Sokolewicz
Gregory Beaver wrote: Hi again, The attached patch: 1) adds "unset import" syntax for declaring a namespace to have local import scope (it does NOT affect variable scope or the global class/function table) 2) removes "namespace Name;" syntax (this I am happy to add this back in if there is uproa

[PHP-DEV] SSH2 extension maintenance

2016-12-01 Thread Libor M.
Hello, I wonder how it is with the activity development extensions SSH2. The current SSH2 extension (version 0.13 and 1.0) does not work on PHP versions 5.6 and 7.0 because it contains bug https://bugs.php.net/bug.php?id=73524. The bug is fixed in git repository, but new bugfix version is not rele

[PHP-DEV] Re: different behaviour converting float to integer

2004-10-04 Thread M. Sokolewicz
You might want to ask this on the internals list (cc'd) Tomas Kuliavas wrote: When php 5.0.2 converts float to integer, it uses biggest possible integer value. Other php versions overflow and use negalive integers. How to reproduce it: echo (int)0xde120495; Expected result (php 5.0.1, 4.3.9 and 4.1

Re: [PHP-DEV] Compile problem

2004-12-15 Thread M. Sokolewicz
so... does that mean you read: http://www.php.net/manual/en/install.windows.building.php aswell? because that explains the process pretty well... including the point where you went wrong. - tul Alexander Turner wrote: it does seem self explanatory, now doesn't it. nevertheless none of the options

Re: [PHP-DEV] Re: referencing Superglobals with variable variables inside functions

2005-02-01 Thread M. Sokolewicz
AFAICS, it should make every local-variable (non-global) lookup slower. Since it needs to do a lookup in the globals table first. Xuefer Tinys wrote: $_GET is solved at compile time, which is good, but this make other variables bad at execution time? how much does this patch slow execution down?

Re: [PHP-DEV] #define for zend engine 2.1

2005-02-07 Thread M. Sokolewicz
Derick Rethans wrote: On Mon, 7 Feb 2005, val khokhlov wrote: is there a way to find out version of zend engine (2 or 2.1)? i need it in the code like this: #if defined(ZEND_ENGINE_2_1) ZEND_VM_SET_OPCODE_HANDLER(zo); #elif defined(ZEND_ENGINE_2) zo->handler = zend_opcode_handler

Re: [PHP-DEV] PHP 5.1

2005-02-08 Thread M. Sokolewicz
Ok, this is getting plain annoying. Please stop this endless chatter, all of you! It's annoying, senseless, and counter-productive. If you *really* want to keep bitching at eachother, then please do it somewhere else (iow, not on the list). Andrei Zmievski wrote: Terje, Yeah, follow it up with

[PHP-DEV] problems compiling mysqli (on win32)

2005-02-19 Thread M. Sokolewicz
27; ext\mysqli\php_mysqli.h(127) : error C2059: syntax error : ')' Since I'm no good at C, I really have no idea what the problem here is... So, is this a problem with my compiler being stupid? or is this a real live problem in HEAD? hope somebody can help me with this, - M. Sokolewicz -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: problems compiling mysqli (on win32)

2005-02-20 Thread M. Sokolewicz
Sebastian Bergmann wrote: M. Sokolewicz wrote: So, is this a problem with my compiler being stupid? Are you sure you have the right MySQL headers and libraries? ah, thanks for the headsup on this, it seems it was indeed a header/library mismatch; the configure script took em from the

Re: [PHP-DEV] error in compile php5 in vs.net

2005-02-25 Thread M. Sokolewicz
it works, because it might be that it's simply incompatibility between versions - tul Frank M. Kromann wrote: Try to add --without-iconv. Or install the iconv libraries from http://ctindustries.net/dom/libxml/ - Frank C:\Work\php-5.0.3>cscript /nologo configure.js --without-simplexml --wit

Re: [PHP-DEV] Problem with fix for bug #31672

2005-03-07 Thread M. Sokolewicz
I very much agree with this. It's very common to output JavaScript via PHP, and that also uses the tags...so... Ilia Alshanetsky wrote: Good point, +1 for revert. Ilia Zeev Suraski wrote: Guys, I'd like to revert the fix for bug #31672 (" is not considered closing tag if preceded by one-line co

[PHP-DEV] curl_multi_info_read status

2005-03-15 Thread M. F.
What is the schedule of implementation of than curl_multi_info_read function? Is there currently any other way of knowing which curl threads have finished and can be processed (as opposed to waiting until they are all finished? While I can't help with the implementation, I will definitely help

[PHP-DEV] Re: Archive php/pftt2?

2024-08-15 Thread Christoph M. Becker
On 15.08.2024 at 13:43, Derick Rethans wrote: > On Tue, 6 Aug 2024, Christoph M. Becker wrote: > >> this is about the PFTT2 repository[1]. This was used by the Windows QA >> team long ago, and had a short-term revival about 2019, but was then >> dropped in favor of using

Re: [PHP-DEV] Request for RFC karma

2024-08-15 Thread Christoph M. Becker
On 15.08.2024 at 22:57, Dennis Snell wrote: > I would like to request RFC karma to propose a new mechanism for decoding > HTML text, following the brief discussion earlier in  > https://news-web.php.net/php.internals/124326. > > My wiki username is dmsnell RFC karma has been granted. Good luck

Re: [PHP-DEV] Should there be a `get_declared_enums()` function ?

2024-08-16 Thread Christoph M. Becker
On 15.08.2024 at 03:51, Juliette Reinders Folmer wrote: > Should a `get_declared_enums()` function be added ? Here we go: function get_declared_enums() { $enums = []; $exts = get_loaded_extensions(false); foreach ($exts as $ext) { $re = new ReflectionExten

Re: [PHP-DEV] Should there be a `get_declared_enums()` function ?

2024-08-16 Thread Christoph M. Becker
On 16.08.2024 at 17:11, Nicolas Grekas wrote: >> Should a `get_declared_enums()` function be added ? >> >> Here we go: >> >> function get_declared_enums() { >> $enums = []; >> $exts = get_loaded_extensions(false); >> foreach ($exts as $ext) { >> $re = new Re

Re: [PHP-DEV] Should there be a `get_declared_enums()` function ?

2024-08-16 Thread Christoph M. Becker
On 16.08.2024 at 17:01, Ayesh Karunaratne wrote: >> Porting this to C is left as an excercise for the reader. ;) Hint: >> > > I went ahead and created PR https://github.com/php

Re: [PHP-DEV] Time-out Posting to PHP Internals List

2024-08-16 Thread Christoph M. Becker
On 17.08.2024 at 00:36, Rob Landers wrote: > On Fri, Aug 16, 2024, at 22:16, Kris Craig wrote: > >> On Fri, Aug 16, 2024 at 8:11 AM Derick Rethans wrote: >> >>> Hi, >>> >>> In the last months, you have had numerous suggestions to keep it civil >>> on the mailing list, in the "C++ Enhancements" th

Re: [PHP-DEV] [Concept] Flip relative function lookup order (global,then local)

2024-08-23 Thread Christoph M. Becker
On 23.08.2024 at 13:52, Mike Schinkel wrote: > In theory it would be nice to open up PHP to allow overriding core functions, > but that could also open a Pandora's box, the kind that makes Ruby code so > fragile. At least in Go you have to omit the standard lib import and use your > own import

Re: [PHP-DEV] [RFC] Decoding HTML and the Ambiguous Ampersand

2024-08-24 Thread Christoph M. Becker
On 23.08.2024 at 01:02, Dennis Snell wrote: >> If we could have a single implementation, that would be great. I do >> understand of course your concern that DOM is not a required extension, and >> therefore basing the internals on Lexbor makes it tied to the DOM extension >> which may not be av

Re: [PHP-DEV] [RFC] Default expression

2024-08-26 Thread Christoph M. Becker
On 25.08.2024 at 23:51, Bilge wrote: > If you believe I am incorrect about this, I encourage you to submit a > (working) Bison patch to demonstrate how a restricted expression grammar > subset can still recurse with the unrestricted superset, then we can > start having this discussion more serious

Re: [PHP-DEV] [RFC] [Discussion] Using and Mentioning Third-partyPackages in PHP Documentation and Web Projects

2024-08-27 Thread Christoph M. Becker
On 27.08.2024 at 07:03, Andreas Heigl wrote: > I see this a bid differently to be honest. While I understand that using > third party packages in our internal tools might make things easier in > the short term it will cause a lot or additional work in the long term. > > Currently we have a lot of

Re: [PHP-DEV] Native SSL support in Phar extension

2024-08-27 Thread Christoph M. Becker
On 26.08.2024 at 20:05, Calvin Buckley wrote: > Dynamic linkers that pull from a general symbol slurry (your typical ld.so > for instance) don't have a problem with it, but some platforms have more > strict linkage, like Windows. IIRC, things like PDO are built into the PHP > executable/library fo

Re: [PHP-DEV] [RFC] [Discussion] Using and Mentioning Third-party Packages in PHP Documentation and Web Projects

2024-08-27 Thread Christoph M. Becker
On 27.08.2024 at 12:37, Gina P. Banyard wrote: > We promote some installation methods, but not all, and when one project wrote > docs to be included it has remained in limbo for 2 years. [2] > > [2] https://github.com/php/doc-en/pull/1674 Well, that is about a freemium product, and we may want t

Re: [PHP-DEV] [RFC] [Discussion] Using and Mentioning Third-partyPackages in PHP Documentation and Web Projects

2024-08-27 Thread Christoph M. Becker
On 27.08.2024 at 13:34, Derick Rethans wrote: > Explaining how to install PHP with homebrew, apt or yum makes perfect > sense to me. Nobody really ought to go to www.php.net/download and > compile PHP themselves. But that's the only installation instructions > that we have. Well, it's not *that*

Re: [PHP-DEV] Native SSL support in Phar extension

2024-08-27 Thread Christoph M. Becker
On 27.08.2024 at 16:42, Calvin Buckley wrote: > On Aug 27, 2024, at 8:52 AM, Christoph M. Becker wrote: >> >> Might roughly be similar on AIX with "the other dynamic linking option". > > There isn't something like import libraries, but rather, the shared libs

[PHP-DEV] Ship PHP builds for Windows on arm64?

2024-08-28 Thread Christoph M. Becker
Hi all, cross-posting for reach (guess that only few read internals-win). We had a feature request the other day to ship PHP builds for Windows on arm64[1]. It seems to me that Windows on arm64 has left its infancy, and we may not want to fall too far behind in supporting that platform. We alre

[PHP-DEV] What to do with ext/snmp?

2024-08-29 Thread Christoph M. Becker
Hi all, it seems to me that we're pulling through ext/snmp without having any real expert of the protocol, let alone of the implementation. The extension has no code owner, and according to EXTENSIONS, it has no primary maintainer for more than ten years. Skimming through the commit log mostly s

Re: [PHP-DEV] PHP 8.3.11 Released

2024-08-30 Thread Christoph M. Becker
On 30.08.2024 at 00:46, Jakub Zelenka wrote: > The PHP development team announces the immediate availability of PHP > 8.3.11. This is a bugfix release. > > All PHP 8.3 users are encouraged to upgrade to this version. > > For source downloads of PHP 8.3.11 please visit our downloads page: > https:/

Re: [PHP-DEV] What to do with ext/snmp?

2024-08-30 Thread Christoph M. Becker
On 30.08.2024 at 19:05, Jim Winstead wrote: > Perhaps if the effort from the PHP Foundation to build a next-generation PECL > bears fruit, an even harder look can be taken at migrating out even more of > the extensions still living in the php-src tree. With some robust CI, care > could be made

Re: [PHP-DEV] PHP 8.3.11 Released

2024-08-31 Thread Christoph M. Becker
On 31.08.2024 at 18:05, Jakub Zelenka wrote: > On Fri, Aug 30, 2024 at 2:59 PM Christoph M. Becker > wrote: > > There is a note in NEWS about the revert. I'm not sure if we usually do any > separate announcement for those kind of things. I don't remember any such >

Re: [PHP-DEV] PHP 8.3.11 Released

2024-08-31 Thread Christoph M. Becker
On 31.08.2024 at 19:35, Derick Rethans wrote: > Shouldn't we have bumped the API number for this? Better safe than sorry. That ABI break was accidentially committed. There was some discussion whether to stick with the break and bump API numbers, or to revert, and there was consensus that in this

Re: [PHP-DEV] PHP 8.3.11 Released

2024-09-01 Thread Christoph M. Becker
On 01.09.2024 at 09:16, Mike Schinkel wrote: > One of the benefits for users when software authors strictly follow SemVer is > that automated tooling can decide if an automatic upgrade should be safe. > Depending on out-of-band information to convey BC breakage can result in > those who use aut

Re: [PHP-DEV] Ship PHP builds for Windows on arm64?

2024-09-02 Thread Christoph M. Becker
On 02.09.2024 at 10:47, Jordi Boggiano wrote: > On 28.08.2024 21:16, Christoph M. Becker wrote: >> (1) The libraries on which several extensions rely are not yet available >> for Windows on arm64; at least the winlib-builder[2] would need to be >> improved in this regard

Re: [PHP-DEV] strrchr with needle with multiple characters

2024-09-02 Thread Christoph M. Becker
On 02.09.2024 at 13:17, Vincent Langlet wrote: > I was today old when I discovered the big difference between strchr and > strrchr in the way they handle needle with multiple characters. > > It's explained in the doc https://www.php.net/manual/en/function.strrchr.php > - If needle contains more th

Re: [PHP-DEV] Pre-RFC Discussion: Support for String Literals as Object Properties and Named Parameters in PHP

2024-09-02 Thread Christoph M. Becker
On 02.09.2024 at 16:51, Mike Schinkel wrote: > Generally I am one who welcomes new feature ideas, but I fear that string > literals as object properties would break a valuable assumption that all > properties must be a valid identifier. Without that assumption I fear many > things that would be

Re: [PHP-DEV] Pre-RFC Discussion: Support for String Literals as Object Properties and Named Parameters in PHP

2024-09-02 Thread Christoph M. Becker
On 02.09.2024 at 19:35, Mike Schinkel wrote: >> On Sep 2, 2024, at 12:42 PM, Christoph M. Becker wrote: >> >> On 02.09.2024 at 16:51, Mike Schinkel wrote: >> >>> So I am sympathetic to the desire to improve the language. However I fear >>> this s

[PHP-DEV] Where to document configuration option changes?

2024-09-04 Thread Christoph M. Becker
Hi all, that issue came up the other day on a pull request[1], but since it is not particularly related to any single PR, I wanted to ask here for clarification. This is about changes to `./configure` options of php-src, and whether these should be documented in UPGRADING or UPGRADING.INTERNALS.

Re: [PHP-DEV] weird error when saving RFCs

2024-09-04 Thread Christoph M. Becker
On 04.09.2024 at 22:15, Rob Landers wrote: > I receive the following error when saving an RFC: > > There was an unexpected problem communicating with SMTP: Unexpected return > code - Expected: 250, Got: 554 | 554 5.5.2 <[i:p:v:6::addr]>: Helo command > rejected: invalid ip address > > From what

[PHP-DEV] Update OpenSSL *minor* version on Windows?

2024-09-05 Thread Christoph M. Becker
Hi all, I've mentioned this already in a pull request[1], but figure this should be discussed on the mailing list. Quoting myself from that PR: | PHP 8.4 is supposed to be supported until 31st Dec 2028, but OpenSSL | 3.0 will only be supported until 7th September 2026. This might even | be an is

Re: [PHP-DEV] Where to document configuration option changes?

2024-09-06 Thread Christoph M. Becker
On 06.09.2024 at 16:38, Remi Collet wrote: > Hi, > > Le 04/09/2024 à 15:04, Christoph M. Becker a écrit : >> Hi all, >> >> that issue came up the other day on a pull request[1], but since it is >> not particularly related to any single PR, I wanted to ask here fo

[PHP-DEV] Maintain Windows PHP dependency builds in a GH repo

2024-09-08 Thread Christoph M. Becker
Hi all, this is about the PHP dependencies for Windows which are available at . As is, new dependency builds are uploaded manually. This has a couple of problems: * only few people can do these uploads At first, that is a good thing, because ma

Re: [PHP-DEV] Maintain Windows PHP dependency builds in a GH repo

2024-09-08 Thread Christoph M. Becker
On 08.09.2024 at 16:58, Derick Rethans wrote: > On Sun, 8 Sep 2024, Christoph M. Becker wrote: > >> The upload could be as simple as a cron'd `git pull` on the server. > > All our websites, including PHP downloads, use the rsync server for > this. That server has a GIT

Re: [PHP-DEV] Discontinuing qa.php.net

2024-09-09 Thread Christoph M. Becker
On 09.09.2024 at 17:52, Derick Rethans wrote: > I am proposing to move all the content away from qa.php.net and merge it > into php.net Generally +1 on this. > - Documentation on how to write tests > (https://qa.php.net/write-test.php), and how to handle bug reports > (https://qa.php.net/han

Re: [PHP-DEV] Discontinuing qa.php.net

2024-09-09 Thread Christoph M. Becker
On 09.09.2024 at 22:50, Bilge wrote: > I mainly just reference https://qa.php.net/expectf_details.php. I also link > to this from https://github.com/ScriptFUSION/Pip. Keep in mind that PHPUnit > (secretly) supports the PHPT format and the QA site is the only > (un)official reference for its implem

[PHP-DEV] ext/gd: drop XPM support on Windows

2024-09-11 Thread Christoph M. Becker
Hi all, I'm in the progress of updating all libraries required for ext/gd on Windows. Since libxpm hasn't been updated for quite a while (we're still shipping libxpm 3.5.12), I've attempted updating to libxpm 3.5.17. However, besides the already existing mess of needing to fetch several X11 head

Re: [PHP-DEV] Maintain Windows PHP dependency builds in a GH repo

2024-09-11 Thread Christoph M. Becker
On 11.09.2024 at 15:51, Derick Rethans wrote: > On Sun, 8 Sep 2024, Christoph M. Becker wrote: > >> On 08.09.2024 at 16:58, Derick Rethans wrote: >> > > Ok, but I still don't see why you need an RFC for this? :-) Oh, I don't need an RFC for this. Actually, you

Re: [PHP-DEV] What to do with ext/snmp?

2024-09-11 Thread Christoph M. Becker
On 11.09.2024 at 16:04, Derick Rethans wrote: > But XML parsing is such an integral part of PHP, that this absolutely > should be in core. For *many* users, if it's not in core, they can't use > it. Or at least that used to be a big problem. We even made ext/json and ext/hash mandatory, so users

[PHP-DEV] Re: [INTERNALS-WIN] ext/gd: drop XPM support on Windows

2024-09-11 Thread Christoph M. Becker
On 11.09.2024 at 23:27, JB wrote: > The GD PHP extension defines "imagecreatefromxpm" functions. How do you > manage it if XPM support is disabled? Oh, wow, gd/config.w32 needs to be fixed (anyway). As is, if libxpm is not available, ext/gd can't be built, what makes no sense, since the code whi

Re: [PHP-DEV] Zephir, and other tangents

2024-09-11 Thread Christoph M. Becker
On 11.09.2024 at 22:43, Hammed Ajao wrote: > Your point about operator overloading doesn't seem valid either. Consider > the following: > > ```php > class X { > public function plus(X $that) {} > public function equals(X $that) {} > } > ``` > > In this case, `plus` could represent any beha

Re: [PHP-DEV] Re: [INTERNALS-WIN] ext/gd: drop XPM support on Windows

2024-09-12 Thread Christoph M. Becker
On 12.09.2024 at 06:46, Pierre Joye wrote: > I mentioned that long ago, but a maybe faster way to get windows ready > sources is vcpkg: > > https://vcpkg.roundtrip.dev/ports/libxpm > > only changes required are for static lib names, as we use _a to > differentiate. lib for dll or static links. Dr

[PHP-DEV] Re: [INTERNALS-WIN] ext/gd: drop XPM support on Windows

2024-09-12 Thread Christoph M. Becker
On 12.09.2024 at 00:03, Christoph M. Becker wrote: >> The GD PHP extension defines "imagecreatefromxpm" functions. How do you >> manage it if XPM support is disabled? > > Oh, wow, gd/config.w32 needs to be fixed (anyway). As is, if libxpm is > not available, ext/g

Re: [PHP-DEV] For discussion (no RFC for now) - more libcrypt bindings

2024-09-13 Thread Christoph M. Becker
On 13.09.2024 at 10:09, Remi Collet wrote: > For now, these are provided in the xpass extension. > Main issue is Windows. > > => https://pecl.php.net/package/xpass Yeah, it might be an issue to port this library to Windows. There is a vcpkg port[1], but only for Linux. I haven't had a closer lo

Re: [PHP-DEV] Proposal: Add support for interactive console application on Windows

2024-09-13 Thread Christoph M. Becker
On 13.09.2024 at 16:07, Sara Golemon wrote: > On Thu, Oct 12, 2023 at 6:50 PM Patrik Pasterčík wrote: > >> An analysis of other solutions, a detailed description of the problems >> and a proof of concept is in the proposal in the issue here: >> https://github.com/php/php-src/issues/12227 > > Resu

Re: [PHP-DEV] Maintain Windows PHP dependency builds in a GH repo

2024-09-13 Thread Christoph M. Becker
On 13.09.2024 at 11:42, Derick Rethans wrote: > On Wed, 11 Sep 2024, Christoph M. Becker wrote: > >> While the upload/download issue might be solved one way or the other, >> having a Git repository for the series files might solve a couple of >> issues. I've set up

Re: [PHP-DEV] Broken link at https://wiki.php.net/systems/vcs

2024-09-14 Thread Christoph M. Becker
On 14.09.2024 at 05:42, Krinkle wrote: > Per [1], there is a typo in the link at https://wiki.php.net/systems/vcs > > It points at the unreachable https://www.githib.com/php instead of > https://github.com/php > > [1]: https://wiki.php.net/systems/vcs?do=register This has been fixed in the meant

Re: [PHP-DEV] [RFC] Change Directory class to behave like an opaque object

2024-09-14 Thread Christoph M. Becker
On 14.09.2024 at 17:33, Gina P. Banyard wrote: > I came across the Directory class while doing some code exploration of > ext/standard. > This class is effectively an opaque object for Directory resources, however > it doesn't behave like one, as it has existed since PHP 4. > > As such, I am pro

Re: [PHP-DEV] Which IDE do you recommend for php-src development?

2024-09-15 Thread Christoph M. Becker
On 14.09.2024 at 23:44, Barel wrote: > […] One important feature > would be to easily work with the project running on a docker container You may be interested in . Christoph

Re: [PHP-DEV] Which IDE do you recommend for php-src development?

2024-09-15 Thread Christoph M. Becker
On 15.09.2024 at 12:22, Ilija Tovilo wrote: > On Sat, Sep 14, 2024 at 11:44 PM Barel wrote: > >> So which IDE would you recommend for php-src development? I understand that >> people probably have many different preferences but I wondered if there was >> something that most php internals develo

Re: [PHP-DEV] [RFC] Change Directory class to behave like an opaque object

2024-09-16 Thread Christoph M. Becker
On 16.09.2024 at 18:31, Derick Rethans wrote: > On Sat, 14 Sep 2024, Gina P. Banyard wrote: > >> I came across the Directory class while doing some code exploration of >> ext/standard. This class is effectively an opaque object for Directory >> resources, however it doesn't behave like one, as it

RE: [PHP-DEV] Patch: getters/setters syntax Implementation

2011-12-04 Thread Clint M Priest
a couple of convenience functions that may already be available in some other form I was not aware of, such as strcatalloc or MAKE_ZNODE(). --Clint -Original Message- From: Pierre Joye [mailto:pierre@gmail.com] Sent: Sunday, December 04, 2011 4:50 AM To: Clint M Priest Cc: internals@l

RE: [PHP-DEV] Patch: getters/setters syntax Implementation

2011-12-04 Thread Clint M Priest
emory footprint for storing two additional pointers for every class property? -Clint -Original Message- From: Felipe Pena [mailto:felipe...@gmail.com] Sent: Sunday, December 04, 2011 10:05 AM To: Clint M Priest Cc: Pierre Joye; internals@lists.php.net Subject: Re: [PHP-DEV] Patch:

RE: [PHP-DEV] Re: Patch: getters/setters syntax Implementation

2011-12-05 Thread Clint M Priest
/setters syntax Implementation 2011/12/4 Clint M Priest : > Updated patch w/o white-space: http://www.clintpriest.com/patches/accessors_v1.patch > > In the end it is a relatively simple patch. The new syntax > effectively creates internal functions on the object and the system loo

RE: [PHP-DEV] Re: Patch: getters/setters syntax Implementation

2011-12-06 Thread Clint M Priest
I prefer C# syntax myself but thinking about it, supporting both syntax's would be fairly trivial to add... Thoughts on that? -Original Message- From: Pierre Joye [mailto:pierre@gmail.com] Sent: Tuesday, December 06, 2011 5:47 AM To: Clint M Priest Cc: Rasmus Schultz; inte

  1   2   3   4   5   6   7   8   9   10   >