Re: [PHP-DEV] [VOTE] Deprecate and remove calls from incompatible context (with patch)

2013-02-05 Thread Alan Knowles
Attached should be a patch to illustrate the exception. (obviously needs some tests modified, or created) This removes the warning in the single situation where the calling scope and target scope share the same top level parent. eg. Traits without the baggage... I think this is a reasonable

Re: [PHP-DEV] [VOTE] Deprecate and remove calls from incompatible context (example of real usage that will break)

2013-01-30 Thread Alan Knowles
Top posting as the discussion was going a bit off topic. (Yes there was a vote, but the rfc could do with some refinements.) This is an illustration of the proposed change to the RFC, and the absurdity of how trait's allow incompatible scopes, and give no similar warning Example1 - illustrat

Re: [PHP-DEV] [VOTE] Deprecate and remove calls from incompatible context (example of real usage that will break)

2013-01-30 Thread Alan Knowles
Rebuttal inline... - and better solution at end... On Tuesday, January 29, 2013 01:46 PM, Stas Malyshev wrote: Hi! I've used this in other places, it's basically lightweight traits, and has always been perfectly valid code. There does not seem to be a clear justification for deprecating it oth

Re: [PHP-DEV] [VOTE] Deprecate and remove calls from incompatible context (example of real usage that will break)

2013-01-28 Thread Alan Knowles
On Monday, January 28, 2013 11:30 PM, Zeev Suraski wrote: Alan, Can you explain why you think it's a major BC break? The RFC suggested that the BC break would be minimal and that the likelihood a lot of people used it is very low. If you think differently and share it it might put it in a dif

Re: [PHP-DEV] [VOTE] Deprecate and remove calls from incompatible context

2013-01-28 Thread Alan Knowles
Regards Alan On Monday, January 28, 2013 11:01 PM, Gustavo Lopes wrote: On Mon, 28 Jan 2013 15:49:26 +0100, Alan Knowles wrote: I was trying to vote against, for what it's worth. It's a major bc break with no obvious value, and what appears to be 7 days given to vote when every

Re: [PHP-DEV] [VOTE] Deprecate and remove calls from incompatible context

2013-01-28 Thread Alan Knowles
t's pretty similar to Javascript, not sure why it would be so confusing. Sorry for being contrary, but i was a but shocked that this was.going to be removed Regards Alan Gustavo Lopes wrote: >On Mon, 28 Jan 2013 15:17:21 +0100, Alan Knowles >wrote: > >> my apologies

Re: [PHP-DEV] [VOTE] Deprecate and remove calls from incompatible context

2013-01-28 Thread Alan Knowles
Holy crap, how did you sneak this through.. my apologies for deleting the = vote, but i could not work out how to revert it. But this is a core php feature, for anyone who does not use traits We use this quite a bit, it may not be for purists, but it has worked perfectly for years. This is

Re: [PHP-DEV] strict compliance ...

2012-07-26 Thread Alan Knowles
I did start making fixes, but it drove me up the wall, the pointlessness and stupidity of this change... Eventually I just disabled E_STRICT in the bootstrap code... I think we should allow a free for all on commits to fix this, unless anyone objects... Regards Alan -- Sent from my Android ph

Re: [PHP-DEV] [RFC] skipping optional parameters

2012-04-17 Thread Alan Knowles
On Wednesday, April 18, 2012 06:54 AM, Stas Malyshev wrote: Hi! https://wiki.php.net/rfc/skipparams Basically, it allows you to do this: create_query("deleted=0", "name",,, /*report_errors*/ true); Implementation of it is here: https://github.com/smalyshev/php-src/tree/skip_params All things

[PHP-DEV] Pear mailing list

2012-04-14 Thread Alan Knowles
Can someone help out with the pear-cvs mailing list, either Daniel or Gwynne has made some serious change in the setup of packages on github. This is causing the list to get spammed by ~ 1000 per day at present by commit messages from migrated changes. It's probably just best to block github

Re: [PHP-DEV] Re: solving most git issues and questions

2012-04-14 Thread Alan Knowles
://wiki.php.net/vcs/gitfaq#multiple_working_copies_workflow On Sat, Apr 14, 2012 at 7:17 AM, Alan Knowles wrote: Saw this mentioned on one of the blogs comments today. http://nuclearsquid.com/writings/git-new-workdir/ It may be an easier to use for those working with multiple branches of PHP, and

Re: [PHP-DEV] Re: solving most git issues and questions

