Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-27 Thread LingWitt
I deduced this myself, so I sent an email to the pear-dev list and we seem to have come to a conclusion. Thanks On Monday, Oct 27, 2003, at 00:51 America/New_York, Andi Gutmans wrote: The overload extension is obsolete in PHP 5. How the PEAR guys are planning on fixing their code I'm not sure.

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-27 Thread George Schlossnagle
On Monday, October 27, 2003, at 02:22 AM, Marcus BXrger wrote: Hello George, intersting code :-) You can also avoid that by using $arr[(string)$book] = 1; instead of $arr["$book"] = 1; marcus Yeah, I know I can avoid it, but I shouldn't have to. In more complex examples it also seems to cause

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-27 Thread Marcus Börger
Hello George, intersting code :-) You can also avoid that by using $arr[(string)$book] = 1; instead of $arr["$book"] = 1; marcus Monday, October 27, 2003, 8:08:28 AM, you wrote: > There's also an auto-casting issue. If you have something like: > $xml = simplexml_load_file("a.xml"); > print_r

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-27 Thread George Schlossnagle
There's also an auto-casting issue. If you have something like: $xml = simplexml_load_file("a.xml"); print_r($xml); foreach($xml->book as $book) { $arr[$book] = 1; } foo bar you get an illegal offset error in the assignment to $arr. It's attempting to use it as a simpleXML object. If you i

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-26 Thread Marcus Börger
Hello Robert, George, yes, the simplexml/foreach was borked before and can be considered fixed now. marcus Monday, October 27, 2003, 2:03:24 AM, you wrote: > Works fine from CVS. This was most likely fixed with the iterator stuff from > Marcus. > Rob > From: George Schlossnagle >> The followi

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-26 Thread Andi Gutmans
The overload extension is obsolete in PHP 5. How the PEAR guys are planning on fixing their code I'm not sure. I suggest you check on the pear mailing list. Andi At 04:15 PM 10/26/2003 -0500, [EMAIL PROTECTED] wrote: I fixed the problem by editing the Autoloader.php. Is there a better way to d

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-26 Thread Robert Richards
Works fine from CVS. This was most likely fixed with the iterator stuff from Marcus. Rob From: George Schlossnagle > The following code loops indefinitely. > > $conf = simplexml_load_file("status.xml"); > foreach($conf->services->service as $service) { >print $service->params->description."\n

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-26 Thread George Schlossnagle
Weird bug in simplexml: The following code loops indefinitely. $conf = simplexml_load_file("status.xml"); foreach($conf->services->service as $service) { print $service->params->description."\n"; foreach($service->params as $foo) { print "$foo\n"; } } #status.xml errorl

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-26 Thread LingWitt
I fixed the problem by editing the Autoloader.php. Is there a better way to do this? Should I just rewrite the code for my classes and get rid of PEAR? What is the best solution? I realize that this is probably not a question germane to this list, so thank you for any help. On Sunday, Oct 26, 2

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-26 Thread George Schlossnagle
On Sunday, October 26, 2003, at 03:22 AM, Christian Stocker wrote: On 10/25/03 7:20 PM, [EMAIL PROTECTED] wrote: I have install libxml2 using fink for Mac OS X, so that the libraries are stored in /sw/lib, and the includes are in /sw/include/libxml2/libxml. I have tried these directories inc

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-26 Thread LingWitt
I just found that there is no code for the overload extension. I assume that it is more formally included in this version. Should I rewrite my classes that make use of the overload function? On Sunday, Oct 26, 2003, at 11:45 America/New_York, George Schlossnagle wrote: On Sunday, October 26, 2

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-26 Thread LingWitt
I finally got it to build with this: ./configure --with-apxs --with-dom=/sw --with-libxml-dir=/sw --with-xsl=/sw --with-zlib-dir=/sw --with-mysql=/sw --with-xsl=/sw I need the overload extension, so I tried passing --enable-overload and --with-overload but it does not seem to do anything. How

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-26 Thread Melvyn Sopacua
Hi, On Friday 24 October 2003 20:45, Ilia Alshanetsky wrote: > > Check for mktime with out-of-range parameters > > [ext/standard/tests/time/003.phpt] > > mktime() [ext/standard/tests/time/mktime.phpt] > > Also, a MacOSX specific issue that is not PHP5 specific. Actually - a BSD mktime specific i

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-26 Thread Zeev Suraski
At 22:47 24/10/2003, Ilia Alshanetsky wrote: One solution which was to bundle libxml with PHP got rejected and if my recollection is correct you agreed with that decision. IMHO that was a good decision, bundling a huge library (3.2+ megs as of 2.6.0) almost as big as PHP itself seems kind of strang

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-26 Thread Christian Stocker
On 10/25/03 7:20 PM, [EMAIL PROTECTED] wrote: I have install libxml2 using fink for Mac OS X, so that the libraries are stored in /sw/lib, and the includes are in /sw/include/libxml2/libxml. I have tried these directories including the latter directory without the last directory, but to no av

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-25 Thread Steph
> > Works here, too, committed, > Sebastian > - that was one option - Michael's right about stddef.h - the problem was caused because we have in config.w32.h #define ssize_t ptrdiff_t - well without stddef.h, there's no clue as to whatever ptrdiff_t might be. But I've no clue where it should

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-25 Thread Sebastian Bergmann
Steph wrote: > Sebastian? Works here, too, committed, Sebastian -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Das Buch zu PHP 5: http://professionelle-softwareentwicklung-mit-php5.de/ -- PHP Internals - PHP Runtime Development Mailing List T

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-25 Thread Greg Beaver
Hello Rasmus, To quote from PEAR/Common.php's infoFromString() method (used to parse package.xml, and the base of all installation methods) $xp = @xml_parser_create(); if (!$xp) { return $this->raiseError('Unable to create XML parser'); } Regards, Greg Rasmus

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-25 Thread LingWitt
I have install libxml2 using fink for Mac OS X, so that the libraries are stored in /sw/lib, and the includes are in /sw/include/libxml2/libxml. I have tried these directories including the latter directory without the last directory, but to no avail. So, I don't know what the deal is. Thanks f

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-25 Thread Andi Gutmans
At 05:57 PM 10/25/2003 +0200, Sebastian Bergmann wrote: php_gd2.dll fails to build: php5\ext\gd\libgd\gd_jpeg.c(442): error C2065: 'ptrdiff_t': undeclared identifier php5\ext\gd\libgd\gd_jpeg.c(442): error C2146: Syntax error: Missing ';' before identifier 'nbytes' php5\ext\g

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-25 Thread Steph
chael Walter" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, October 25, 2003 4:24 PM Subject: Re: [PHP-DEV] PHP 5 Beta 2 RC1 > For the ptrdiff_t error, you could just #include . > > Concerning ssize_t - that isn't a type defined anywhere in the C > sta

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-25 Thread Michael Walter
quot; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturday, October 25, 2003 5:05 PM Subject: Re: [PHP-DEV] PHP 5 Beta 2 RC1 Same issue with gd2 here. Are we supposed to have updated headers somewhere along the line? Edin? - Original Message - From: "Sebastian Bergman

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-25 Thread Steph
PROTECTED]> To: "Sebastian Bergmann" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturday, October 25, 2003 5:05 PM Subject: Re: [PHP-DEV] PHP 5 Beta 2 RC1 > Same issue with gd2 here. Are we supposed to have updated headers > somewhere along the line? Edin? >

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-25 Thread Steph
Same issue with gd2 here. Are we supposed to have updated headers somewhere along the line? Edin? - Original Message - From: "Sebastian Bergmann" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, October 25, 2003 3:57 PM Subject: Re: [PHP-DEV] PHP 5 Beta

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-25 Thread Sebastian Bergmann
Andi Gutmans wrote: > Please let me know both if it works for you and if it fails. Compiles fine on my GENTOO/Linux laptop: - gentoo-sources 2.4.20-r7 - glibc 2.3.2-r6 - gcc (GCC) 3.3.1 20030916 (Gentoo Linux 3.3.1-r4, propolice) - autoconf 2.13, libtool 1.4.3, bison 1.875, flex

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-25 Thread Rasmus Lerdorf
On Fri, 24 Oct 2003, Greg Beaver wrote: > Ilia Alshanetsky wrote: > > One solution which was to bundle libxml with PHP got rejected and if my > > recollection is correct you agreed with that decision. IMHO that was a good > > decision, bundling a huge library (3.2+ megs as of 2.6.0) almost as big

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-24 Thread Greg Beaver
Ilia Alshanetsky wrote: One solution which was to bundle libxml with PHP got rejected and if my recollection is correct you agreed with that decision. IMHO that was a good decision, bundling a huge library (3.2+ megs as of 2.6.0) almost as big as PHP itself seems kind of strange. Reverting

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-24 Thread LingWitt
When configuring PHP 5 for Mac OS X, I get this every time, even with 2.5.10 installed: not found configure: error: Please reinstall the libxml >= 2.4.14 distribution What is the deal? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-24 Thread Steph
> > This issue is definitely not a reason to stop rolling out RC's nor betas. > > Enabling the XML extensions by default is the right decision because > > this is an important technology which almost every PHP user will need. > > I do think it's a good idea though to have a --disable switch that >

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-24 Thread Jani Taskinen
On Sat, 25 Oct 2003, George Schlossnagle wrote: >That wasn't quite my point, I should have been more clear. I have >libxml2 on my box. It was a pain to build. Supposedly, it is possible >to disable the need for xml on the system, however if I uninstall >libxml2 and run > >./configure --disab

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-24 Thread Adam Dickmeiss
Andi Gutmans wrote: [snip] This issue is definitely not a reason to stop rolling out RC's nor betas. Enabling the XML extensions by default is the right decision because this is an important technology which almost every PHP user will need. I do think it's a good idea though to have a --disable

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-24 Thread Andi Gutmans
At 03:50 PM 10/24/2003 -0400, Dan Kalowsky wrote: On Fri, 24 Oct 2003, Adam Maccabee Trachtenberg wrote: > FWIW, I've had good success using fink to install libxml2 and libxsl; > however, in order to get a version of libxml2 high enough (2.5.10) to > work with PHP, you need to build from the "unst

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-24 Thread Ilia Alshanetsky
On October 24, 2003 04:27 pm, Adam Maccabee Trachtenberg wrote: > That sounds like a great idea. Also, George was saying that he was > unable to disable all the xml extensions, at least on Mac OS X. I used --disable-all followed by a list of extensions I want to enable. This seems to work with la

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-24 Thread Ilia Alshanetsky
One solution which was to bundle libxml with PHP got rejected and if my recollection is correct you agreed with that decision. IMHO that was a good decision, bundling a huge library (3.2+ megs as of 2.6.0) almost as big as PHP itself seems kind of strange. Reverting back to expat does not app

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-24 Thread Dan Kalowsky
Sorry, I just find it annoying that something that has worked out of the box before (compiling PHP with default settings) is now no longer able to do so easily (on my particular platform). On Fri, 24 Oct 2003, Ilia Alshanetsky wrote: > External dependencies are frustrating, but you could always

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-24 Thread Adam Maccabee Trachtenberg
On Fri, 24 Oct 2003, Ilia Alshanetsky wrote: > External dependencies are frustrating, but you could always disable > compilation of all the xml extensions (I do that all the time). That said, do > we really need just about every XML extension enabled by default and if we > do, perhaps a 'global

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-24 Thread Ilia Alshanetsky
External dependencies are frustrating, but you could always disable compilation of all the xml extensions (I do that all the time). That said, do we really need just about every XML extension enabled by default and if we do, perhaps a 'global' --disable-all-xml flag should be in order? Ilia --

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-24 Thread Dan Kalowsky
On Fri, 24 Oct 2003, Adam Maccabee Trachtenberg wrote: > FWIW, I've had good success using fink to install libxml2 and libxsl; > however, in order to get a version of libxml2 high enough (2.5.10) to > work with PHP, you need to build from the "unstable" tree. Great, just what I want, yet another

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-24 Thread Andi Gutmans
At 11:53 AM 10/25/2003 -0700, George Schlossnagle wrote: On Friday, October 24, 2003, at 11:49 AM, Adam Maccabee Trachtenberg wrote: On Sat, 25 Oct 2003, George Schlossnagle wrote: How do you make this work without libxml2 (Sterling??)? That's an utter pain to get built on os x. FWIW, I've ha

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-24 Thread George Schlossnagle
On Friday, October 24, 2003, at 11:49 AM, Adam Maccabee Trachtenberg wrote: On Sat, 25 Oct 2003, George Schlossnagle wrote: How do you make this work without libxml2 (Sterling??)? That's an utter pain to get built on os x. FWIW, I've had good success using fink to install libxml2 and libxsl;

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-24 Thread Adam Maccabee Trachtenberg
On Sat, 25 Oct 2003, George Schlossnagle wrote: > How do you make this work without libxml2 (Sterling??)? That's an > utter pain to get built on os x. FWIW, I've had good success using fink to install libxml2 and libxsl; however, in order to get a version of libxml2 high enough (2.5.10) to wor

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-24 Thread Ilia Alshanetsky
> Locale settings affecting float parsing [tests/lang/034.phpt] This fails on all MacOS installs (even with prior PHP) due to locale handling bug. MacOS claims switch locale, but does not actually do it. > Bug #25547 (error_handler and array index with function call) > [tests/lang/bug25547.phpt]

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-24 Thread George Schlossnagle
On Friday, October 24, 2003, at 10:06 AM, Andi Gutmans wrote: Hey, I've rolled RC1 of beta 2. Although it's a beta I thought it'd be a good idea to roll an RC so that we can at least do a sanity check to see that the package is OK and builds. http://www.php.net/~andi/php-5.0.0b2RC1.tar.bz2 ht

Re: [PHP-DEV] PHP 5 Beta 2 RC1

2003-10-24 Thread George Schlossnagle
On Friday, October 24, 2003, at 10:06 AM, Andi Gutmans wrote: Hey, I've rolled RC1 of beta 2. Although it's a beta I thought it'd be a good idea to roll an RC so that we can at least do a sanity check to see that the package is OK and builds. http://www.php.net/~andi/php-5.0.0b2RC1.tar.bz2 ht