What does that buy you that this doesn't?
function test2() {
echo "hi";
}
function test() {
test2();
}
...other than a new scoping rule?
Christopher Kings-Lynne writes:
> Shouldn't you at least be able to register the "nested function" as 'static?
>
> This causes syntax errors in 4.0.
Sam Liddicott writes:
>
>
> > -Original Message-
> > From: Lars Torben Wilson [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, February 02, 2001 09:49
> > To: Christopher Kings-Lynne
> > Cc: Bug Database
> > Subject: Re: [PHP-DEV] RE: P
Cynic writes:
> $a['x'] = 'one' ;
> $a['y'] = 'two' ;
> $a['z'] = 'three' ;
>
> list( $x , $y , $z ) = $a ;
>
> Warning: Undefined offset: 2 in ...
> Warning: Undefined offset: 1 in ...
> Warning: Undefined offset: 0 in ...
You mean that this:
$a['x'] = 'one';
$a['y'] = 'two';
$a['
Jeff Lacy writes:
> Okay, you are right. I must have missed that sentence. Sorry.
>
> It is a 'good' coding practice (with many people) to indent everything (that
> should be indented, like if's). You can't do a doc quoting inside of an if
> and still maintain 'good' coding practices. That is
I've got a clean checkout of php4, Zend, and TSRM, and the following
configuration script:
./configure \
--with-apxs=/usr/local/apache/bin/apxs \
--with-pspell \
--with-mysql=/usr \
--with-gd \
--with-xml \
--with-zlib \
--with-curl \
--with-sablot \
--with-java \
--with-serv
Lucas Rockwell writes:
> hi,
>
> i know the subject of changing the source code for the community at large
> is a touchy one, so i want to start off by saying that i want to make this
> change for our php implementation for use on our site.
>
> so, with that said, i would like to modify the nl2b
Lars Torben Wilson writes:
> Lucas Rockwell writes:
> > hi,
> >
> > i know the subject of changing the source code for the community at large
> > is a touchy one, so i want to start off by saying that i want to make this
> > change for our php implementation
Andrew Hill writes:
> Hi gurus,
>
> Who can I bug about the manual? :) The ODBC page
> http://www.php.net/manual/en/ref.odbc.php is a little misleading, namely
> that iODBC is a database, and the subsequent text implies that the unified
> ODBC functions don't use ODBC when connecting via iODBC,
[EMAIL PROTECTED] writes:
> On Fri, Mar 09, 2001 at 04:22:12PM -0500, Andrew Hill wrote:
>
> > Who can I bug about the manual? :) The ODBC page
> > http://www.php.net/manual/en/ref.odbc.php is a little misleading, namely
> > that iODBC is a database, and the subsequent text implies that the unif
Jani Taskinen writes:
> On Sun, 11 Mar 2001, Stanislav Malyshev wrote:
>
> >JT>> Uhm..I have always closed the duplicates after the original (which they
> >JT>> refer to) was closed. Any opinions about this? As the current bug system
> >
> >I thought "Duplicate" itself is a closed status. Like, w
Jani Taskinen writes:
> On Sun, 11 Mar 2001, Lars Torben Wilson wrote:
>
> >Now, it's Sunday morning, I just crawled out of my nice warm bed, and
> >I haven't finished my first cup of bad coffee yet--but if
>
> Have that cup of coffee first.. :)
>
> &
Jason Greene writes:
> > Generally using functions for two different purposes is a bad idea, but
> > enhancing functions with additional arguments that extend its functionality
> > is not too bad. In this case, adding n arguments is perhaps the extension
> > that makes the most sense for isset
implementation but its semantics.
>
> Zeev
If it can be changed like that and be safe and consistent then that's
great. If it makes people's lives better without confusion then that's
perfect. Just as long as it's been considered then I'm happy.
> At 23:21 19
Re: Bug #7488, where I tripped upon the fact that call-time
pass-by-reference, while deprecated in the language, is required by
some functions. (The one which bit me was odbc_fetch_into(), but
exec(), getmxrr(), and a few others also appear to require it).
For the case of odbc_fetch_into(), the
At present, the sockets extension uses integers as file descriptors
(e.g. socket() return value). At first I thought maybe they should
have been resources until I tried writing some socket code, when I
realized that it's easier under many circumstances for them to be
ints. Is this going to be beh
Vlad Krupin writes:
> Lars Torben Wilson wrote:
> >Perhaps I have not explained my position. I don't care whether it
> >outputs the exit status as a string--as long as it sets the error code
> >appropriately *as well*. By appropriately, I mean that 'exit("b
values
> into a storage space designed for a single value (a string) is bad
> :(
In the case you gave, the only difference the user would notice
would be that the exit status of the script would be 123 instead of
0. It would still print out the '123, 456 servers are unavailable
rom 'echo chr(65);' and 'echo chr("65");', right? Why
should exit be any different?
> On Wed, Dec 19, 2001 at 03:33:15PM -0800, Lars Torben Wilson wrote :
> > Vlad Krupin writes:
> > > Please, understand me correctly - I have nothing against exi
Markus Fischer writes:
> Implictely is more error prone.
How so? Can you give an example?
> On Wed, Dec 19, 2001 at 04:12:02PM -0800, Lars Torben Wilson wrote :
> > Markus Fischer writes:
> > > Why not just check the type of the parameter? No conversion
> >
Zeev Suraski writes:
> At 15:18 20/12/2001, Yasuo Ohgaki wrote:
> >Nobody should complain about BC changes if changes are notified
> >early enough and there is alternative way to do the same thing.
> >IMHO. (This has been done for some features such as track vars ;)
>
> That's a very impractical
7;night
> At 16:29 20/12/2001, Lars Torben Wilson wrote:
> >Zeev Suraski writes:
> > > At 15:18 20/12/2001, Yasuo Ohgaki wrote:
> > > >Nobody should complain about BC changes if changes are notified
> > > >early enough and there is alternative way to do t
that first one would reintroduce the BC problem. :)
Anyway, the whole output/not output thing isn't that important to me
personally; I was more concerned about the inconsistency in the
argument usage. At least with that patch it would be
language-consistent, even if one doesn't like the outpu
On Thu, 2002-01-24 at 13:42, Rasmus Lerdorf wrote:
> I think the real answer here is to treat these as read-only arrays. ie.
> never use them on the left side of the '=' and you will never run into
> problems. Or if you do, be consistent and use the same array all the
> time. You are writing yo
The EXTENSIONS file doesn't appear to have been updated to
mention the new xslt extension which replaced Sablotron.
Could someone with sufficient karma commit this? Thanks.
Index: EXTENSIONS
===
RCS file: /repository/php4/EXTENSION
On Mon, 2002-01-28 at 15:08, Wico de Leeuw wrote:
> Hiya,
>
> thats not true... register_tcik_function is for between 2 instructions
> (lines?) and will not break into a long takeing mysql_select
> (correct me if i'm wrong)
>
> But i still think that such a function will improve php
>
> Greetz,
On Tue, 2002-01-29 at 22:35, [EMAIL PROTECTED] wrote:
> Does anyone know of any group who has put together a web content
> management architecture for a large site?
Two things: first, this list is for development of PHP, not in
PHP (you want php-general for that), and second, HTML emails will ge
On Fri, 2002-02-01 at 11:49, [EMAIL PROTECTED] wrote:
> ID: 15328
> Updated by: [EMAIL PROTECTED]
> Reported By: [EMAIL PROTECTED]
> Old Status: Open
> Status: Bogus
> Bug Type: Feature/Change Request
> Operating System: N/A
> PHP Version: 4.1.1
> New Comment:
>
> not likely to be implemented...
On Sat, 2002-02-02 at 18:25, Mika Toewe wrote:
> Hi
>
> Is there anything that can manipulate a variable bit by bit? If have a
> variable $x that has to switch between two values. It doesn't matter if
> it is true or false, 0 and 255 or whatever. Normally the easiest way
> would be to use xor to
On Sun, 2002-02-03 at 16:29, Chris Shiflett wrote:
> On Sun, 3 Feb 2002, Manuel Lemos wrote:
> Manuel,
>
> Thank you for the suggestion. If you would be so kind, I have a few
> questions.
>
> 1) How can I change the status of a bug? For example, I was looking
> through session bugs (since that
On Mon, 2002-02-04 at 03:41, Martin Jansen wrote:
> Taking the following script:
>
> $array = array("foo" => true,
>"bar" => false
>);
>
> print_r($array);
> ?>
>
> The result of print_r is:
>
> Array ( [foo] => 1 [bar] => )
>
> Shouldn't
On Tue, 2002-02-05 at 12:59, [EMAIL PROTECTED] wrote:
> ID: 15392
> Updated by: [EMAIL PROTECTED]
> Reported By: [EMAIL PROTECTED]
> Status: Bogus
> Bug Type: *Configuration Issues
> Operating System: window98
> PHP Version: 4.1.1
> New Comme
On Tue, 2002-02-05 at 15:34, John Donagher wrote:
>
> This has probably been mentioned before, but I think the naming of php-dev is
> way misleading. It's funny that people get so ripped when someone sends an
> off-topic question to this list. Someone who doesn't read the descriptions may
> very
On Wed, 2002-02-06 at 17:34, Chris Shiflett wrote:
> NO
I think he meant to vote using the voting form in the bug
database. ;)
Torben
> On 7 Feb 2002 [EMAIL PROTECTED] wrote:
>
> > From: [EMAIL PROTECTED]
> > Operating system: ANY
> > PHP version: 4.1.1
> > PHP Bug Type:
On Wed, 2002-02-13 at 17:22, Evan Nemerson wrote:
> I was thinking about putting together a list of constants, their purpose,
> what version of PHP they initially appeared in, etc.
>
> So far, I have figured out a function called "REGISTER_LONG_CONSTANT" is
> used, or a constant is defined in t
Could someone check these out and commit them (or similar)? At
the moment, odbc_execute() allows any script to view any file
without regard to safe_mode or open_basedir, and also under
certain circumstances can corrupt its parameters. See Bug #15516
for more info. It may be desirable to change th
On Sat, 2002-02-16 at 18:01, Yasuo Ohgaki wrote:
> Yasuo Ohgaki wrote:
> > Stefan Esser wrote:
> >
> >> magic_quotes_by_default is a nice way to make scripts (written by
> >> novices)
> >> safer. Unfourtunately mqbd forces you to write unsecure scripts. If
> >> you put
> >> such
> >> scripts on
[EMAIL PROTECTED] writes:
> Open source obviously will take a LONGER time because only programmers that want
> to work for free will do it.
> Hobbyists and wanna be half ass lamerZ take up the rest of the slack.
Joel, I mean no offense here. But what people have been saying is
true: in the open
Brian Little writes:
> Yes. There is nothing specific in there about compiling the code under
> windows.
> Brian
Is this not helpful, or are you specifically looking for something else?
http://www.php.net/manual/en/install-windows.php#install.windows.build
Torben
> ""James Moore"" <[EMAIL PR
Can someone clarify for me whether the POSIX extension is expected to
work on any Windows variants? Thanks...
(Please Cc: me as I had to leave the list temporarily...)
--
Torben Wilson <[EMAIL PROTECTED]>
http://www.thebuttlesschaps.com
+1.604.709.0506
--
PHP Development Mailing List <
>descriptors. Very quickly the Apache process will have no file descriptors
> >left. This has to be fixed. I prefer seeing it fixed with resources but in
> >the least it should be fixed not to leak fd's even if you go with the
> >integer fix implementation. But it is
Zeev Suraski writes:
> ext/sockets does indeed appear to be broken; It doesn't obey the standard
> PHP return value rules at all (errors are negative numbers instead of
> false, resource are passed back as-is instead of as resources).
>
> I was actually looking at the other socket functions, f
Andi Gutmans writes:
> At 12:44 PM 3/29/2001 -0800, Lars Torben Wilson wrote:
>
> >Slightly different topic--is it a problem that call-time pass-by-ref
> >is being deprecated but several functions require it in order to work?
>
> It is possible. Functions which r
Hi there,
I was just wondering whether I could get a better explanation for the
fact that mktime() breaks consistency with itself by not allowing you
to get Nov 30 1999 by supplying 0s for month, day, and year. The
manual and the source both say that the reason is that the returned
timestamp wou
Howdy,
I was just researching the CCVS extension and noted that its config.m4
doesn't search automatically for the CCVS install dir, and leaving the
DIR out of the --with-ccvs=[DIR] causes a blank -L to be added to
$LIBS, which makes configure fail on the next test to be run. (Bug
#8045 had this
Type casting to int from string works only for decimal values--is this
by design? Example:
echo (int) '09' . ', ' . (int) '0x24';
...produces:
9, 0
which seems intuitively wrong (I'd have expected 0, 36).
Is this wrong, or should I just document it?
Thanks,
Torben
--
Torben Wilson <[EM
is this unintentional?
> ----- Original Message -
> From: "Lars Torben Wilson" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, May 14, 2001 1:29 PM
> Subject: [PHP-DEV] Integer casts broken or...?
>
>
> >
> > Type casting
s.
Ah, the world is so full of unanswered questions. :)
> Brian Moon
> --
> dealnews.com, Inc.
> Makers of dealnews, dealmac
> http://dealnews.com/ | http://dealmac.com/
>
>
> - Original Message -
Markus Fischer writes:
> Does this change if you explicetly close the connection?
Nope. :)
Actually, I had almost forgotten about this problem, but I guess it's
still relevant since I do have places where I use table locking, and
if the script were to bail there (which it never has in almost 3
y
Markus Fischer writes:
> Hmm well ... thinking about this again, the behaviour is
> expected isn't it?
>
> You're locking the table, you're not unlocking it. The
> persistent connection itself is not influenced by this in
> anyway and is still valid.
Yup, that's *why* it happ
Markus Fischer writes:
> One can argue, people using persitent connections should know
> what they do ... but yes, documenting this is the best
> thing definitely.
>
> So, making this documentation problem then? Any opinion from
> others?
>
> - Markus
I don't think it's
[EMAIL PROTECTED] writes:
> ID: 14138
> Updated by: jmcastagnetto
> Reported By: [EMAIL PROTECTED]
> Status: Feedback
> Bug Type: Date/time related
> Operating System: Debian GNU/Linux stable
> PHP Version: 4.0.6
> New Comment:
>
> Perhaps a problem with the Debian libraries, cannot confirm probl
[EMAIL PROTECTED] writes:
> Dear Brian, Marco et al:
> Sorry to be persistent, but I am pretty sure that
> my postings have been misunderstood, and the last
> reply I just got from Marco confirms it.
>
> I'm hoping once you understand the question, the
> "bogus" nature of the question will go awa
Hartmut Holzgraefe writes:
> James Moore wrote:
>
> > ... could we make some
> > other changes to how comments are handeled too?
> >
> > // ?>
> >
> > would not switch out of PHP mode,
> >
> > /*
> >
> > ?>
> > Html code
> > >
> > */
> >
> > Would comment out the html code too..
> >
> > I
Wolfram Kriesing writes:
> why do the following two examples result in different things, even
> though i would expect the same behaviour?
>From the manual:
http://www.php.net/manual/en/language.references.return.php
function &find_var ($param)
{
...code...
return $found_va
Markus Fischer writes:
> On Fri, Dec 07, 2001 at 02:37:48PM -0700, Chris Newbill wrote :
> > Zend Engine 2 will have multiple-inheritance among other nice toys.
>
> No one said and nowhere is written ZE2 will have
> multiple-inheritance. Don't confuse people.
>
> - Markus
Strictly
Vlad Krupin writes:
> Uh?
> You probably do not want to see the returned code printed anyway (unless
> you are debugging and are lazy to get it in any other way). Chances are
> that the codes returned by exit() won't make much sense to anyone but
> the one who develops the code, and it's not to
Zeev Suraski writes:
> At 14:04 19/12/2001, [EMAIL PROTECTED] wrote:
> >Two ways to fix it then, either update the manual, or fix exit(). I go for
> >the last one then. Ppl who relied on the undocumented feature then, did
> >simply the wrong thing.
>
> Only the documentation was wrong to begin wi
ht thing and
create a new function named something like 'exit_print()' which
behaves the way the current exit() does.
Besides, as Vlad pointed out it's a _hell_ of a lot easier to do
the print-out thing in userland than it is to set the exit status. :)
Torben
> At 14:49 19/12/
eev Suraski wrote:
> >
> > >exit_with_status(), silent_exit(), quiet_exit(), etc. etc. Something
> > >should fit :)
> > >
> > >
> > >At 14:49 19/12/2001, Lars Torben Wilson wrote:
> > >>Zeev Suraski writes:
> > >> > At 14:04
Zeev Suraski writes:
> At 15:15 19/12/2001, Lars Torben Wilson wrote:
> >Zeev Suraski writes:
> > > exit_with_status(), silent_exit(), quiet_exit(), etc. etc. Something
> > > should fit :)
> >
> >Yeah, you could do that. But then, why don't we have a
&
Zeev Suraski writes:
> >Perhaps I have not explained my position. I don't care whether it
> >outputs the exit status as a string--as long as it sets the error code
> >appropriately *as well*.
>
> AFAIR, this is the way it works now...
>
> Zeev
If that were the case I would expect the last 'echo
On Thu, 2002-02-21 at 01:07, Berlina wrote:
> Hello to everybody,
>
> I need some help for writting a comparison of PHP vs JAVA, and of course, I
> need that PHP wins
> ;-D
Wins what? For what task? This is quite a nebulous question. And if
you've decided which will win before you've done the r
On Wed, 2002-02-27 at 19:27, Zak Greant wrote:
> On Wed, 2002-02-27 at 20:23, Yasuo Ohgaki wrote:
> > Jim Winstead wrote:
> > > In php.dev Edin Kadribasic <[EMAIL PROTECTED]> wrote:
> > >
> > >>1. If you compile CGI binary and then issue 'make install' it will be
> > >>installed in $PREFIX/bin, t
On Sun, 2002-03-03 at 17:30, topside wrote:
> Where can I get information/documentation on creating my own PHP modules in
> C? I basicly just want to use some C functions within PHP - so I figure I
> can write a PHP module with functions which use the C functions I need.
>
> thanks
> --topside
T
On Thu, 2002-03-07 at 11:23, Markus Fischer wrote:
> On Thu, Mar 07, 2002 at 08:02:17PM +0100, [EMAIL PROTECTED] wrote :
> > On Thu, 7 Mar 2002, Andrey Hristov wrote:
> >
> > > You probably do:
> > > $some_len = strlen(&$some_str);
> >
> > right.
> >
> > > you do not need to use &. Probably $s
On Tue, 2002-03-12 at 07:30, Stefan Esser wrote:
> Morning, (maybe i am just blind...)
>
> I doubt this can be counted as support question *grin*
>
> Has anyone of you ever tried to exec a command while in safe_mode?
>
> exec ("blub"); works fine, but it seems impossible to give a param
> to bl
On Wed, 2002-03-13 at 00:13, Stefan Esser wrote:
> Hi,
>
> It is not off topic. Its an annoying bug and I asked around if I oversee
> something
> if i change php_escape_shell_cmd to ignore stuff between quotes.
> (off course checking for escaped quotes within the quotes)
>
> Stefan
Sorry, I did
On Thu, 2002-04-25 at 15:27, Brinkman, Theodore wrote:
> Ok. I have the feeling that I'm going to be making myself a bit unpopular
> here with my first post, but I mean no offense or disrespect. I'm just
> trying to understand something.
>
> PHP allows enabled, but doesn't allow source and as
Derick Rethans writes:
> On Sat, 27 Jan 2001, Lars Torben Wilson wrote:
>
> >
> > Yes, just make sure that you're not outputting *anything* (even blank
> > these lists.
>
>
> > Adrian Pitulac writes:
> > > I have Apache 1.3.14 and Php 4.0.4 on
69 matches
Mail list logo