# PHP 5 Beta 2 RC1

- Thread: https://externals.io/message/4959
- Original archive: https://news-web.php.net/php.internals/4959
- Started by Andi Gutmans on 2003-10-24T17:06:52+00:00
- Messages: 12
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #4959 — Andi Gutmans — 2003-10-24T17:06:52+00:00

URL: https://externals.io/message/4959#4959

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
http://www.php.net/~andi/php-5.0.0b2RC1.tar.gz

Please let me know both if it works for you and if it fails. Most changes 
in the engine are documented in the ZEND_CHANGES file. I'll try and make 
sure it's updated even further for the real beta 2 release this coming week.

Thanks,
Andi

---

## #4987 — Sebastian Bergmann — 2003-10-25T15:57:48+00:00

URL: https://externals.io/message/4959#4987 · In reply to: #4959

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 2.5.4

  Compiles with 49 warnings (CLI/CGI SAPIs) on Windows 2000 with MSVC 6.

  php4apache2.dll fails to build:

    php5\win32\time.h(27): error C2079:
    'it_interval' uses undefined struct 'timeval'

    php5\win32\time.h(28): error C2079:
    'it_value' uses undefined struct 'timeval'

    apache2\include\apr_network_io.h(250): error C2079:
    'sin' uses undefined struct 'sockaddr_in'

  Don't know what this is about, worked until recently and I haven't
  changed my build environment since (at least not that I remember).

  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\gd\libgd\gd_jpeg.c(442): error C2065:
    'nbytes': undeclared identifier

-- 
Sebastian Bergmann
http://sebastian-bergmann.de/                   http://phpOpenTracker.de/

Das Buch zu PHP 5: http://professionelle-softwareentwicklung-mit-php5.de/

---

## #4990 — Michael Walter — 2003-10-25T16:24:31+00:00

URL: https://externals.io/message/4959#4990 · In reply to: #4989

For the ptrdiff_t error, you could just #include <stddef.h>.

Concerning ssize_t - that isn't a type defined anywhere in the C 
standard libary, so you have to typedef it by yourself. Alternatively, 
you could include <windows.h> and typedef SSIZE_T ssize_t;

Steph wrote:
> btw if you replace  ssize_t nbytes = 0; with int nbytes = 0; in line 442
> of gd_jpeg.c - it builds AND works beautifully.
> 
> Dunno why but
> #if PHP_WIN32 && !defined(ssize_t)
> typedef int ssize_t;
> #endif
> isn't working ..
> 
> ----- Original Message -----
> From: "Steph" <steph.fox@virgin.net>
> To: "Sebastian Bergmann" <sebastian@php.net>; <internals@lists.php.net>
> Sent: Saturday, October 25, 2003 5:05 PM
> Subject: Re: [PHP-DEV] PHP 5 Beta 2 RC1
> 
> 
> 
> > […]
> 
> MSVC
> 
> > […]

---

## #4992 — Andi Gutmans — 2003-10-25T17:03:40+00:00

URL: https://externals.io/message/4959#4992 · In reply to: #4959

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\gd\libgd\gd_jpeg.c(442): error C2065:
>     'nbytes': undeclared identifier


Can you check if PHP_WIN32 is defined in 
Project->Settings->C/C++->Preprocessor?
No idea about Apache 2.
Thanks,
Andi

---

## #4988 — Steph — 2003-10-25T17:05:35+00:00

URL: https://externals.io/message/4959#4988

Same issue with gd2 here.  Are we supposed to have updated headers
somewhere along the line?  Edin?

----- Original Message -----
From: "Sebastian Bergmann" <sebastian@php.net>
To: <internals@lists.php.net>
Sent: Saturday, October 25, 2003 3:57 PM
Subject: Re: [PHP-DEV] PHP 5 Beta 2 RC1


> Andi Gutmans wrote:
> > […]
>
>   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 2.5.4
>
>   Compiles with 49 warnings (CLI/CGI SAPIs) on Windows 2000 with MSVC
6.
>
>   php4apache2.dll fails to build:
>
>     php5\win32\time.h(27): error C2079:
>     'it_interval' uses undefined struct 'timeval'
>
>     php5\win32\time.h(28): error C2079:
>     'it_value' uses undefined struct 'timeval'
>
>     apache2\include\apr_network_io.h(250): error C2079:
>     'sin' uses undefined struct 'sockaddr_in'
>
>   Don't know what this is about, worked until recently and I haven't
>   changed my build environment since (at least not that I remember).
>
>   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\gd\libgd\gd_jpeg.c(442): error C2065:
>     'nbytes': undeclared identifier
>
> --
> Sebastian Bergmann
> http://sebastian-bergmann.de/
http://phpOpenTracker.de/
>
> Das Buch zu PHP 5:
http://professionelle-softwareentwicklung-mit-php5.de/

---

## #4989 — Steph — 2003-10-25T17:20:35+00:00

URL: https://externals.io/message/4959#4989 · In reply to: #4988

btw if you replace  ssize_t nbytes = 0; with int nbytes = 0; in line 442
of gd_jpeg.c - it builds AND works beautifully.

Dunno why but
#if PHP_WIN32 && !defined(ssize_t)
typedef int ssize_t;
#endif
isn't working ..