2012-04-13 Thread Alan Knowles
Saw this mentioned on one of the blogs comments today. http://nuclearsquid.com/writings/git-new-workdir/ It may be an easier to use for those working with multiple branches of PHP, and enjoy the multiple directory for each branch approach.. (aka old svn..) Regards Alan On Friday, April 13,

Re: [PHP-DEV] Catchable - marking methods just like static?

2012-04-04 Thread Alan Knowles
Reply inline.. On Wednesday, April 04, 2012 10:29 AM, Adam Harvey wrote: On 4 April 2012 10:02, Alan Knowles wrote: PHP enforces rules like $this can not be used in a method marked 'static'. So why not flag methods (and internal functions) with a flag that indicates they can th

Re: [PHP-DEV] Catchable - marking methods just like static?

2012-04-04 Thread Alan Knowles
response below... On Wednesday, April 04, 2012 10:59 AM, Rasmus Lerdorf wrote: On 04/03/2012 07:02 PM, Alan Knowles wrote: I just saw Daniel changing some of the PEAR classes to use Exceptions, and it's pretty clear that this could cause havoc with the end users. The problem being that the

[PHP-DEV] Catchable - marking methods just like static?

2012-04-03 Thread Alan Knowles
I just saw Daniel changing some of the PEAR classes to use Exceptions, and it's pretty clear that this could cause havoc with the end users. The problem being that there is no 'soft' landing for the migration process. Users switching code from return style error handling to exceptions are not

Re: [PHP-DEV] Scalar Type Hinting

2012-03-07 Thread Alan Knowles
Comment in-line below... On Wednesday, March 07, 2012 07:10 AM, Simon Schick wrote: Hi,: It got quite around that because we have some RFCs to this where the functionality seems to be defined as the people thought it should be. Otherwise they can raise their hands and write a mail that they wan

Re: [PHP-DEV] consider reverting E_ALL with E_STRICT

2012-03-06 Thread Alan Knowles
And the first time your network infrastructure has even a tiny hiccup you broadcast your database name/username/password to the whole world. Not an excellent business decision. I've yet to see a php notice / warning echo out a name/password etc... - anyway these are normally not public servic

Re: [PHP-DEV] consider reverting E_ALL with E_STRICT

2012-03-06 Thread Alan Knowles
ut it's a huge gotcha on upgrading. and should probably be promoted to this page. http://www.php.net/manual/en/migration54.incompatible.php Regards Alan On Wednesday, March 07, 2012 12:22 AM, Gustavo Lopes wrote: On Tue, 06 Mar 2012 17:08:07 +0100, Alan Knowles wrote: [...] However with

[PHP-DEV] consider reverting E_ALL with E_STRICT

2012-03-06 Thread Alan Knowles
I just got caught on a production server with the 5.4 upgrade on debian, pretty much everything works fine, except the E_ALL change. I have to admit I missed the discussion where it was added, and searching for E_ALL or E_STRICT on marc is pretty difficult (it removes the E_ bit..) Anyway, t

Re: [PHP-DEV] Fixing string offsets of strings.

2011-12-21 Thread Alan Knowles
lobals_004.phpt] unset() CV 7 (indirect unset() of global variable in import_request_variables()) [Zend/tests/unset_cv07.phpt] Regards Alan On Wednesday, December 21, 2011 10:23 PM, Alan Knowles wrote: The fix for the warning is to use 0, rather than -1 as the last argument for is_numeric_string(

Re: [PHP-DEV] Fixing string offsets of strings.

2011-12-21 Thread Alan Knowles
The fix for the warning is to use 0, rather than -1 as the last argument for is_numeric_string(), only in the zend_vm - isset code - it's a usefull warning when not used with isset. I'm just testing a patch and the related tests and will upload it to the bug soon. Regards Alan On Monday, De

Re: [PHP-DEV] Fixing string offsets of strings.

2011-12-17 Thread Alan Knowles
net/patch-display.php?bug_id=60362&patch=isset_changed_warning_only_on_access.patch&revision=latest> I did end up changing most of the error messages in the affected tests to "%s on line %d" is that the prefered way of doing it? Regards Alan On Sunday, December 18, 2011 12

Re: Re: [PHP-DEV] Fixing string offsets of strings.

2011-12-17 Thread Alan Knowles
I think I got what you where after - not to clear on the $s['offset'] should result in empty or 'o' This is the latest relivant patch https://bugs.php.net/patch-display.php?bug_id=60362&patch=fix_disabling_bad_string_offsets&revision=latest In that patch $s['offset'] would return an empty str

Re: Re: Re: [PHP-DEV] Fixing string offsets of strings.

2011-12-06 Thread Alan Knowles
I need to check b) will work with dereferencing and isset - but yes, I think it will probably be the best way to go for now. the NOTICE is probably just a missing 'E_' so it should be E_NOTICE - I had a typo there at one point. Regards Alan --- On 07/Dec/2011, Daniel Convissor wrote: > Hi Al

