See bug #16820 for the discussion.
This patch supposedly fixes it:
diff -urN php-4.2.3/Zend/zend_execute.c php-4.2.3-TO/Zend/zend_execute.c
--- php-4.2.3/Zend/zend_execute.c Sun Jan 6 16:21:09 2002
+++ php-4.2.3-TO/Zend/zend_execute.cWed Dec 18 08:51:55 2002
@@ -1047,7
it's a PHP_4_3 with apache2filter - clean checkout. eg. rm php-src;cvs
co
Regards
Alan
Jani Taskinen wrote:
5.0.0b2-dev
int(1)
int(1)
array(1) {
[0]=>
string(3) "abc"
}
echo phpversion(), "\n";
var_dump(preg_match('/php/i','PHP is the web scripting language of choice.'));
var_dump(pre
5.0.0b2-dev
int(1)
int(1)
array(1) {
[0]=>
string(3) "abc"
}
\n";
var_dump(preg_match('/php/i','PHP is the web scripting language of choice.'));
var_dump(preg_match('/abc/','fredabc',$matches));
var_dump($matches);
show_source('pcre.php');
?>
Aka. BULLSHIT.
--Jani
p.s.
At 08:42 PM 12/7/2003 +0100, Paul Hudson wrote:
Andi,
Wouldn't it be more useful if they worked for all variables, or is there a
design reason why they work as they do currently?
The idea is that you can mix regular variables and variable overloading, it
is like this by design. If you want it to
Andi,
Wouldn't it be more useful if they worked for all variables, or is there a
design reason why they work as they do currently?
--Paul
> Yes, you are right. They only work if the variable is not defined.
>
> Andi
>
> At 08:03 PM 12/7/2003 +0100, Paul Hudson wrote:
> >All,
> >
> >I've been
Yes, you are right. They only work if the variable is not defined.
Andi
At 08:03 PM 12/7/2003 +0100, Paul Hudson wrote:
All,
I've been poking around with these two functions while testing the build from
CVS, and am not sure how they're supposed to work. From what I can gather,
they are only cal
All,
I've been poking around with these two functions while testing the build from
CVS, and am not sure how they're supposed to work. From what I can gather,
they are only called when changing a variable that wasn't in the class
definition. I say that because I took the example script from
h
At 05:38 PM 12/7/2003 +0100, Paul Hudson wrote:
Andi,
> However, if you inherit from this class the new class does not know any of
> the parents' private members and therefore doesn't error out. This is the
> correct way of handling it because private members should be hidden to
> inheriting class
branch can be downloaded at the following:
http://www.voltex.jp/patches/strip_tags-patch-20030712.diff.gz
Comments and suggestions are still welcome.
kind of instruction:
$ cd php-src
$ gunzip -c strip_tags-patch-20030712.diff.gz | patch -p0
[1]
http://news.php.net/article.php?group=php.internals
Andi,
> However, if you inherit from this class the new class does not know any of
> the parents' private members and therefore doesn't error out. This is the
> correct way of handling it because private members should be hidden to
> inheriting classes.
When you say "hidden", do you mean that it
Setting a private error does error out if it's in the hierarchy of the
current class, i.e. if you'd try setting Name on an object of type dog.
However, if you inherit from this class the new class does not know any of
the parents' private members and therefore doesn't error out. This is the
cor
At 07:27 PM 11/7/2003 -0400, Greg Beaver wrote:
Hi, a discussion on php.general led to the discovery of this oddly legal
script:
public function bark() {
print "Woof!\n";
}
public function printName() {
print $this->Name; // prints nothing!
}
}
// new class, for t
Alan,
> I think what you are getting at is that you can set 'private' variable
> from outside.. - with no warnings etc.
Yup.
> so if you want a warning when you set/create a variable with the same
> name as the private - use protected...
> Or am I missing the point on what you expected..?
I was
Jani Taskinen wrote:
Fixed in CVS now. :)
nice try:) -
something as simple as this still kills it..
Regards
Alan
--Jani
On Thu, 10 Jul 2003, Alan Knowles wrote:
@@ -420,7 +421,32 @@
size_offsets = num_subpats * 3;
offsets = (int *)safe_emalloc(size_offsets, si
PHP 4 Bug Database summary - http://bugs.php.net
Num Status Summary (912 total including feature requests)
===[*Configuration Issues]
21973 Open 'configure' script can't find libpng.(a|so), openldap, libjava...
===
I would like to help in a project in order to translate PHP documentation
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
I think what you are getting at is that you can set 'private' variable
from outside.. - with no warnings etc.
From the message on ZE2 when I played with this - and was supprised
(although it does seem to make sense when you think about it)
for all purposes, internal privates do not appear to ex
I would like to help translating the php manuals to the Dutch Language. And I would
like helping maintaining php.net
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Hi!
There were some whitespace errors in the patch i sent, i corrected those
and made the error messages more readable.
Stefan
--
Regards,
Stefan Walk
<[EMAIL PROTECTED]>
Index: main/main.c
===
RCS file: /repository/php-src/main/mai
All,
I sent this originally to the php-general mailing list, but there doesn't
appear to be any consensus on how private variables should act. Any ideas?
Thanks,
--Paul
-- Forwarded Message --
Subject: Re: [PHP] Private and protected variables in PHP 5?
Date: Saturday 12
Hmm, I don't much appreciate the idea to use the libxml binaries
prepared on another site because libiconv uses errno to indicate the
current converter status and libiconv has problem with the "errno"
implementations of Microsoft libc's. errno is DLL / thread specific in
those and we should alw
On Fri, 11 Jul 2003, Ananth Kesari wrote:
> Can you let me know what is the plan for the final PHP 5.0.0 Release
> - when is it likely to be released? We need this information to plan
> our activities in submitting the latest NetWare changes into the PHP
> source tree.
Can you please provide patc
On Fri, 11 Jul 2003, walt boring wrote:
> Howdy,
> I have the latest version of the encoder and optimizer installed and am running
Please file these bugs with the Zend people, it's not a PHP problem.
Derick
--
"Interpreting what the GPL actually means is a job best left to those
23 matches
Mail list logo