[PHP-DEV] Modifying PHP variables in C

2003-03-04 Thread John Lim
way, so i did this. zval **oldarray,*newarray; zval_add_ref(&newarray); convert_to_null_ex(oldarray); *oldarray = newarray; Would this work? Secondly is there a better way. Thanks again. John Lim -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Modifying PHP variables in C

2003-03-05 Thread John Lim
Hi Moriyoshi Thanks for the advice! "Moriyoshi Koizumi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > You should use zval_ptr_dtor() to dispose the old value. Note the old > value won't actually be freed as long as any reference to the variable is > alive. > -- PHP Development

[PHP-DEV] Re: Bug #14333: Apache processes consume all CPU

2001-12-21 Thread John Lim
HP scripts accessing Oracle and sessions do not cause these problems. I can bang away with ab -n4000 -c40 http://url/to/simpler/script.php with no problems. I will test with 4.1.0 next week when I get back to the office. -- John Lim <[EMAIL PROTECTED]> wrote in message [EMAI

[PHP-DEV] Re: Bug #14333: Apache processes consume all CPU

2001-12-26 Thread John Lim
Hi I am back in the office and have confirmed that with PHP 4.0.6, the 99% cpu bug only occurs with "mm". With the "files" session handler it doesn't happen. This was on the SMP server with the given config below... Bye, John John Lim <[EMAIL PROTECTED]> wr

[PHP-DEV] Re: PHP 5

2002-01-05 Thread John Lim
Hi, Peter Illes <[EMAIL PROTECTED]> has this feature request he posted in php.windows. Looks useful to me for php 5: My original problem is simpler than that, though: I'd like to pre-allocate a buffer for the string. Is this possible in PHP? This is possible in both C/C++ and Delphi (with SetL

Re: [PHP-DEV] [Fwd: Re: [Zend Engine 2] Case sensitivity: Conclusion(?)]

2002-02-06 Thread John Lim
little benefit. This will stir up a hornets nest which would be better directed at fixing bugs, writing code, and finding happiness and peace. My PHP 5 cents worth. John Lim Perhaps someone could cc this to the Zend2 lists as I don't read it. Thanks. Thies C. Arntzen <[EMAIL PROTE

[PHP-DEV] Scripting Shootout - PHP ranked 24/29

2001-06-23 Thread John Lim
Thought you all might be interested in this benchmarking shootout: http://www.bagley.org/~doug/shootout/lang/php/ The above site has several benchmarks of 29 programming languages, including PHP, Perl and Pike. PHP came out 24th. Perl was 14th. -- John -- PHP Development Mailing List

[PHP-DEV] Re: Bug #12314 Updated: include_path does not work

2001-07-23 Thread John Lim
The following include path on Windows ME works fine fo me with PHP 4.0.6: include_path=".;d:\inetpub\scripts\php\pear"; Perhaps a problem with relative paths? <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > ID: 12314 > User updated by: [EMAIL PROTECTED] > Re

Re: [PHP-DEV] Porting ASP code to PHP