Re: Re: [PHP-DEV] Fixing string offsets of strings.

2011-12-05 Thread Alan Knowles
> Thanks so much for the patch. Looking at the source I noticed some > small things (care to build a bike shed with me? :). > > Many of the test EXPECT's have %d changed to hard coded line numbers and > others have %s changed to hard coded file names. In some of them, > that's all that changed

Re: [PHP-DEV] Fixing string offsets of strings.

2011-12-04 Thread Alan Knowles
aring opinions about it. Regards Alan what do you think? thanks On Mon, Dec 5, 2011 at 7:25 AM, Alan Knowles wrote: A few answers... $s = "string"; isset($s['offset']) returns false This is pretty critical, as it's the only way to detect this situation, and ensure

Re: [PHP-DEV] Fixing string offsets of strings.

2011-12-04 Thread Alan Knowles
AM, Laruence wrote: Hi: I have submit a new patch based on the origin patch, which only trigger notice when string offset cast occurred. thanks On Sun, Dec 4, 2011 at 10:25 PM, Laruence wrote: +1. thanks. On Sun, Dec 4, 2011 at 10:05 PM, Ferenc Kovacs wrote: On Sat, Dec 3, 2011 at 5:08

Re: [PHP-DEV] Fixing string offsets of strings.

2011-12-04 Thread Alan Knowles
nd/tests) pass (after they have been modified to suit the change) Please review / comment... Regards Alan On Sunday, December 04, 2011 12:08 AM, Alan Knowles wrote: I've had a look at making string offsets of strings a bit saner. At present with the fix for array dereferencing : ?searc

[PHP-DEV] Fixing string offsets of strings.

2011-12-03 Thread Alan Knowles
I've had a look at making string offsets of strings a bit saner. At present with the fix for array dereferencing : ?search=hello and a test like isset($_GET['search']['name']) results in true, which is has potential security problems and is very confusing for any programmer finding and worki

Re: [PHP-DEV] 5.4 regression: non-existent sub-sub keys now have values

2011-11-24 Thread Alan Knowles
On Friday, November 25, 2011 08:23 AM, de...@lucato.it wrote: On 24 November 2011 21:48, Rasmus Lerdorf wrote: On 11/24/2011 01:44 PM, Yasuo Ohgaki wrote: Hi all, I should think twice before seding mail. "abc" as array index is converted to 0 since it's not a integer. So with current code is

Re: [PHP-DEV] unsolved issues

2011-11-08 Thread Alan Knowles
Fixed that one. https://bugs.php.net/patch-display.php?bug_id=55475&patch=final_patch_for_5_4_and_HEAD_v2&revision=latest The alternative patch was to use the argument to enable/disable

Re: [PHP-DEV] is_a fix for 5.4 and HEAD

2011-10-18 Thread Alan Knowles
Supporting strings 'by default' in is_a() has the downside that it produces slightly unpredictable results. If you are accepting 'mixed' arguments, some of which may be strings, there is a slim chance that the string you accept will match the class or it's parent by accident. Personally if I d

Re: [PHP-DEV] is_a fix for 5.4 and HEAD

2011-10-13 Thread Alan Knowles
On Friday, October 14, 2011 08:06 AM, Rasmus Lerdorf wrote: On 10/13/2011 04:54 PM, Alan Knowles wrote: On Thursday, October 13, 2011 11:23 PM, Stas Malyshev wrote: On 10/13/11 12:39 AM, Alan Knowles wrote: Can someone apply this to HEAD and PHP_5_4, or let me have karma. https

Re: [PHP-DEV] is_a fix for 5.4 and HEAD

2011-10-13 Thread Alan Knowles
On Thursday, October 13, 2011 11:23 PM, Stas Malyshev wrote: On 10/13/11 12:39 AM, Alan Knowles wrote: Can someone apply this to HEAD and PHP_5_4, or let me have karma. https://bugs.php.net/patch-display.php?bug_id=55475&patch=final_patch_for_5_4_and_HEAD&revision=latest Tha

[PHP-DEV] is_a fix for 5.4 and HEAD

2011-10-13 Thread Alan Knowles
Can someone apply this to HEAD and PHP_5_4, or let me have karma. https://bugs.php.net/patch-display.php?bug_id=55475&patch=final_patch_for_5_4_and_HEAD&revision=latest Thanks Alan -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] is_a() fix applied to 5.4

