; php.net for web admins) but cut down on duplicate proposals and simplify
> things socially.
My preference would be something more akin to Python's PEPs:
http://www.python.org/dev/peps/
PEP 1 is an overview of the system:
http://www.python.org/dev/peps/pep-0001/
--
Jon Paris
he API clearer, and there might be memory
size benefits when used as a structure member.
On the other hand, changing those integers to zend_bool (unsigned
char) types could potentially have a runtime performance cost on some
platforms (depending on how those values are being marshaled around),
t breaks the precedent started by some
related flags (such as "is_method").
4. This part of the zend_vm_def.h diff looks wrong (a stray "f"):
-/*
+f/*
Looks great overall!
--
Jon Parise (jon of php.net) :: The PHP Project (http://www.php.net/)
--
to something like __zend_anon_FILE_LINE_COLUMN, but that could be an
unnecessary waste of string memory.
--
Jon Parise (jon of php.net) :: The PHP Project (http://www.php.net/)
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
plication
developers to explain the change over and over again. Or, even
better, the administrator would find it there themself.
--
Jon Parise (jon of php.net) :: The PHP Project (http://www.php.net/)
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, Apr 05, 2005 at 09:20:17AM +0100, Joe Orton wrote:
> On Mon, Apr 04, 2005 at 01:35:37AM -0400, Jon Parise wrote:
> > Index: build/build2.mk
> > ===
> > RCS file: /repository/php-src/build/build2.mk,v
&g
On Tue, Mar 29, 2005 at 10:43:30PM -0500, Jon Parise wrote:
> On Tue, Mar 29, 2005 at 04:15:38PM +0300, Jani Taskinen wrote:
>
> > > Such schemes are quite common thanks to incompatibilities between
> > > autotools versions, e. g. Subversion's buildconf equival
On Wed, Mar 30, 2005 at 12:04:46PM -0500, Jon Parise wrote:
> > I want to build php-5.0.3 on WinXP using Visual Studio.NET. I have read
> > the instructions at php.net as well as in README.WIN32-BUILD-SYSTEM file.
> >
> > Initially got an error regarding some functi
s, so I'll take a crack at
getting everything running some time soon (probably this weekend).
[1] http://msdn.microsoft.com/visualc/vctoolkit2003/
--
Jon Parise (jon of php.net) :: The PHP Project (http://www.php.net/)
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
g CVS. Someone should probably update
that[3]. I'll take care of it later today if no one beats me to it.
[1] http://cvs.php.net/diff.php/bindlib_w32/nsap_addr.c?r1=1.1&r2=1.2&ty=h
[2] http://www.php.net/extra/bindlib_w32.zip
[3] http://cvs.php.net/co.php/phpweb/extra/bindlib_w32.zip
;autoheader', respectively. The idea is borrowed from Subversion's
buildconf equivalent (which Roman mentions above).
I believe this is a workable, non-intrusive solution that should work
in all environments.
--
Jon Parise (jon of php.net) :: The PHP Project (http://www.php.net/)
Index:
ed that Jani did a bit of work earlier this year directed at
simplifying the build system (such that it only uses our bundled
libtool, for example). Given that, I'm not sure if it is still
acceptable to use shtool to locate external executables, so I'm asking
for a patch review here befor
wonder of OpenSource doesn't give you the right to be an
ass.
I'm glad the code problem is fixed. I hope the attitude problem will
be fixed as expediently.
--
Jon Parise (jon of php.net) :: The PHP Project (http://www.php.net/)
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Jan doesn't have php-src commit privileges, so he can't fix it
himself.
--
Jon Parise (jon of php.net) :: The PHP Project (http://www.php.net/)
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
#x27;: No such file or directory
Your build is failing here. The error should be self-explanatory.
--
Jon Parise (jon of php.net) :: The PHP Project (http://www.php.net/)
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
;s backwards compatible with previous functionality, i.e. if you don't
> return anything, the default handler does not get invoked.
This argument may overrule my preference, of course.
--
Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/)
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, Apr 14, 2004 at 12:41:05PM +0800, Alan Knowles wrote:
> Can someone have a look at cvs.php.net - looks like it's missing
> Horde/Auth/autoo.php
There's a typo in horde/config/conf.php ('autoo' instead of 'auto').
I don't have access to fix it, t
() your file multiple times, I
don't think adding a reload() function to PHP is going to improve your
situation all that much. The engine would have to do a fair amount of
work to figure out how to "reload" the contents of the external
script.
--
Jon Parise ([EMAIL PROTECTED]) :: T
you suggesting that it should be
> > >enabled by default?
> >
> > I think we should consider both.
>
> Adding it to the distribution is +1 from me, enabling it by default is a
> -1 personally as I would turn others on by default before this one.
I agree with Der
P 3
(main.c revision 1.354, from 5 years, 11 months ago):
http://cvs.php.net/diff.php/php3/main.c?login=2&r1=1.354&r2=1.355&ty=h
I was kind of hoping it was something you had committed, but no such
luck. =)
--
Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.
ing to apply
> this patch, but before I do can I please get a +1 -1 vote on this?
+0 (I'm comfortable either way with a preference for consistency.)
--
Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/)
--
PHP Internals - PHP Runtime Development Mailing List
ore sense.
> Any votes pro or against?
+1
I hope to use SPL some time soon in the context of my new PHP5-aware
Python extension.
--
Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/)
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http:/
nce in this comment?
--
Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/)
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
> Checking for resolv.lib ...
> Checking for Release\resolv.lib ...
> Checking for resolv.lib ...
You need to build resolv.lib if you're going to check out the
bindlib_w32 source directory. The compiled library is not stored in
cvs.
--
Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/)
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
s.[ch].
> Also you should name the constructor '__construct' instead of
> 'python' because the former is the prefered way for ZE2.
That was a remnant of my original (Zend Engine 1) code (where the
constructor had to match the name of the container class). Thanks for
notici
The 'php5' module alias will ensure that ZendEngine2 is checked out
into the 'Zend' directory.
> So, it looks like Visual Studio .NET isn't going to cut it, huh?
It works fine for me. I've been using it all day (building on the
command line and debugging in t
the 'scope' field, I end up with a second
reference to the new object.
I don't know if that's intentional or a bug. I'm still getting
familiar with the new object model code.
--
Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/)
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
e underlying _store_object's reference
> > count is still incremented. What will ever reclaim that reference on
> > the _store_object?
>
> zval_dtor() will. It calls del_ref on the underlying object.
I see. I would have to call zval_dtor() myself in any of the case
s the reference count of the
variable's zval to 1, but the underlying _store_object's reference
count is still incremented. What will ever reclaim that reference on
the _store_object?
I'm still finding my way around the the "new" ZE2 way of doing things,
so please be gentle
g() method, then the
casting functionality won't be available.
For the record, I'm cool with your interface proposal, too, as long as
it becomes a "standard" interface (i.e. it's a stock PHP interface).
--
Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/)
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
plement Stringable.
I think that's reasonable, although I think it's generally useful for
all objects to implicitly implement 'Stringable' (in the same way that
they all implement "Cloneable", via the __clone() method, today).
--
Jon Parise ([EMAIL PROTECTED]) :: The PHP Pro
->__toString();
} else {
print $e;
}
}
I don't belong to the "character saving" camp. I'm really after
expressive code that hides away administrative machinery whenever
possible.
--
Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/)
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Exception()
>
> does not work but the object returned from thrownException() has a
> __toString() method?
Hopefully, this still works (don't have a recent PHP5 build to try):
print (string)$defect->thrownException();
The explicit cast also addresses this case:
print (s
that you provided in this email?
--
Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/)
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
epr__() in that it does not have to be a
valid Python expression: a more convenient or concise
representation may be used instead. The return value must be a
string object.
--
Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/)
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
php_strip() or
php_strip_whitespace().
I can see these functions being useful in various (albeit rare)
situations.
--
Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/)
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
; that it's a bug.
It's really neither. It's a function of the language definition.
''
ends the PHP interpretation. If there's no need to end the PHP
interpretation at the end of a file and return to "normal" output
mode, then the trailing '?>'
On Tue, Oct 07, 2003 at 08:36:11PM -0400, Ilia Alshanetsky wrote:
> On October 7, 2003 08:19 pm, Jon Parise wrote:
> > By your definition, the code was "proper" (i.e. did not generate
> > warnings) until the underlying rules were changed, and I'm sure we all
7;m sure we all
agree that that's a silly definition of "proper code".
> This by no means is a problem in PHP.
Sorry, I forgot that PHP and PEAR must be playing on separate teams.
--
Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/)
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
a
more generic, reusable way:
file_exists("somefile.php", ini_get('include_path'))
That would give us some additional mileage out of the change.
For the record, I'm -0 on this. I'd be -1 if it wasn't so obviously
optional.
--
Jon Parise ([EMAIL PROTECTED
On Tue, Sep 02, 2003 at 11:45:29AM -0400, Jon Parise wrote:
> I chose '__string' to follow the existing convention for "special"
> method names (e.g. __construct, __clone, __call). Also, I suspect
> that many developers are already using toString() methods in their
&
casting
(that function entry is currently NULL in zend_object_handers.c).
Admittedly, I wasn't comfortable at the time with writing a universal
casting handler, and because I only wanted to deal with string
conversions, I decided to just implement it as a separate dedicated
function entry.
--
Jo
he object is requested. I
can see this being useful for things like object serialization or as a
shortcut for things like the Exception class's toString() method.
The patch is attached. Comments are welcome.
[1] http://www.python.org/doc/current/ref/customization.html
--
Jon P
On Sat, Jul 05, 2003 at 05:39:04PM -0400, Jon Parise wrote:
> Just a note that the addition of sqlite to the PHP build has broken
> 'make -j' compiling:
>
> In file included from /home/jon/src/php5/ext/sqlite/libsqlite/src/auth.c:19:
> /home/jon/src/php5/ext/sqlite/lib
On Tue, Jul 29, 2003 at 04:13:03PM +0100, Daniel Lorch wrote:
> > TSRMLS_*
>
> Thread Safe Resource Manager L.. S.. (?). See file comments.
Local Storage
--
Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/)
--
PHP Internals - PHP Runtime Development Mai
case 's': case 'b':
> case 'r': case 'a':
> case 'o': case 'O':
> - case 'z':
> + case 'z': case 'Z':
>
On Mon, Jul 07, 2003 at 11:41:24AM +0200, Andi Gutmans wrote:
> Naming conventions...
> It should be something like headers_were_sent() (I'm not good with names
> but you get the point :)
http://www.php.net/headers_sent
--
Jon Parise ([EMAIL PROTECTED]) :: The PHP
this in terms of the PHP build system, though.
Maybe someone else does?
--
Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/)
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
e on a concensus first.
>
> +1 (maybe both)?
Please, not both. I think it would be best if there was one way to
get at this information. I don't have a personal preference for
either, though.
--
Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/)
--
PHP Internals
ver
results will be largely emergent and de facto based on these TODO
lists, with very little strategy involved.
The fact that this discussion is even happening in the first place is
indicative of a lack of developer unity over the issue.
This is all just my opinion, of course.
--
Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/)
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
egrate" should be
left for 5.1. Any items marked as "complete" or "finish" are open for
debate. Any items marked as "fix" should be addressed as soon as
possible.
--
Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/)
--
PHP Internals - PHP
x27; => 'PHP_4', 'php5' => 'HEAD'). When
PHP5 ships as a stable product, a 'PHP_5' branch is created, stable
development happens there, and 'php6' is created, which points to
HEAD.
--
Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://
s for generating the whole package.
>
> Let's say something like:
>
> pear package [-t ] [-b] [-s]
>
> -t The type of package you want to generate (pear, rpm,
> msi, etc)
> -b Specifies a binary package
> -d Only generate the description package file
I think this
7;m not sure if this is entirely
necessary, but I can see where it would be useful.
I'll also point you to distutils[1]. The Python folks spent a lot of
time thinking about these kinds of problems, and the result is a quite
good system.
[1] http://www.python.org/doc/current/lib/module-d
m/library/default.asp?url=/library/en-us/netdir/ldap/ldap_bind_s.asp
For now, I'll work from the OpenLDAP implementation. That will
probably benefit the largest percentage of PHP users.
> It's great if you look into this, I have sort of had it on my todo list
> for a couple of ye
o the PHP
> function? I have an application that obtains x509 certs (securely) and I
> want to use them to bind to the LDAP server.
I'll try and have a look at this soon. I just need to find the time
to get my local LDAP server up and running again for testing.
--
Jon Parise ([EMAIL PR
My previous message was missing the attachments.
--
Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/)
I ran into a problem when building bindlib_w32 using Visual Studio
.NEt under Windows XP:
nsap_addr.c(38) : error C2491: 'isxdigit' : definition of dllimport fu
eceive karma for the bindlib_w32 module and
commit the patch myself.
--
Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/)
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
l) $ cvs checkout new
(local) $ rm old; cvs remove old
(local) $ cvs commit -m "Renamed old to new" -r x.x old
--
Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/)
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
e was a way to get the (defined) set of
parameters for a function / method. I'm going to assume that, because
it's not included in your proposal, it's not currently possible given
the current model, though.
--
Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/)
hat's what I do for the Horde CVS mailing list:
http://lists.horde.org/archives/cvs/Week-of-Mon-20030324/021984.html
The code that adds the links is here:
http://cvs.horde.org/co.php/CVSROOT/cfg_local.pm
--
Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/)
What if it were made (bu default) on the
error_reporting level? E_ALL would use the docrefs but "lower" levels
would not (e.g. E_FATAL).
Or a new INI option (docref_errors or docref_enable)?
--
Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/)
--
PHP Development In
62 matches
Mail list logo