2001-04-03 Thread John Lim
ted in the reasons why you switched from ASP to PHP. I have written several articles comparing PHP to ASP (mostly in PHP's favor). I would love to hear your opinion. See http://php.weblogs.com/php_asp_7_reasons Bye, John Lim Mike King <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]&q

Re: [PHP-DEV] removing ereg functions

2001-05-16 Thread John Lim
In my mind the problem that Brian raised is that ereg is slow. The solution is not to ban eregi but to fix it by performance tuning the C code. Just my 2c worth. John Lim Rasmus Lerdorf <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > &

[PHP-DEV] Re: Bug #13847 Updated: php hangs after newest ie6 critical update

2001-10-27 Thread John Lim
I suggest you run PHP as a CGI as a workaround. <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > ID: 13847 > Updated by: sniper > Reported By: [EMAIL PROTECTED] > Old Status: Open > Status: Bogus > Bug Type: *General Issues > Operating System: Windows 2000 > PH

[PHP-DEV] Re: Sessions proposal

2001-11-30 Thread John Lim
Hi Andre Why not simply store the login time as a session variable, and log the person out after 15 mins? Regards, John André NæSs <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I find PHP session lacking in one area. In my applications I typically want > to

[PHP-DEV] Re: Bug #14540 Updated: sessions and register_globals

2001-12-16 Thread John Lim
Hi Derick Doesn't this seem counter-intuitive? Can we improve the implementation somehow? Regards, John <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > ID: 14540 > Updated by: derick > Reported By: [EMAIL PROTECTED] > Status: Bogus > Bug Type: Session related

[PHP-DEV] Re: Bug #14549 Updated: Warning: Unknown persistent list...

2001-12-17 Thread John Lim
Hi This requires using CGI and not ISAPI to reproduce. I reported this bug also a week ago. John Lim <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > ID: 14549 > Updated by: sander > Reported By: [EMAIL PROTECTED] > Old Status: Ope

[PHP-DEV] Re: Using persistent connection to database

2001-12-17 Thread John Lim
I would recommend switching to the oci_* functions. More reliable. Bye, John Berlina <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi to everybody, > > first sorry for my poor english. > > im trying to use persistents connections to an Oracle Database throug

[PHP-DEV] Re: Help on PHP vs JAVA

2002-02-21 Thread John Lim
Hi Any consultant will tell you that all you need to do is define the comparison criteria and you can choose the winner easily. PHP: ease of use, low cost of ownership, etc. Java: scalability, choice of implementations, etc. I just hope you can live with your choices! Regards, John Berlina <[

Re: [PHP-DEV] Advice on design issues (long)...

2002-03-23 Thread John Lim
L0t3k <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > im looking for opinions on two OOP related design issues for code im > targeting to PHP5. > (2) im working on a database access abstraction, again inspired by Java and > JDBC (MySQL driver is written and wor

Re: [PHP-DEV] DB Abstraction

2002-03-30 Thread John Lim
Hi Lukas, Actually a query builder is an add-on. There should be no overhead at all to the db abstraction layer. Bye, John Lukas Smith <[EMAIL PROTECTED]> wrote in message 006701c1d84c$795d5b40$4d00a8c0@vandal">news:006701c1d84c$795d5b40$4d00a8c0@vandal... A query builder on top of a DB abstr

[PHP-DEV] Re: ANSI Embedded SQL in PHP

2002-04-11 Thread John Lim
This is very Oracle Pro*C specific and not portable. After coding in Pro*C in a previous incarnation, I don't really want think I want to do it this way again for every database. "Fabwash" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi a

Re: [PHP-DEV] Re: ANSI Embedded SQL in PHP

2002-04-11 Thread John Lim
Hehe, I stand corrected. "Hartmut Holzgraefe" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > John Lim wrote: > > This is very Oracle Pro*C specific and not portable. > > That's why it is called "ANSI Embedded

Re: [PHP-DEV] PHP's vision

2002-06-02 Thread John Lim
"Jani Taskinen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Sun, 2 Jun 2002, Sebastian Bergmann wrote: > > So what really ARE the needs of more advanced developers? > (I'm starting to sound like a broken record now :) > > --Jani > > Hi, I li

Re: [PHP-DEV] PHP's vision

2002-06-03 Thread John Lim
reveal a lot about .the site. Regards, John "Sebastian Bergmann" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > John Lim wrote: > > Private members and methods are essential from a security view-point, > > Why? They

Re: [PHP-DEV] PHP's vision

2002-06-04 Thread John Lim
<[EMAIL PROTECTED]> wrote in message > > I am not a fan of 100% fully redundant systems. I think the expense of > such systems are rarely justified, and unless you have REALLY done the > work to understand what all your points of failure are, you are wasting > your time and money. Hello mlwmohaw

Re: [PHP-DEV] PHP's vision

2002-06-04 Thread John Lim
<[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > John Lim Wrote: > > Hi, > > > - advanced queueing > Queuing of what? > Say you are Amazon or some similar company and has a fancy cluster for order processing. As orders

Re: [PHP-DEV] PHP's vision

2002-06-04 Thread John Lim
n if the php script > is Zend Encoded? > > Ilia Hi Ilia, Don't know, but it sure looks like encrypted mud. This isn't a.out you know. Perhaps we should ask Zeev or Andi :-) > > On June 3, 2002 04:44 am, John Lim wrote: > > Hi Sebastian, > > > > Unfortunat

Re: [PHP-DEV] PHP's vision

2002-06-04 Thread John Lim
"Dan Kalowsky" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Wed, 5 Jun 2002, John Lim wrote: > > Say you are Amazon or some similar company and has a fancy cluster for order > > processing. As orders come in, the

Re: [PHP-DEV] PHP's vision

2002-06-04 Thread John Lim
"Ilia A." <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi Ilia, > > > > Don't know, but it sure looks like encrypted mud. This isn't a.out you > > know. > > > > Perhaps we should ask Zeev or Andi :-) > > That could very well be the case, but anyone who can

[PHP-DEV] =& problem with ZE2: Can't use function return value in write context

2002-06-11 Thread John Lim
Hello, With the ZE 2, PHP 4.3.0-alpha I get an error that looks like this: Fatal error: Can't use function return value in write context in d:\inetpub\wwwroot\php\test5.php on line 29 Is this a bug or a feature of the new ZE2. I noticed there are many places in PEAR and my code that use the

Re: [PHP-DEV] =& problem with ZE2: Can't use function return value in write context

2002-06-11 Thread John Lim
n most cases you will now be > >returning objects by value and assigning them by value. It was introduced > >originally to get around the object problems the Engine 2 solved. > >I'll look into it. > > > >Andi > > > >At 06:12 PM 6/11/2002 +0800,

[PHP-DEV] Zend Engine Alpha 2 and ADOdb

2002-07-04 Thread John Lim
Well I just ran ZE Alpha 2 and the ADOdb regression tests (connecting to MySQL) and it passed once or twice. However it crashes with bad memory accesses the rest of the time (eg. 99% of the time). I'm still pleased as I presume that ADOdb was correctly parsed by ZE2 and its other bugs that caused

[PHP-DEV] Re: Pass by reference

2002-07-23 Thread John Lim
If you do a search on this newsgroup, Andi Gutmans said this sometime ago, i believe to the author of Phorum. That's where i originally got the info in the article. Regards, John "Andrey Hristov" <[EMAIL PROTECTED]> wrote in message 009e01c2322c$110bc8d0$1601a8c0@nik">news:009e01c2322c$110bc8d

Re: [PHP-DEV] print_r's feature

2002-07-25 Thread John Lim
Try this: //debugging print_r function print_pre($r,$prefixmsg='') { if ($prefixmsg) $prefixmsg .= ' '; print "$prefixmsg"; $s = "\n(\n"; ob_start(); print_r($r); ob_end_flush(); print ''; } "Denis Arh" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Ye

Re: [PHP-DEV] PHP in a Hyper-secure environment

2001-08-10 Thread John Lim
I would suggest using a template class such as Smarty - then you only allow a limited set of PHP functions to be used which you can define. See http://www.phpinsider.com/php/code/Smarty/ Regards, John "James Moore" <[EMAIL PROTECTED]> wrote in message 008101c1218f$805664b0$c04c01d5@hound">news:

Re: [PHP-DEV] Linux Today Article

2001-08-16 Thread John Lim
Hi everyone, I found the talk about Apache vs IIS boring. I run both and only look at httpd.conf maybe once a month, and ditto with IIS Service Manager. It's just infrastructure that helps me do interesting things. And .NET and PHP both allow me to do interesting things. In some ways .NET is pl

Re: [PHP-DEV] Linux Today Article

2001-08-16 Thread John Lim
Hi Ron, You're asking the wrong audience. Ask for a show of hands on a .NET mailing list. Regards, John "Ron Chmara" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Edin Kadribasic wrote: > > http://linuxtoday.com/news_story.php3?ltsn=2001-08-13-009-20-OP > >

[PHP-DEV] Re: Bug #13317 Updated: Optimizing Bug for 'sizeof' function

2001-09-15 Thread John Lim
Out of curiosity, would the Zend Optimizer optimize this for loop? Does it recognize sizeof( ) as an invariant? Probably not as the size of an object can change within the for-loop. Bye, John <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > ID: 13317 > Update

[PHP-DEV] Re: Bug #13346: visual fox pro

2001-09-19 Thread John Lim
Just use your normal sql update statement with the odbc driver. Note that because of bugs in the vfp odbc driver, there is a limit on the length of the sql statement (crippled by M'soft?). You can also try the adodb database library at http://php.weblogs.com/adodb which supports vfp via odbc. Re

[PHP-DEV] Re: Bug #13356: ADODB Recordset issue

2001-09-19 Thread John Lim
Which column type is giving this problem? - John Lim (author adodb) <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > From: [EMAIL PROTECTED] > Operating system: Windows 2000 > PHP version: 4.0CVS-2001-09-17 > PHP

[PHP-DEV] Do database resources sleep at night?

2001-10-02 Thread John Lim
r other scripts, or can persistent resources be shared by multiple concurrent scripts? Thanks for your help, John Lim -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP-DEV] Do database resources sleep at night?

2001-10-02 Thread John Lim
Hi Jason, Thanks for the answer. Looks like the ZTS is quite resource intensive then if there is no sharing. Do you know if threads live forever, or do they age gracefully and die like Apache children? - John "Jason Greene" <[EMAIL PROTECTED]> wrote in message 02a501c14b64$f03ff260$80dda8c0@vo