2011-10-06 Thread Alan Knowles
Has anyone got objections to applying the 5.3 fixes to 5.4/head I can not see anyway to depreciate the existing behavior and give a E_DEPRECIATED warning to introduce in the current 5_4 behavior. If not I will sort it out next week. Patch: http://svn.php.net/viewvc/php/php-src/branches/PHP_5_

Re: [PHP-DEV] Backward Compatibility RFC - was Re: [PHP-DEV] Re: is_a() - again - a better fix

2011-09-24 Thread Alan Knowles
utoload testing have to put true at the end, and eventually can remove it after a few years. Regards Alan On Sunday, September 25, 2011 11:53 AM, Stas Malyshev wrote: Hi! On 9/24/11 7:00 PM, Alan Knowles wrote: Obviously I'd be keen to see this fix applied to 5.4 as the standard use case

[PHP-DEV] Backward Compatibility RFC - was Re: [PHP-DEV] Re: is_a() - again - a better fix

2011-09-24 Thread Alan Knowles
Obviously I'd be keen to see this fix applied to 5.4 as the standard use case for is_a() is mixed return testing as '$x instanceof "somestring"' does not work. I've drafted up a BC RFC, if anyone want to contribute - feel free to edit.. https://wiki.php.net/rfc/backwards_compatibility? The "id

Re: [PHP-DEV] Re: is_a() - again - a better fix

2011-09-22 Thread Alan Knowles
This patch adds an extra parameter 'allow_string' to is_a (default off) and is_subclass_of (default on) , https://bugs.php.net/patch-display.php?bug_id=55475&patch=Is_a_with_allow_string_argument_v3&revision=latest

Re: [PHP-DEV] Re: is_a() - again - a better fix

2011-09-21 Thread Alan Knowles
To clarify * Code changed to work around this change will not break if it is reverted. Basically it is to add is_object() before any call to is_a() * If left as is, there is reasonable potential for remote exploits in many codebases. * This change is not really in the wild yet, as pe

Re: [PHP-DEV] is_a() - again - a better fix

2011-09-20 Thread Alan Knowles
n for me. I think we understand both sides of the arguments for this, I would appreciate if we could get a vote together if it is that contentious. Regards Alan On Wednesday, September 21, 2011 07:38 AM, Ferenc Kovacs wrote: On Tue, Sep 20, 2011 at 11:54 PM, Alan Knowles wrote: Let's try a

[PHP-DEV] is_a() - again - a better fix

2011-09-20 Thread Alan Knowles
Let's try and close this one. https://bugs.php.net/bug.php?id=55475 I've just added a patch that adds is_class_of(), which is identical to is_subclass_of, and has the new feature of supporting strings and using the autoloader. It then reverts is_a() back to the previous behavior, and clarifi

Re: [PHP-DEV] Re: [PEAR] [ANNOUNCEMENT] DB_DataObject-1.9.6 (stable) Released.

2011-08-29 Thread Alan Knowles
or to make your configuration files and your base classes. Related Links - Package home: http://pear.php.net/package/DB_DataObject Changelog: http://pear.php.net/package/DB_DataObject/download/1.9.6 Download: http://download.pear.php.net/package/DB_DataObject-1.9.6.tgz Authors --

[PHP-DEV] is_a() consequences.....

2011-08-25 Thread Alan Knowles
I've committed the fixes for my two of my packages to support this change.. Who ever thinks this is such a great idea, could you kindly file bugs against all the packages below to request they fix their 'bugs' or verify the input http://pear.php.net/bugs/ Since the behaviour of is_a(

Re: [PHP-DEV] PHP 5.3.8 Released!

2011-08-24 Thread Alan Knowles
Some real history for the young ones ;) If you go all the way back to when is_a() was introduced, it appears that it was done to simplify the code in PEAR::isError, which basically did stuff like if is_object() and is subclass() or get_classname() == ... So the previous behavior was very lik

Re: [PHP-DEV] [Fwd: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_strtod.c]

2008-07-28 Thread Alan Knowles
Nuno Lopes wrote: I already expressed my opinion.. If you know what's the buggy gcc version, just fail at configure time if it's present. With a notice and reference to the bug number - so If people are stuck with that compiler they can see a work around... Regards Alan Nuno On Mon, Jul

Re: [PHP-DEV] GSoC Update (XDebug project)

2008-07-27 Thread Alan Knowles
Please be careful when using ExtJS - it has a GPL or proprietary only licence. - RooJS should be a plugin replacement for it. see: http://www.roojs.com/trac/ Regards Alan Chung-Yang(Kenneth) Lee wrote: I am Chung-Yang (Kenneth) Lee, a current master student in Indiana University Bloomington u

