[PHP-DEV] Re: [Zend Engine 2] FYI: PHP/threads

2003-03-05 Thread Alan Knowles
Timm Friebe wrote: I've been playing around with the (not new) idea of introducing threads into PHP userland (maybe something to think about havin in PHP6?). What came out of it is available at [1], offering an object oriented API (in comparison to PECL/threads [2]). -one of the reasons to not

Re: [PHP-DEV] parser generator for php

2003-02-26 Thread Alan Knowles
Pete James wrote: I hope that this is not the wrong venue for this. I've seen references to questions about this before, but is there any tool similar to yacc, written in php? It's not written in PHP - but it generates PHP code have a look at http://php-sharp.sourceforge.net In CVS is phpLex a de

Re: [PHP-DEV] Mono & PHP

2003-02-03 Thread Alan Knowles
I'm having fun with it :) /usr/src/php/php5/ext/sockets/php_sockets.h:89: conflicting types for `SOCKET' /usr/include/mono/io-layer/uglify.h:38: previous declaration of `SOCKET' also had a bit of trouble with mono's exception.h including config.h (which wasnt installed into the bulid stuff) (ha

Re: [PHP-DEV] Reducing the number of system calls for includes

2003-01-24 Thread Alan Knowles
Apart from tidying up the include stuff.. - for this specific case, is it worth cosidering precompiling all the files into a single bytecode file?, thats what bcompiler ends up doing for classes.. etc. then manually indicate that you want to recompile the bundle, I'm guessing the actual PHP cod

Re: [PHP-DEV] $this scope (was T_PAAMAYIM_NEKUDOTAYIM)

2002-12-16 Thread Alan Knowles
It would be usefull to have a direction on this, - It's come up a number of times in bug reports. It has a number of uses (primarily breaking large classes up, into smaller components..), and a clearer way to write code than using a huge inheritance tree.. - It may not be correct OO code, by th

[PHP-DEV] PHP# - feasibility study so far - for comment

2002-12-15 Thread Alan Knowles
I've just put up a short description of the current state of the research on the feasibility on PHP#, developing a .net CIL bytecode compiler for PHP. If anyone wants to add 'constructive comments' to it, please fire away.. http://www.akbkhome.com/Projects/PHP_Sharp (you'll have to click throu

Re: [PHP-DEV] pecl extensions

2002-12-02 Thread Alan Knowles
Brad LaFountain wrote: I know I'm going to piss people off by asking this but how do I create a new pecl package? I think I want going to put php_opengl in there. See if gets anymore use. upload it to pear/PECL/opengl.. (You should have karma for that already) you nead a pear account re: the

Re: [PHP-DEV] Compile error in tokenizer ext with ZE2 4.3 branch

2002-12-01 Thread Alan Knowles
Andi fixed it in CVS, try checking out downloading tokenizer.c again. Magnus Määttä wrote: From 4.3 branch with ZE2 i get this compile error: /bin/sh /opt/DEV/php/php430/php4/libtool --mode=compile gcc -Iext/tokenizer/ -I/opt/DEV/php/php430/php4/ext/tokenizer/ -DPHP_ATOM_INC -I/opt/DEV/php/ph

Re: [PHP-DEV] is_*

2002-11-13 Thread Alan Knowles
have a look at the validate package in pear. Regards Alan |-Original Message- |From: [EMAIL PROTECTED] [mailto:nicos@;php.net] |Sent: Wednesday, November 13, 2002 9:46 PM |To: [EMAIL PROTECTED] |Subject: [PHP-DEV] is_* | | |Hello, | |After having helped many users, I just thought

Re: [PHP-DEV] prototypes for getters and setters.

2002-11-13 Thread Alan Knowles
Actually looking at this in more detail, the solution PHP has infers that using $object->XXX='somevar' is heavily prefered over getXXX()/setXXX(), kind of against the grain for a classic OOP language (from the impressions have read), As refactoring (which is often the logic cited for setXXX()/g

Re: [PHP-DEV] prototypes for getters and setters.

2002-11-12 Thread Alan Knowles
should simply be used to get and set member variables)... John |-Original Message- |From: Shane Caraveo [mailto:shane@;caraveo.com] |Sent: Tuesday, November 12, 2002 10:04 PM |To: Alan Knowles |Cc: [EMAIL PROTECTED] |Subject: Re: [PHP-DEV] prototypes for getters and setters. | | |Alan K

Re: [PHP-DEV] prototypes for getters and setters.

2002-11-12 Thread Alan Knowles
Shane Caraveo wrote: Anyway before I get carried away and actually test this :) - anybody got any thoughts. Regards Alan What's wrong with how overload does this? it has a slight downside in clarity of code - eg. where is that method.. SHane -- PHP Development Mailing List <

[PHP-DEV] prototypes for getters and setters.

2002-11-12 Thread Alan Knowles
Thanks to a little chat (and a few beers) with Zak at the conference, I got wondering if this syntax would be a sensible addition... The principle is to enable rapid prototyping of getter and setter methods. class something { var getBanana setBanana $banana = 12; var getOrange $orang

Re: [PHP-DEV] Karma for php4 and bcompiler

2002-10-29 Thread Alan Knowles
fixes I want to have karma to help fix some bugs/improvements into php and into bcompiler for win32 that is my speciallity. I've already did a compile with windows but now I need to add some more functionalities. Alan Knowles already said to me to keep in touch. Thanks, Ernani -

Re: [PHP-DEV] I hope this is the last email about this :) (was RFC:CLI behave like SH or PERL/RUBY/PYTHON?)

2002-10-23 Thread Alan Knowles
Im +1 for reverting the patch - (for what it's worth) Why? Well - most 'average' (and below) PHP programmers when attempting to do CLI programming, will get a serious WTF reaction from wondering why when they 'echo' stuff, it doesnt appear. The more advanced Users can manually turn off flushing

Re: [PHP-DEV] Re: RFC: CLI behave like SH or PERL/RUBY/PYTHON?

2002-10-22 Thread Alan Knowles
To try and clarify... (B (B#!/usr/bin/php -q (B (B (BWould this be affected by the change? - eg. would you need to flush(); (Bbefore the prompt appeared? (B (BRegards (BAlan (B (B (B (BYasuo Ohgaki wrote: (B (B>BTW, this is 2nd time (B> (B>http://marc.theaimsgroup.com/?l=php-dev&m=

Re: [PHP-DEV] Work is beginning on cURL and PHP again

2002-10-21 Thread Alan Knowles
Non blocking connections would be nice... - On the generating stuff - why do you want to generate the code on the users system? - all the re2c stuff in CVS is 'pre-genereated' It would be nice to have extension generator that could be built upon, that didnt involve re-reading all those perl/awk

[PHP-DEV] zip extension fixes (cause it's totally borked :)

2002-10-16 Thread Alan Knowles
attached fixes should enable the zip extension to a) build, b) build as a module want to give me Karma (or patch it in) Regards Alan ? .libs ? Makefile ? Makefile.fragments ? Makefile.global ? Makefile.objects ? acinclude.m4 ? aclocal.m4 ? autom4te.cache ? build ? config.cache ? config.guess

Re: [PHP-DEV] zend_compile.h patch

2002-10-16 Thread Alan Knowles
erit call (it's never used) = however it will need including eventually... zce->parent always evaluates to NULL... >Edin > > >----- Original Message - >From: "Alan Knowles" <[EMAIL PROTECTED]> >To: "Edin Kadribasic" <[EMAIL PROTECTE

Re: [PHP-DEV] zend_compile.h patch

2002-10-16 Thread Alan Knowles
Edin Kadribasic wrote: >Any objections to exporting another function from zend_compile.h by >applying this patch? I need this in order to compile >pear/PECL/bcompiler on Windows. > >Edin > actually it's not needed 'at present' cause the compiled bytecodes do not use inheritance (as the compiled

Re: [PHP-DEV] Bug handling survey - Tree based models

2002-10-09 Thread Alan Knowles
Jan Lehnardt wrote: >Hi, >On Wed, Oct 09, 2002 at 09:38:46AM -0500, Gunes Koru wrote: > > >>Hello PHP contributors, >> >> >didn't we agree not to do that again? > Well he did shorten his signature - so we are getting somewhere - slowly :) > >Jan > > -- PHP Development Mailing List

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /main output.c

2002-10-02 Thread Alan Knowles
Yasuo Ohgaki wrote: > Sebastian Bergmann wrote: > >> Yasuo Ohgaki wrote: >> >>> yohgaki Mon Sep 30 22:43:33 2002 EDT >>> >>> Modified files: >>>/php4/main output.c >>> Log: >>> Fixed implicit flush. >> >> >> >> This commit broke my script, that I mentioned before, again. It now

Re: [PHP-DEV] php/embed

2002-09-29 Thread Alan Knowles
Going on a 'semi-consistant' naming structure on unix, would libphp.so.4.3.0 (softlinked to libphp.so) be an idea. this should be really good when working with bcompiler_load_exe() :) Regards Alan Edin Kadribasic wrote: >On Sunday 29 September 2002 11:45, [EMAIL PROTECTED] wrote: > > >>On S

Re: [PHP-DEV] Apache 1.3, PHP and TSRM question

2002-09-28 Thread Alan Knowles
Are you dl('')'ing and modules, - I think Zeev pointed me to a known bug with this if you have a memory leak from a dl'ed module it will crash on this type of debugging code (I think the filename gets freed when you unload the module at shutdown, and hence filename points to an out of bounds

Re: [PHP-DEV] simple question

2002-09-17 Thread Alan Knowles
knight wrote: >I was wondering if one(not all) of you could tell me how to view the source >code for a particular php function. > >maybe there is somewhere I should look to find this information... I just >don't know where to start. > http://www.php.net/manual/en/zend.php lxr.php.net grep for P

Re: [PHP-DEV] highlight_file modification

2002-09-11 Thread Alan Knowles
I know it's a bit of a radical suggestion, but would depreciating highlight_string in favour of a pear package using the tokenizer not be a better approach. is there any reason to keep this in C? Anyway, just throwing a few stones into the water Regards Alan Devon O'Dell wrote: > Hey, >

Re: [PHP-DEV] DIO dio_tcsetattr problem

2002-09-10 Thread Alan Knowles
>>> >>> >>it was added in 4.3 about 3 weeks ago. - If somebody wants to tell me >>how to add the 'since 4.3-dev' note to the manual, it might help... >> >> > >Hmm .. there's not '-dev' .. you either write CVS or 4.3.0 as >the release it is available in. > > I added a note a

Re: [PHP-DEV] DIO dio_tcsetattr problem

2002-09-10 Thread Alan Knowles
DJ Anubis wrote: >This is a very interesting function which could help in some developments. >But sounds dio_tcsetattr diseappeared from php-4.2.2. I browsed the source but >couldn't find it. in the source tree. > it was added in 4.3 about 3 weeks ago. - If somebody wants to tell me how to ad

Re: [PHP-DEV] Re: sockets extension

2002-09-09 Thread Alan Knowles
> > >Experminatal 10 to 16 months: >--- >dio, w32api, xml rpc, ncurses, pcntl, xslt > dio - appears mostly stable = hell it's going in an embedded box here:) its a straight map direct unix io stuff to php, so the api will probably not change, just grow slightly?? So

Re: [PHP-DEV] include function in php source

2002-09-08 Thread Alan Knowles
eminent wrote: > Hi everyone, > i have to manipulate include function inside php source code to > satisfy my needs. it has to be configured, i think, with something > like PHP_FE(include .) > my problem is that i can't find where it is inside the php source > tree. i mean that i don't know

Re: [PHP-DEV] Persistant global objects: WAS: RE: [PHP-DEV] ZendEngine2availability

2002-09-05 Thread Alan Knowles
I forgot msession extension. http://www.mohawksoft.com/phoenix/msession.html the rpc extension may also be of interest - (not know the code that well, I'm guessing it may be able to provide a more efficient object serialization), although I doubt that the current string method is really that ba

Re: [PHP-DEV] Persistant global objects: WAS: RE: [PHP-DEV] ZendEngine2availability

2002-09-05 Thread Alan Knowles
Sounds like a job for srm... http://www.vl-srm.net/ Obviously other options include SOAP servers.. etc. or just using shm and storing a serialized object in there. or use a ramdisk. Something like this is difficult since php normally is not run threaded (eg. apache/cgi...) at the moment,

Re: [PHP-DEV] largest value of the 2nd parameter in fgets function

2002-09-05 Thread Alan Knowles
Please use the php-general for questions like this. - see http://www.php.net/fread Regards Alan Terence Lee wrote: >hello > >i've tried to read a line from a text file by fgets($fp,8192). it work >fine. however, there is a line over 8192 char and i tried to increase >the 2nd parameter (e.g. 8

Re: [PHP-DEV] FOR ALAN: bcompiler

2002-09-04 Thread Alan Knowles
[EMAIL PROTECTED] wrote: > Hi, > i have tried bcompiler and read the installing instructions. i unpack, > run phpize, run buildconf and configure (using --with-bcompiler) but i > get a sitax error on line 11094 in configure and the execution aborts. > have you any suggest? It's probably bette

Re: [PHP-DEV] php script compilation

2002-09-04 Thread Alan Knowles
[EMAIL PROTECTED] wrote: > hi everybody, > does anyone know if there is any opensource tool for compiling or > bytecoding a php script? i know there is zend compiler but it costs > too much. thanks > Massimo > pear.php.net - look for bcompiler (very experimental) based on the compiler in apc (h

Re: [PHP-DEV] cgi and mod_php (phpize)

2002-08-28 Thread Alan Knowles
On a related subject, one that has been bugging me alot recently is phpize & include dir's I run 4.2* as apache mod, and 4.3-dev as cli, now when it comes to building modules I have to go back to the build directories and reinstall phpize each time. I know I could change --prefix=, but it wou

Re: [PHP-DEV] Bison, Flex To Output PHP parser/compiler.

2002-08-22 Thread Alan Knowles
Johan Jordaan wrote: >Hi, > > I'm new to this list, so hi to everybody out there :) > > I think this msg would be reaching the intended audience, but if I'm >wrong let me know :) > It's probably not a bad audience :) > I've been playing around with flex/bison a little the last couple of >days

Re: [PHP-DEV] Interfaces in PHP

2002-08-21 Thread Alan Knowles
Wez Furlong wrote: >class C { > delegatee $foo = new IFoo(); // "implements" IFoo by delegation > delegatee $bar = new IBar(); // "implements" IBar by delegation >} > I didnt see anyone suggest this as an alternative to the delegatee syntax, - it just a bit clearer to read (to me anyway..) c

Re: [PHP-DEV] Interfaces in PHP

2002-08-20 Thread Alan Knowles
From my reading of delegation, it's really overloading, worded slightly differently.. - but not that related to interfaces... In the example below, which is a php'ized version of a C# demo, the advantages of using interfaces (as far as I know) are primarly useful for COM or CORBA, where it wo

Re: [PHP-DEV] PATCH: debug_backtrace() function for 4.3-dev/ZE1

2002-08-18 Thread Alan Knowles
One another suggestion a change in ZE1 that would ease transition to ZE2. making $object->__clone() work on ZE1 (eg. parse equivalant to $object) , (without having to add it to all classes that are likely to need it).. would at least enable code written for ZE1 work with ZE2.. and visa versa

Re: [PHP-DEV] Parent _LINE_ Request

2002-08-15 Thread Alan Knowles
have a look at xdebug, or similar which does backtraces I think PHP5 will do this as well.. regards alan Richard Thomas wrote: >I have a set of universal DB wrappers that I use for most of my >projects. The great thing about these wrappers, they auto manage your >connection so connecting to 2

Re: [PHP-DEV] Re: adding tcsetattr to dio extenstion

2002-08-15 Thread Alan Knowles
can somebody give me karma to add this.. and probably karma for phpdoc/en/reference/dio/functions (or similar) regards alan regards alan Sterling Hughes wrote: >>attached is a patch to add tcsetattr() to the dio extension >> >>any objections/suggestions for it.. >>for some reason if I do O_AS

Re: [PHP-DEV] trans-sid warning?

2002-08-14 Thread Alan Knowles
Can we not document the real issues about this in the manual, and just say something like There are security issues in using any type of sessions with HTTP, please read the manual at http://www.php.net/en/manual/security.sessions.html for a more detail discussion on this subject.. regards Alan

Re: [PHP-DEV] pcntl - class callbacks // dio ASYNC

2002-08-12 Thread Alan Knowles
s OK if you connect the signals after forking. regards alan > >-Jason > > >On Thu, 2002-08-08 at 02:49, Alan Knowles wrote: > > >>this efree needs removing.. >> >> >> >>> >>>+ >>>+

Re: [PHP-DEV] phpthreads - hints anyone...

2002-08-03 Thread Alan Knowles
Ok, had a play with this updated copy on http://docs.akbkhome.com/threads.tgz added a few of pthreads calls to TSRM.c did most of the testing without this abstraction layer - just to see if I could get it to work. used php_exectute_script, rather than getting clever and copying the function/c

Re: [PHP-DEV] phpthreads - hints anyone...

2002-08-01 Thread Alan Knowles
> > It's not about looking at the perl code, that will tell you nothing > unless you know perl internals. It's about the way the interpreter > works, some of the architecture, that is simular to PHP. In PHP, > threads are isolated, kind of like seperate processes, but in threads. From my u

Re: [PHP-DEV] phpthreads - hints anyone...

2002-07-31 Thread Alan Knowles
Ok, had a slight play with it again.. I did eventually find the perl code for threading although without an lxr server it's pretty much impossible to decipher all the macros they use.. The reality is I'm waving in the dark a bit - I've got a bit of spare time to play with it, but not really

Re: [PHP-DEV] phpthreads - hints anyone...

2002-07-31 Thread Alan Knowles
Shane Caraveo wrote: > Alan Knowles wrote: > >> Im looking at adding threading to php, (for the cgi/cli stuff).. >> >> The story so far: >> >> I've created an extension which diverts all zend_execute calls into >> the extension -> phpthreads_e

[PHP-DEV] phpthreads - hints anyone...

2002-07-31 Thread Alan Knowles
Im looking at adding threading to php, (for the cgi/cli stuff).. The story so far: I've created an extension which diverts all zend_execute calls into the extension -> phpthreads_execute. this function is a copy of zend_execute with a few modifications - to copy & restore things like EG(active

Re: [PHP-DEV] returning arrays

2002-07-25 Thread Alan Knowles
Marco Glatz wrote: >hi there, > >i have an extension with a funtion that should return an array, but my array >is empty ?. > > >-- snip -- > >ZEND_FUNCTION(foo) >{ > zval *tmp_array; > > MAKE_STD_ZVAL(tmp_array); > > array_init(tmp_array); > array_init(return_valu

Re: [PHP-DEV] Patch suggestions for PHP 4.2.3 (tokenizer)

2002-07-24 Thread Alan Knowles
This would be nice to get into 4.2.3 - at least the tokenizer would be usable in a release version :) http://cvs.php.net/diff.php/php4/ext/tokenizer/tokenizer.c?r1=1.8&r2=1.9&ty=h&num=10 for bug : http://bugs.php.net/bug.php?id=16939 regards alan

[PHP-DEV] Re: [Zend Engine 2] can I have my delete back? :) - patch attached

2002-07-06 Thread Alan Knowles
Yeah, one of the main reasons for requesting it was that like shanes sybase class midgard also uses delete as the row deletor, - this doesnt really affect midgard as the method is defined in the php extension, not the php, however when I wrote DB_DataObject, and midgard lite, to take advantage

[PHP-DEV] can I have my delete back? :) - patch attached

2002-07-05 Thread Alan Knowles
Attached hopefully is a patch to allow method names called delete .- not functions though.. Speedwise it should not affect performance as its a very small compile time issue.. this would save me an a few others a bit of pain :) thoughts regards alan Index: zend_language_parser.y ==

Re: [PHP-DEV] PHP Extension Help

2002-06-26 Thread Alan Knowles
this is a good starting place http://www.php.net/manual/en/zend.php although it doesnt cover the class stuff that well (which can be done : ming, domxml, gtk, xmms - to name a few that do it ) - for a nice example have a look at the xmms extension http://cvs.php.net/cvs.php/pear/PECL/xmms Thi

[PHP-DEV] php bytecode compiler

2002-06-26 Thread Alan Knowles
I've just been playing building a php bytecode compiler - based off of the apc serialize code. - made it thread safe and made it as a php extension that reads/writes streams - so it only works with 4.3-dev.. the tarball is at http://docs.akbkhome.com/bcompiler-0.1.tgz source files are here: ht

Re: [PHP-DEV] html tokenizer to add to tokenizer?

2002-06-14 Thread Alan Knowles
002-06-12 at 14:26, Alan Knowles wrote: > > >>Attached hopefully is the re2c source for a html tokenizer - I added it >>to tokenizer.c - any thoughts on inclusion? >> >>regards >>alan >> >> >> >> >> > > > >>e

Re: [PHP-DEV] understanding resources

2002-06-13 Thread Alan Knowles
http://www.php.net/manual/en/zend.variables.resource.php - Im sure thats improved alot since I first read it :) regards alan fabwash wrote: >Something went wrong in the format of my message! > >It should read: > > > >>ZEND_FETCH_RESOURCE(resource_ptr, resource_struct *, resource_id, -1, >>"

[PHP-DEV] html tokenizer to add to tokenizer?

2002-06-12 Thread Alan Knowles
Attached hopefully is the re2c source for a html tokenizer - I added it to tokenizer.c - any thoughts on inclusion? regards alan enum { STATE_PLAIN = 0, STATE_TAG, STATE_NEXT_ARG, STATE_ARG, STATE_BEFORE_VAL, STATE_VAL }; /*!re2c any = [\000-\

Re: [PHP-DEV] feature request for __LINE__, __FILE__ andtrigger_error

2002-04-25 Thread Alan Knowles
__LINE__ , __FILE__ (and now __FUNCTION__ & __CLASS__) are converted at compile time into a string - have a look at zend/zend_language_scanner.l for more details. regards alan Michael Virnstein wrote: >A short question on this: >how about __LINE__? >doesn't this also require runtime context

Re: [PHP-DEV] The PHP Platform

2002-04-16 Thread Alan Knowles
I know this is going nowhere :) but anyway - its late here and I've got a few secs to kill Ask your boss, how often has he done a project using microsoft tools, and its been seriously delayed because they found a serious bug in the microsoft tools, that had to be worked around.- if he answ

Re: [PHP-DEV] FRC: pg_metadata, pg_convert, pg_insert, etc

2002-04-10 Thread Alan Knowles
sounds really nice.. would it be possible to accept objects as well as arrays? how does it know if the update column should be an integer or string - eg. '12' or 12 ? - is that what the meta data is for? regards alan Markus Fischer wrote: >Can you elaborate more on the mystic 'metadata' an

Re: [PHP-DEV] __CLASS__ patch - use $__THIS__ or class_get_called_name()?

2002-04-05 Thread Alan Knowles
Zeev Suraski wrote: > This should really be implemented 100% in compile time, if you touch > zend_execute.c, BUZZ :) > Anyway, incidentally, Jani implemented this very patch a few days > ago. We'll probably import it within a couple of days after we verify > that it doesn't cause any gotcha's

Re: [PHP-DEV] __CLASS__ patch - returns called class

2002-04-05 Thread Alan Knowles
Any chance of sneeking this one in :) - patch attached usage: test(); ?> prints testclass2 testclass2 extremely usefull for building mulitiple extendable constructors. regards alan diff -b -B -r -u php-4.2.0RC2/Zend/zend_compile.h ALAN_Zend/zend_compile.h --- php-4.2.0RC2/Zend/zend_compile

[PHP-DEV] getting the called name from a static method - extending zend_function?

2002-04-03 Thread Alan Knowles
This is what I was trying to do, class master { function static_test($var) { $class = get_class() <- this wont work obviously :) $ret = new $class(); $ret->get($var); if (!$ret->N) return; return $ret; } } class slave extends master { function

Re: [PHP-DEV] DB Abstraction - db_oo - the query builder

2002-03-31 Thread Alan Knowles
As a side note to this, I did another major overhall to my query builder/ simplified db access layer, db_oo - and put up a small amount of documentation, although there is a small amount of mysql dependance in there, it's not impossible to remove... http://www.akbkhome.com/Projects/db_oo%20-%2

[PHP-DEV] Re: Bug #16232 Updated: remalloc FAIL on CURLOPT_HEADERFUNCTION callback

2002-03-23 Thread Alan Knowles
patch attached regards alan [EMAIL PROTECTED] wrote: > ID: 16232 > Updated by: [EMAIL PROTECTED] > Reported By: [EMAIL PROTECTED] >-Status: Open >+Status: Feedback > Bug Type: cURL related > Operating System: linux > PHP Version: 4.0CVS-2

Re: [PHP-DEV] Floating point comparisons - A fix

2002-03-19 Thread Alan Knowles
wouldnt ~== ,~>, ~<, ~>= etc. be relivant here - from what I remember of maths, (to long ago) ~ was the symbol for similar (and 2 together for approximatly equal) - hey even found a reference for it... http://www.gomath.com/htdocs/ToGosheet/algebra/mathsymbols.html the only thing is it wo

[PHP-DEV] Re: [PEAR-DEV] Improving speed -> caching hash results in zend_execute?

2002-03-18 Thread Alan Knowles
be an idea to cache in the opcode for the function call the result of the last hashtable lookup, then check if that lookup was valid first rather than doing a hashtable lookup on each call? (or am I talking out my ass :) regards alan Tomas V.V.Cox wrote: >Alan Knowles wrote: > >>

Re: [PHP-DEV] Vote on New Build System

2002-03-07 Thread Alan Knowles
I presume that the old PHP_EXENTSION() still works in V5 so modules outside the php tree can keep using it? ... and put in dnl PHP_EXENTSION_NEW. so it's V5 ready... regards alan > > >On Thu, 7 Mar 2002, Sascha Schumann wrote: > >>I'd like to get some input on the new build system.

Re: [PHP-DEV] [PROPOSAL] defense against session takeovers

2002-02-01 Thread Alan Knowles
based on something nasty i did with cookies a while back Session id [][bb] eg. first 32? chars are the standard md5, the remainder is a variable length key. aaa - the standard session id. (eg. the filename) bbb - an simple key overlay say the session file contains '

Re: [PHP-DEV] Optional source scrambeling

2002-01-30 Thread Alan Knowles
Jerrett Taylor wrote: >I agree.. Also if you have a way of distributing binarys, you can >release the source with it.. Much like a lot of people do already with >binaries for *nix .. > >That way you have a binary, that people can use/run without hacking it >apart, and coming back to you with "I

[PHP-DEV] pthread & thread support : issues?

2002-01-21 Thread Alan Knowles
After spending yesterday looking at the pcntl library, I did at one point attempt to get create_thread going, It didnt get very far, (it segfaulted on emalloc - perhaps because thread_init had not been called) but I did start wondering about the feasibilty.. Has anybody ever attempted it? The

Re: [PHP-DEV] Fixes for pcntl - class support. (patch attached)

2002-01-21 Thread Alan Knowles
Looks like mozilla buggered up the attachment. Alan Knowles wrote: > Well, after half a dozen bug reports that didnt actually work... - > this one should, could somebody comment/commit etc. > > The patch includes a number of changes... - > pcntl_zend_extension_active does n

[PHP-DEV] Fixes for pcntl - class support.

2002-01-21 Thread Alan Knowles
Well, after half a dozen bug reports that didnt actually work... - this one should, could somebody comment/commit etc. The patch includes a number of changes... - pcntl_zend_extension_active does not appear to be getting set when using modules this little magic trick to get the zval stored in t

Re: [PHP-DEV] RFC: Moving documents in source

2002-01-20 Thread Alan Knowles
Just a little suggestion :) >> >>GETTING MORE INFO >> >>General documents are located under /docs/ directory. >>Develper's documents are located /docs/developer/. >>For more information, refer to following URLs. >> >>PHP: http://www.php.net/ >>PHP Manual: http://www.php.net/docs.php >>PH

Re: [PHP-DEV] Re: [PHP] Re: [PHP-DEV] Re: Computer Science and PHP

2002-01-18 Thread Alan Knowles
This kind of bytes at a nerve when you are hunting for work and almost nobody mentions PHP here Anyway, A quick few ideas to throw in the pot.. - Press releases, for PHP5 pre-alpha, PHP-GTK's, (Derick - srm?) upcomming release etc. which could be made available - Then a PHP press team??, c

Re: [PHP-DEV] predeclared classes

2002-01-12 Thread Alan Knowles
interesting things that can be done with stdclass $t = new stdClass();// eg. use it as a dummy class - for use in sessions???- guarenteed to work.. $b = (object) array("aa"=>"bb"); // creates $b as a class - type stdClass not sure where/how to use *OverloadedTestClass regards alan * Jan L

Re: [PHP-DEV] References - good or bad

2001-12-28 Thread Alan Knowles
Andi Gutmans wrote: > As I mentioned on the ZE2 mailing list there general rule of thumb is: > a) Objects should be passed by reference. > b) Everything else including arrays should be used by value whenever > possible semantically. > > In the ZE2 objects will join b). Is there a proposed sytna

[PHP-DEV] php compiler - (or really) big binary builder

2001-12-28 Thread Alan Knowles
Ok, this may seem totaly crazy :) I was having a look at the issue of the php compiler (really distributing a single executable) of php code. - we are starting to develop php-gtk apps and it seemed usefull - it appears that the previous effort at doing this has dissappeared of the face of

Re: [PHP-DEV] Bug #12004 Updated: fopen of url results in invlaid file handle

2001-12-17 Thread Alan Knowles
Markus Fischer wrote: >On Mon, Dec 17, 2001 at 07:08:34PM +0800, Alan Knowles wrote : > >>The whole file needs a bit of an overhall for that :) >> > >As most code does. But why not starting with it right away? > Bit like this? ;)

Re: [PHP-DEV] Re: Notification of absence.

2001-12-17 Thread Alan Knowles
Jani Taskinen wrote: >Well..most of those closed reports have been 'bogus'.. >Or fixed by someone else. It's not that amazing. > >--Jani > I know :) - but it still takes a long while to go through that many bugs :) > > > >On Mon, 17 Dec 2001, Alan Knowl

Re: [PHP-DEV] Bug #12004 Updated: fopen of url results in invlaid file handle

2001-12-17 Thread Alan Knowles
The whole file needs a bit of an overhall for that :) Markus Fischer wrote: >On Mon, Dec 17, 2001 at 10:28:36AM -, [EMAIL PROTECTED] wrote : > >>return NULL; >>} >>+if (strcmp(mode, "r") && strcmp(mode, "w")) { >>+ php_error(E_WARNING, "Invalid

Re: [PHP-DEV] Re: Notification of absence.

2001-12-17 Thread Alan Knowles
> > >>Could you post current new bug database status and >>new(?) lead developer? >> > >Eh? Could you be more specific and explain what you mean >by these? > Who is closing the bug reports? sniper 3188 rasmus 922 sas 824 derick 585 thats an amazing contribution best regards (and many thanks) ala

Re: [PHP-DEV] Bug #10996 Updated: fopen of url results in invlaid file handle

2001-12-16 Thread Alan Knowles
got a bit bored - and started testing some of these bugs - If anyone wants to make suggestions on 'ettiquete' of modifying the bug reports - please shout at me :) regards alan [EMAIL PROTECTED] wrote: >ID: 10996 >Updated by: alan_k >Reported By: [EMAIL PROTECTED] >Old Status: Analyzed >Status

Re: [PHP-DEV] How to compile PHP with cygwin?

2001-11-15 Thread Alan Knowles
Have a look through the mailing list archives (php-dev) - somebody has done this. GRI wrote: >Hi > >I wonder if anyone have managed to compile PHP with cygwin. I get >several errors when doing this. > >I also wonder if I intend to make a dll to extend PHP for windows, >should I then compile PHP

Re: [PHP-DEV] Re: PHP 4.1.0RC2 - can we roll?

2001-11-12 Thread Alan Knowles
This may sound a bit self interested, but the curl extension has a serious (well to me :) bug that prevents https working - If somebody wants to patch/test this - it would be one less bug in 4.1.0RC2 :) -- I have done quite a but if testing here - (with and without openssl libraries) This was

Re: [PHP-DEV] Re: [PHP-GTK-DEV] Help - Merging Resource into a call_function array

2001-10-18 Thread Alan Knowles
ot appear to be a resource... (although Im still testing..) thx regards alan >----- Original Message - > From: Markus Fischer <[EMAIL PROTECTED]> > To: Alan Knowles <[EMAIL PROTECTED]> > Sent: Thu, 18 Oct 2001 18:30:57 +0200 > Subject: [PHP-DEV] Re: [PHP-GTK-DEV]

[PHP-DEV] Help - Merging Resource into a call_function array

2001-10-18 Thread Alan Knowles
Can someone help me out with this one, - I'm sure that I've not acheived what I was aiming at - adding the Resource, myresource to the array prior to calling the callback function the code below is from the url_request callback wrapper for gtkhtml - if this works - you can build a working

Re: [PHP-DEV] PHP 4.0.5 Release & Midgard Problems

2001-04-02 Thread Alan Knowles
use the midgard functions - we have almost completed a port of openmerchant to PHP4/midgard - it stores the templates and some trasent data in midgard datastore, along with the page's - it adds a level of security, reducing or removing the dependance of file system write access. Regards Alan K

[PHP-DEV] chinese patch for htmlspecialchars

2001-02-20 Thread Alan Knowles
hi, Just tryed adding chinese parsing ability to html specialchars, If you do any webdev in php in chinese, it is one of the annoying 'missing features' Can somebody help finish this off, There are 2 issues, - I get compile time saying html.c:76: warning: comparison is always false due to