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
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
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
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
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
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
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
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
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
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]...
> &
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
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
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
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
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
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 <[
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
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
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
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
"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
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
<[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
<[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
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
"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
"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
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
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,
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
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
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
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:
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
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
> >
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
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
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
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]
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
40 matches
Mail list logo