Re: [PHP-DEV] towards a 5.3 release

2008-07-02 Thread Alan Knowles
Lukas Kahwe Smith wrote: Aloha, Since Johannes has been stumped (and therefore not as visible as he would have hoped) with work and 5.3 CVS is already filled brim with awesome new features, I have been approached by several people wondering how we can speed up the process. I have always said

Re: [PHP-DEV] json_encode() bug

2008-04-18 Thread Alan Knowles
This should really be fixed similar to the iconv //IGNORE flag - so that bad characters are just replaced with '?' We use it to render spam email summaries, and dont really care if the encoding is incorrect, just as long as it shows something. Throwing a warning without having a fix/workarou

Re: [PHP-DEV] Re: PHP's Zend multibyte support

2008-03-24 Thread Alan Knowles
Reading through this, It looks like this is aimed at Big5/shiftJS/? maybe korean?? I know from HK and probably TW, who use Big5 (traditional chinese encoding), that it's pretty much been phased out with the introduction of unicode (basically AFAIR Windows 95/98/ME/NT chinese editions used the

Re: [PHP-DEV] [GSOC] Ideas?

2008-03-09 Thread Alan Knowles
I do think the wiki page needs some forwarding / segmenting.. etc. Who can/should contribute to it, (how it may not reflect the views of the php group..) Who 'owns' it in the end, and is going to delete proposals they think are a bit off-topic etc... Ideas from any .php net member relating to

Re: [PHP-DEV] [RFC] Replace the flex-based scanner with an re2c [1] based lexer