----- Original Message -----
From: "Steph" <steph.fox@virgin.net>
To: "Sebastian Bergmann" <sebastian@php.net>; <internals@lists.php.net>
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 Bergmann" <sebastian@php.net>
> To: <internals@lists.php.net>
> Sent: Saturday, October 25, 2003 3:57 PM
> Subject: Re: [PHP-DEV] PHP 5 Beta 2 RC1
>
>
> > […]
MSVC
> 6.
> > […]
> http://phpOpenTracker.de/
> > […]
> http://professionelle-softwareentwicklung-mit-php5.de/

---

## #4991 — Steph — 2003-10-25T17:45:47+00:00

URL: https://externals.io/message/4959#4991 · In reply to: #4990

- or you _could_ just move the typedef from its current position at the
beginning of the file to where it belongs (after the includes)!  You
also need to make it a sane typedef:

#if PHP_WIN32
typedef SSIZE_T ssize_t;
#endif

works here.

Sebastian?

----- Original Message -----
From: "Michael Walter" <cm@leetspeak.org>
To: <internals@lists.php.net>
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 <stddef.h>.
>
> Concerning ssize_t - that isn't a type defined anywhere in the C
> standard libary, so you have to typedef it by yourself. Alternatively,
> you could include <windows.h> and typedef SSIZE_T ssize_t;
>
> Steph wrote:
> > […]
442
> > […]
<internals@lists.php.net>
> > […]
haven't
> > […]
remember).
> > […]

---

## #4960 — George Schlossnagle — 2003-10-25T18:01:46+00:00

URL: https://externals.io/message/4959#4960 · In reply to: #4959

> 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
> http://www.php.net/~andi/php-5.0.0b2RC1.tar.gz
>
> Please let me know both if it works for you and if it fails. Most 
> changes in the engine are documented in the ZEND_CHANGES file. I'll 
> try and make sure it's updated even further for the real beta 2 
> release this coming week.

How do you make this work without libxml2  (Sterling??)?  That's an 
utter pain to get built on os x.

George

---

## #4961 — George Schlossnagle — 2003-10-25T18:35:32+00:00

URL: https://externals.io/message/4959#4961 · In reply to: #4959

> 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
> http://www.php.net/~andi/php-5.0.0b2RC1.tar.gz
>
> Please let me know both if it works for you and if it fails. Most 
> changes in the engine are documented in the ZEND_CHANGES file. I'll 
> try and make sure it's updated even further for the real beta 2 
> release this coming week.

Only a handful of make test failures on OS X (w/libxml2):

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Locale settings affecting float parsing [tests/lang/034.phpt]
Bug #25547 (error_handler and array index with function call) 
[tests/lang/bug25547.phpt]
serializing references test case using globals 
[ext/session/tests/019.phpt]
Bug #25756 (validate_schema_file() broken) 
[ext/simplexml/tests/bug25756.phpt]
File type functions [ext/standard/tests/file/001.phpt]
Check for mktime with out-of-range parameters 
[ext/standard/tests/time/003.phpt]
 `mktime()` [ext/standard/tests/time/mktime.phpt]
XML parser test, function callbacks [ext/xml/tests/xml001.phpt]
XML parser test, object tuple callbacks [ext/xml/tests/xml002.phpt]
XML parser test, xml_set_object callbacks [ext/xml/tests/xml003.phpt]
=====================================================================

---

## #5000 — Sebastian Bergmann — 2003-10-26T00:43:01+00:00

URL: https://externals.io/message/4959#5000 · In reply to: #4991

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/

---

## #5001 — Steph — 2003-10-26T02:00:37+00:00

URL: https://externals.io/message/4959#5001

>
>   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 be included (given that ptrdiff_t
turns up in quite a lot of our source).  It obviously works to include
it in config.w32.h, but I assume that's a Bad Thing because nothing else
is included there..

Anyway, that fix works.  I just think there's a more generic one
available ;)

---

## #5025 — George Schlossnagle — 2003-10-27T00:24:35+00:00

URL: https://externals.io/message/4959#5025 · In reply to: #4959

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
<config>
   <loggers>
     <logger>
       <id>errorlog</id>
       <class>ErrorLog_ServiceLogger</class>
     </logger>
   </loggers>
   <services>
     <service>
       <class>HTTP_ServiceCheck</class>
       <params>
         <description>OmniTI HTTP Check</description>
         <uri>http://www.omniti.com</uri>
         <timeout>30</timeout>
       </params>
       <loggers>
         <logger>errorlog</logger>
         <logger>debuglog</logger>
       </loggers>
     </service>
     <service>
       <class>HTTP_ServiceCheck</class>
       <params>
         <description>SCHLOSSNAGLE.ORG HTTP Check</description>
         <uri>http://www.schlossnagle.org</uri>
         <timeout>30</timeout>
       </params>
       <loggers>
         <logger>errorlog</logger>
         <logger>debuglog</logger>
       </loggers>
     </service>
   </services>
</config>





> 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
> http://www.php.net/~andi/php-5.0.0b2RC1.tar.gz
>
> Please let me know both if it works for you and if it fails. Most 
> changes in the engine are documented in the ZEND_CHANGES file. I'll 
> try and make sure it's updated even further for the real beta 2 
> release this coming week.
>
> Thanks,
> Andi
>
> -- 
> 
> 
>
>
-- George Schlossnagle
-- Principal Consultant
-- OmniTI Computer Consulting, Inc.
-- +1.410.872.4910 x202
-- 1024D/1100A5A0 1370 F70A 9365 96C9 2F5E  56C2 B2B9 262F 1100 A5A0