2008-03-03 Thread Alan Knowles
a few replaces with this file should be a good testcase - probably worth testing * comments with these character in them. both /* and // * string with these characters in them. lynx -source 'http://smontagu.damowmow.com/genEncodingTest.cgi?family=windows&codepage=950' | grep test | grep -v tes

Re: [PHP-DEV] [RFC] Replace the flex-based scanner with an re2c [1] based lexer

2008-03-02 Thread Alan Knowles
Can you clarify the Multibyte issues: - I presume this means that it can handle ASCII/UTF8/16 etc. but will not handle things like BIG5/GB encoding in source code - this may be a bit of an issue around here.. Regards Alan Marcus Boerger wrote: RFC: REPLACE THE FLEX-BASED SCANNER WITH AN RE2

Re: [PHP-DEV] Proposed feature for json_encode()

2007-12-03 Thread Alan Knowles
One thing to consider is changing json_encode to add a header Content-type: application/json (or x-javascript), unless the additional arguments are used.. That way someone using the function to intermingle with HTML will be faced with the fact they have to encode the output, otherwise it breaks

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

2007-08-13 Thread Alan Knowles
The two pages for reference. http://developer.mozilla.org/es4/spec/chapter_11_packages.html http://developer.mozilla.org/es4/spec/chapter_12_namespaces.html The spec's quite nice, although a bit of a nightmare to implement in parts ;) - From what I've seen, and I've not been keeping up with a

Re: [PHP-DEV] Re: google SoC - dbobj

2007-03-21 Thread Alan Knowles
Sounds interesting.. - You may want to reference these on your docs: http://pecl.php.net/package/DBDO http://www.akbkhome.com/wiki.php/DBDO/index.html http://www.akbkhome.com/svn/dbdo/ http://www.akbkhome.com/svn/dbdo_pdo/ While the project is pretty dead now, the API was pretty fully worked o

Re: [PHP-DEV] Date flamewar summary

2006-07-19 Thread Alan Knowles
+1 for adding the namespace patch in :) - oh well I can always dream... Regards Alan Ilia Alshanetsky wrote: Now that everyone had their say (I hope) I've made a quick tally of the votes so far: Rename date & timezone classes to DateTime and DateTimeZone respectively Tony Derick Mi

Re: [PHP-DEV] Missing __toString() part

2006-06-03 Thread Alan Knowles
$x = new Obj; $y[$x]= 123; That behaviour is going to be fun to document, and for people unfamilar with it to find in the manual -> php.net/array -> go to array syntax page -> read down to find about objects as keys -> go to __toHash() page... ..whereas... $x = new Obj; $y[$x->toHash()]= 123

Re: [PHP-DEV] Re: extension can not receive unset values without E_NOTICE or referencecreation

2006-05-28 Thread Alan Knowles
I think he's trying to solve the infamous issetor() in an extension... Regards Alan Wez Furlong wrote: Any uninitialized variable is a potential programmer error. Again, if you don't want the notices, turn them off. If you want "safe" code, turn them on and respect them. --Wez. On 5/28/06, R

Re: [PHP-DEV] planning future BC Breaks - was Re: [PHP-DEV] fatal static call in php 6.0?

2006-05-25 Thread Alan Knowles
actaully it should have been declare() - as I think the syntax for that almost works already, but yes, code doesnt get compiled if it's inside a block. Regards Alan Zeev Suraski wrote: > At 03:57 26/05/2006, Alan Knowles wrote: >> Can we start concentrating on finding a real

[PHP-DEV] planning future BC Breaks - was Re: [PHP-DEV] fatal static call in php 6.0?

2006-05-25 Thread Alan Knowles
Can we start concentrating on finding a real solution to BC breaks rather than throwing them out there and everyone complaining? define(php5) { stuff that breaks in php6 } define(php6) { stuff that doesnt work in PHP5 } It would be nice to back port this to PHP4, but at least make the futu

Re: [PHP-DEV] private, protected, readonly, public

2006-05-17 Thread Alan Knowles
Just to be complete ;) D: int hidden_name; public int the_var_name() { return hidden_name; } private void the_var_name(int s_value) { hidden_name = s_value; } ref: http://www.digitalmars.com/d/archives/56.html Regards Alan Jeff Moore wrote: On May 16, 2006, at 7:28 PM, D. Dante Lorenso w

Re: [PHP-DEV] Flamewar Summary

2006-05-16 Thread Alan Knowles
-1 on both here, E_STRICT can wait and dynamic static variables are pretty pointless, the workaround is clearer than the kludge.. StaticClass::$options['somekey'] = 'value'; Regards Alan Ilia Alshanetsky wrote: There are 2 PHP 5.2 changes there has been a lot of back and forth flaming going

Re: [PHP-DEV] private, protected, readonly, public

2006-05-13 Thread Alan Knowles
Definatly would love to see readonly, It would remove 1000's of lines of useless code from 100's of projects - which might make a few more public PHP projects readable ;) It replaces pointless giberish with something explicit clean and elegant.. Looks alot tidier than getters, or __get kludges.

Re: [PHP-DEV] phps line numbering

2006-03-16 Thread Alan Knowles
Not sure if it's a prefect solution, but this could easily be done: function hideNumbers() { var lists = document.getElementsByTagName('ol'); for (var i =0;i

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2) +1 Since I can see it's use, and I've already seen 101 ways to write spagetti code, so 102 ways isnt much different ;) Regards Alan Steph Fox wrote: I took that as (2) +1, (4) +1. Current raw totals amongst those who contribute to the PHP core: (1) +5.5, (2) +9.5, (3) +0, (4) 2 Still

Re: [PHP-DEV] JSON inclusion in core

I'm not sure that js->PHP is that critical (in terms of getting clever with objects etc), doing standard HTTP GET/POST requests with urlencoded values into $_GET/$_POST, 99% of the time is far more efficient way of sending data to the server, and alot easier to debug.. You can also implement th

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

this is not entirely true: token : "[WS]+?[WS]+" == conditional if seperater 1 token : "[WS]+:[WS]+" == conditional if seperater 2 token : ":[WS]+" == case/ if ($a == 5): / else: / endif; token : ":" == namespace stuff... eg. adding whitespace around the " : " and declaring that a token, rather t

Re: [PHP-DEV] Re: namespace separator ideas

This is getting kind of fun to read since we have unicode, perhaps we should use one of those characters ;) - I'm sure I can find a chinese character that means namespace for it ;) define('foo',1);define('bar',2);var_dump(foo<-bar); personally I would prefer ":" if it is at all feasible, (chang

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

This one's a bit more annoying than usual ;) It will basically break application that depends on the Date package (eg. most of my code as DataObjects uses it internally).. Do we really need another barrier to upgrade to 5.*? Regards Alan On Fri, 2005-11-25 at 07:55 +0100, Pierre wrote: > On Thu

Re: [PHP-DEV] PHP 6.0 Wishlist

How about running from serialized opcode memory block (rather than array of struct'd opcodes...), so writing a thread extension is alot easier ;) Oh well, I can always dream... Regards Alan On Fri, 2005-08-12 at 23:27 -0400, Marco Tabini wrote: > Hey Ilia, > > On 8/12/05 3:03 PM, "Ilia Alshanet

Re: [PHP-DEV] Re: RC1, instanceof?

On Mon, 2005-08-08 at 23:08 -0700, Andi Gutmans wrote: > You are wrong because __autoload() *is* called and you can load the class > on the-fly. The only problem is if the class does not exist in your code > base, in which case, your application should blow up! The basic point is that is_a() pro

Re: [PHP-DEV] class_exists and __autoload

This yet again illustrates the sillyness of autoload, if we are going to have a feature that autoloads classes it should be explicit in it's usage: autoload("Class_Name"); defaults to loading Class_Name.php ? if __autoload exists, it calls that.. adding all sorts of magic to the Class operators

Re: [PHP-DEV] while we're at it (PHP-5.1 & instanceof)

http://www.akbkhome.com/blog.php/View/75/removing+that+stupid+is_a +warning..html You're not the only one ;) Regards Alan On Wed, 2005-06-15 at 23:15 +0200, Michael Wallner wrote: > I already complained about that issue several times on IRC > and now that it's time for PHP-5.1 to come, I'll just

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

Svn broke it, the configure files for it should have been fixed now, so the build could try again now. It would be nice to add svn to the snapshots if possible. Regards Alan On Sun, 2005-05-08 at 19:14 +0100, Nuno Lopes wrote: > ups, forward to right list.. > > - Original Message - > >

[PHP-DEV] registering object constants leaking memory.

I'm using the code below to register object constants, however I'm getting a memory leak on the line shown.. , any ideas how to avoid this? /var/svn_live/dbdo/dbdo.c(401) : Freeing 0x0860FC34 (16 bytes), script=examples/info.php #define hash_add_assoc_long(__arg, __key, __val) hash_add_assoc_lon

Re: [PHP-DEV] __autoload() enhancement

I dont know if you read the blog comments here: http://www.akbkhome.com/blog.php/View/79/require_once+is+part+of+your +documentation..html and here http://www.akbkhome.com/blog.php/View/77/is+__autoload+evil%3F.html and slightly related http://www.akbkhome.com/blog.php/View/76/require_once%2C+one

Re: [PHP-DEV] seg fault in zend_hash (with bt)

Sputnik Agency > > t: +613 953 44 333 > f: +613 953 44 833 > m: 0422 790 661 > w: www.sputnikagency.com > > Level One > 31 Greeves Street > St. Kilda 3182 > -- Alan Knowles <[EMAIL PROTECTED]> -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Embedding, threads and execution of PHP

ain, I do not like it (there > are many echo and printf, for example, also, data, that is not required). > > What am I to do? > -- Alan Knowles <[EMAIL PROTECTED]> -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] How to embed PHP5 into multi-threaded C app?

d.c to get thread-safety out of the engine. Or am I on the wrong track? Bob On Feb 28, 2005, at 1:08 PM, Vadka wrote: On Mon, 28 Feb 2005, Alan Knowles wrote: these still need tidying up alot, but the do work. http://docs.akbkhome.com/php_embed.c.txt http://docs.akbkhome.com/php_embed.

Re: [PHP-DEV] How to embed PHP5 into multi-threaded C app?

these still need tidying up alot, but the do work. http://docs.akbkhome.com/php_embed.c.txt http://docs.akbkhome.com/php_embed.h.txt replace the code in php_embed with them, make sure you compile with the zts enabled, and the macros's are similar to the original embed (use threaded start call at

Re: [PHP-DEV] call_user_function in multithread env.

r_function(); > } > .. > > PHP_FUNCTION(oops){ > . > pthread_create(...func...); > } > -- Alan Knowles <[EMAIL PROTECTED]> -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] PDO questions

l's is a bit of a pain, that I've been putting off dealing with it this week. Regards alan On Thu, 2005-02-24 at 11:47 +0100, Ard Biesheuvel wrote: > stmt_get_col . .stupid evolution deleted stuff -- Alan Knowles <[EMAIL PROTECTED]> -- PHP Internals - PHP Runtime Devel

Re: [PHP-DEV] function proposal - php_check_syntax_string

I guess swapping out the compiler and executer globals before /after the compile call wont work? egs = executor_globals cgs = compiler_globals compile_string / file etc. efree(executor_globals); efree(compiler_globals); executor_globals = egs; compiler_globals = cgs; obviously if this is the ca

Re: [PHP-DEV] Extension DLL Objects

ow the coding is done or not as I'm > quite new to all this. > > - Original Message - > From: "Alan Knowles" <[EMAIL PROTECTED]> > To: "Chris Cranford" <[EMAIL PROTECTED]> > Cc: > Sent: Monday, February 14, 2005 9:09 PM >

Re: [PHP-DEV] Extension DLL Objects

> } > RETURN_NULL(); > } > > And how do I go about adding that "update()" function to my object to handle > a function > call to commit the object changes to the database? > > Thanks > Chris > -- Alan Knowles <[EMAIL PROTECTED]> -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: Please test PDO

It would be usefull if there was a shared struct for this in pdo core: eg. (in /ext/pdo/php_pdo_drivers_extras.h) (mysql_do_something_ptr *) mysql_do_something(pdo_stmt_t *,char * an_argument) pdo_driver_extras_mysql { mysql_do_something_ptr *mysql_do_something, } So th

Re: [PHP-DEV] beginer's questions for source code(1)

Regards Alan Any document would be fine. "Alan Knowles" <[EMAIL PROTECTED]> news:[EMAIL PROTECTED] Zend Thread Safety AFAIR, The Basics of the thread saftey stuff are using global arrays indexed on the thread id, rather than just plain globals (no thread safe builds, eg. f

Re: [PHP-DEV] beginer's questions for source code(1)

Zend Thread Safety AFAIR, The Basics of the thread saftey stuff are using global arrays indexed on the thread id, rather than just plain globals (no thread safe builds, eg. for apache or cli etc.) There are a few good books with introductions to Internals (Georges, Advanced PHP, is very good,

[PHP-DEV] Re: Off: [PEAR-DEV] PEAR base package docs broken

(moving to php-dev, just incase they know/spoted before/have better ideas.) ok - if this isn't a dl() issue - (it's 4.3.11-dev) you have a few options * compile with --enable-debug and see if there are any messages (rather than just segfaulting) * try making a small test script to recreate it.. -

[PHP-DEV] dl() usage for cli php5

I'm getting segfaults at shutdown when using dl() with my extension - works perfectly if it's in php.ini (or if I run when compiled with --enable-debug a) is this a known issue? b) is it fixable for cli usage? I'm guessing this is because modules are destroyed before the objects that they crea

[PHP-DEV] php4.3.11/5.0.4

any updates on the plan to release of these - I'm getting 1-2 emails/bug reports a day reporting the same problems with code broken by both 4.3.10 / 5.0.3 Regards Alan -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] PHP 4.3.10 & 5.0.3 Released!

Since all the CAN references are broken at present - this documents the bugs. http://groups-beta.google.com/group/muc.lists.bugtraq/browse_thread/thread/7c7ae6f328f28913?tvc=2&q=CAN-2004-1064 Regards Alan Ilia Alshanetsky wrote: PHP Development Team would like to announce the immediate release of

[PHP-DEV] Re: [PEAR-DEV] CVS karma

I'm not sure if it's [EMAIL PROTECTED] or [EMAIL PROTECTED] is the best place for this, but internals may help a bit.. unless they want to outsource the karma mgmt of pear stuff to one of the pear group ;) Regards Alan Jesper Veggerby Hansen wrote: Hi guys, Just wondering if anybody has been abl

[PHP-DEV] __sleep and hidden variables

I'm trying to serialize DBDO objects, which contain alot of hidden information at present, within the bound object. looking at the serialization code, it appears to only access the zval.value.obj.properties directly, rather than calling the property_read handler on the object. - are there any

[PHP-DEV] Attn: Val - you are bouncing all email :)

I think val's change password request is not working as his smtp server is being a bit to careful :) - try defer greylisting (it's more reliable than reverse lookups) Regards Alan This message was created automatically by mail delivery softw

[PHP-DEV] PHP5 __call() now requires __sleep/wakeup() ?

I got a message the other day, saying that my overloaded classes in PHP5 where not serializing. It appears that because PHP4 __call(), could return null to indicate that the function did not exist, a class without __sleep worked ok. However for PHP5, as __sleep is not defined, __call is sent th

Re: [PHP-DEV] Negative string offset support

echo $a{strlen($a)-1}; ? is that really that bad. I do worry that at present $a = "a string"; $p = 0 while( $p < strlen($p) ) .. do stuff that could do $p-- or $p++ echo $a{$p}; } at present that would produce a nice error if you went < 0.. easy to spot.. - if -ve was supported it could d

Re: [PHP-DEV] Re: streams file uri under windows

you could follow the nautilus standard for this and use smb://hostname/sharename/file.txt ? Regards Alan Rob Richards wrote: I ended up on this tangent only because file:/// support is needed (and from the looks of things is the prefered method for local files over using file://) and how I got st

Re: [PHP-DEV] Fwd: pdo [was Re: [PHP-DEV] PHP 5.1 roadmap]

A few suggestions.. -- Fetching into objects: This really needs to be sorted out early on, and kludging support for something that perhaps should be the default behavour is looking very messy: a) if you want to fetch into a specific class, make that class extend PDO... clas

  1   2   >