[PHP-DEV] Win32 PECL pre-built binaries.

2009-04-29 Thread Richard Quadling
Hi.

What are the plans for providing pre-built Win32 PECL extensions.

I've been waiting for http://pecl4win.php.net to become active again.

I understand that each extension has to be built MANY times (VC6/VC9,
ts/nts, PHP5.0/PHP5.1/PHP5.2/PHP5.3/PHP6.0, etc.) so this is a LOT of
effort (20 builds per extension, 40 if debug builds are also
performed), but something like this was available a long time ago
(http://web.archive.org/web/20071029164203/http://pecl4win.php.net/)

Regards,

Richard Quadling.
-- 
-
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498r=213474731
Standing on the shoulders of some very clever giants!

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] Developing PHP extensions on Windows with VC++, linking problems

2009-04-29 Thread Eugenio Tacchini

Hi all,
I am not sure this is the right place to ask this question but I 
tried other ML without having replies and someone on php-general 
advised me to try internals too.



I had to create a PHP extension and I read this article:
http://www.talkphp.com/vbarticles.php?do=articlearticleid=49title=creating-custom-php-extensionshttp://www.talkphp.com/vbarticles.ph...php-extensions
Everything worked fine if I keep Debug as Active solution 
configuration in Build-Configuration managerbut in this way I 
can only use the extension created on the machine I compiled it.

If I choose Release instead of Debug I get a fatal error:
dllmain.obj : fatal error LNK1179: invalid or corrupt file: duplicate 
COMDAT '_putwchar'

Can you help me?

I'm using Visual C++ 2008 Express edition, PHP 5.2.4, Win xp home.
I am also not sure if have to install a particular SDK.

Thanks!

Cheers,

Eugenio  



--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] Re: Win32 PECL pre-built binaries.

2009-04-29 Thread Richard Quadling
2009/4/29 Richard Quadling rquadl...@googlemail.com:
 Hi.

 What are the plans for providing pre-built Win32 PECL extensions.

 I've been waiting for http://pecl4win.php.net to become active again.

 I understand that each extension has to be built MANY times (VC6/VC9,
 ts/nts, PHP5.0/PHP5.1/PHP5.2/PHP5.3/PHP6.0, etc.) so this is a LOT of
 effort (20 builds per extension, 40 if debug builds are also
 performed), but something like this was available a long time ago
 (http://web.archive.org/web/20071029164203/http://pecl4win.php.net/)

 Regards,

 Richard Quadling.
 --
 -
 Richard Quadling
 Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498r=213474731
 Standing on the shoulders of some very clever giants!


And this is what happens when I don't read the phpdoc commits before
asking questions!


-- 
-
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498r=213474731
Standing on the shoulders of some very clever giants!

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP-DEV] Re: Win32 PECL pre-built binaries.

2009-04-29 Thread Jared Williams
 

 -Original Message-
 From: Richard Quadling [mailto:rquadl...@googlemail.com] 
 Sent: 29 April 2009 11:33
 To: PHP internals; php-windows
 Subject: [PHP-DEV] Re: Win32 PECL pre-built binaries.
 
 2009/4/29 Richard Quadling rquadl...@googlemail.com:
  Hi.
 
  What are the plans for providing pre-built Win32 PECL extensions.
 
  I've been waiting for http://pecl4win.php.net to become 
 active again.
 
  I understand that each extension has to be built MANY times 
 (VC6/VC9, 
  ts/nts, PHP5.0/PHP5.1/PHP5.2/PHP5.3/PHP6.0, etc.) so this 
 is a LOT of 
  effort (20 builds per extension, 40 if debug builds are also 
  performed), but something like this was available a long time ago
  (http://web.archive.org/web/20071029164203/http://pecl4win.php.net/)
 
  Regards,
 
  Richard Quadling.
  --
  -
  Richard Quadling
  Zend Certified Engineer : 
  http://zend.com/zce.php?c=ZEND002498r=213474731
  Standing on the shoulders of some very clever giants!
 
 
 And this is what happens when I don't read the phpdoc commits 
 before asking questions!
 
 

So what was it?

Jared


-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] Re: [PHP-WIN] RE: [PHP-DEV] Re: Win32 PECL pre-built binaries.

2009-04-29 Thread Richard Quadling
2009/4/29 Jared Williams jared.willia...@ntlworld.com:


 -Original Message-
 From: Richard Quadling [mailto:rquadl...@googlemail.com]
 Sent: 29 April 2009 11:33
 To: PHP internals; php-windows
 Subject: [PHP-DEV] Re: Win32 PECL pre-built binaries.

 2009/4/29 Richard Quadling rquadl...@googlemail.com:
  Hi.
 
  What are the plans for providing pre-built Win32 PECL extensions.
 
  I've been waiting for http://pecl4win.php.net to become
 active again.
 
  I understand that each extension has to be built MANY times
 (VC6/VC9,
  ts/nts, PHP5.0/PHP5.1/PHP5.2/PHP5.3/PHP6.0, etc.) so this
 is a LOT of
  effort (20 builds per extension, 40 if debug builds are also
  performed), but something like this was available a long time ago
  (http://web.archive.org/web/20071029164203/http://pecl4win.php.net/)
 
  Regards,
 
  Richard Quadling.
  --
  -
  Richard Quadling
  Zend Certified Engineer :
  http://zend.com/zce.php?c=ZEND002498r=213474731
  Standing on the shoulders of some very clever giants!
 

 And this is what happens when I don't read the phpdoc commits
 before asking questions!



 So what was it?

 Jared


 --
 PHP Windows Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



http://docs.php.net/manual/en/install.pecl.downloads.php At this time
the PHP project does not compile Windows binaries for PECL extensions.
However, to compile PHP under Windows see the chapter titled building
PHP for Windows.


-- 
-
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498r=213474731
Standing on the shoulders of some very clever giants!

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] Re: [PHP-WIN] RE: [PHP-DEV] Re: Win32 PECL pre-built binaries.

2009-04-29 Thread Jeff McKenna




http://docs.php.net/manual/en/install.pecl.downloads.php At this time
the PHP project does not compile Windows binaries for PECL extensions.
However, to compile PHP under Windows see the chapter titled building
PHP for Windows.




Small world: that chapter Building PHP for Windows is exactly why I 
sent a message yesterday to the php-windows list asking where the most 
uptodate instructions are for building PHP with VC 9 on Windows (that 
chapter has broken links to the build tools, and the Wiki page, 
http://wiki.php.net/internals/windows/stepbystepbuild, is incomplete). 
So it seems we're in limbo for building!


-jeff



--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/



--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] Re: [PHP-WIN] RE: [PHP-DEV] Re: Win32 PECL pre-built binaries.

2009-04-29 Thread Richard Quadling
2009/4/29 Jeff McKenna jmcke...@gatewaygeomatics.com:


 http://docs.php.net/manual/en/install.pecl.downloads.php At this time
 the PHP project does not compile Windows binaries for PECL extensions.
 However, to compile PHP under Windows see the chapter titled building
 PHP for Windows.



 Small world: that chapter Building PHP for Windows is exactly why I sent a
 message yesterday to the php-windows list asking where the most uptodate
 instructions are for building PHP with VC 9 on Windows (that chapter has
 broken links to the build tools, and the Wiki page,
 http://wiki.php.net/internals/windows/stepbystepbuild, is incomplete). So it
 seems we're in limbo for building!

 -jeff



 --
 Jeff McKenna
 FOSS4G Consulting and Training Services
 http://www.gatewaygeomatics.com/




It seems like this isn't going to be fixed any time soon.

220 extensions which may have version specific external libraries and
each one needing to be built at least 20 ways (VC6/9, ts/nts,
5.0/5.1/5.2/5.3/6.0). That gives 4,400 build processes. Debug? 8,800
builds. And then more if there are different external libraries,
though I would hope that a version of a PECL extension would only run
with a single version of an external library. I don't know if the
dependencies are maintained in any easy way.

Compare that with PHP's handful of builds.



-- 
-
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498r=213474731
Standing on the shoulders of some very clever giants!

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] PHP 5.3 build patch

2009-04-29 Thread Brian J. France

Anybody have a problem with me committing the patch below?

We still use 2.9.5 for our FreeBSD builds (ya, I know its old) and  
while building extensions we get:


Zend/zend.h:379: warning: `always_inline' attribute directive ignored
Zend/zend.h:383: warning: `always_inline' attribute directive ignored
Zend/zend.h:387: warning: `always_inline' attribute directive ignored
Zend/zend.h:391: warning: `always_inline' attribute directive ignored
Zend/zend.h:395: warning: `always_inline' attribute directive ignored
Zend/zend.h:399: warning: `always_inline' attribute directive ignored
Zend/zend.h:403: warning: `always_inline' attribute directive ignored
Zend/zend.h:407: warning: `always_inline' attribute directive ignored

Adding the patch removes the warning.

Brian

Index: Zend/zend.h
===
RCS file: /repository/ZendEngine2/zend.h,v
retrieving revision 1.293.2.11.2.9.2.33
diff -u -p -r1.293.2.11.2.9.2.33 zend.h
--- Zend/zend.h 18 Mar 2009 01:08:12 -  1.293.2.11.2.9.2.33
+++ Zend/zend.h 29 Apr 2009 14:16:28 -
@@ -361,7 +361,11 @@ struct _zval_struct {
 #define Z_SET_ISREF_TO(z, isref)   Z_SET_ISREF_TO_P((z), isref)

 #if defined(__GNUC__)
+#if __GNUC__ = 3
 #define zend_always_inline inline __attribute__((always_inline))
+#else
+#define zend_always_inline inline
+#endif
 #elif defined(_MSC_VER)
 #define zend_always_inline __forceinline
 #else


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] Re: [PHP-WIN] RE: [PHP-DEV] Re: Win32 PECL pre-built binaries.

2009-04-29 Thread Philip Olson



It seems like this isn't going to be fixed any time soon.

220 extensions which may have version specific external libraries and
each one needing to be built at least 20 ways (VC6/9, ts/nts,
5.0/5.1/5.2/5.3/6.0). That gives 4,400 build processes. Debug? 8,800
builds. And then more if there are different external libraries,
though I would hope that a version of a PECL extension would only run
with a single version of an external library. I don't know if the
dependencies are maintained in any easy way.

Compare that with PHP's handful of builds.



DLL downloads will be offered at pecl.php.net for active PHP branches  
(5_2, 5_3, 6_0).


However, this does not exist today so yesterday I removed all  
references to pecl4win from the PHP manual and referred to the build  
it yourself documentation. If the documentation is wrong/outdated  
then please report a bug.


Regards,
Philip


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] Re: [PHP-WIN] RE: [PHP-DEV] Re: Win32 PECL pre-built binaries.

2009-04-29 Thread Richard Quadling
2009/4/29 Philip Olson phi...@roshambo.org:

 It seems like this isn't going to be fixed any time soon.

 220 extensions which may have version specific external libraries and
 each one needing to be built at least 20 ways (VC6/9, ts/nts,
 5.0/5.1/5.2/5.3/6.0). That gives 4,400 build processes. Debug? 8,800
 builds. And then more if there are different external libraries,
 though I would hope that a version of a PECL extension would only run
 with a single version of an external library. I don't know if the
 dependencies are maintained in any easy way.

 Compare that with PHP's handful of builds.


 DLL downloads will be offered at pecl.php.net for active PHP branches (5_2,
 5_3, 6_0).

 However, this does not exist today so yesterday I removed all references to
 pecl4win from the PHP manual and referred to the build it yourself
 documentation. If the documentation is wrong/outdated then please report a
 bug.

 Regards,
 Philip



Looking forward to play with the old extensions.


-- 
-
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498r=213474731
Standing on the shoulders of some very clever giants!

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] Re: [PHP-WIN] Re: [PHP-DEV] Re: [PHP-WIN] RE: [PHP-DEV] Re: Win32 PECL pre-built binaries.

2009-04-29 Thread Jeff McKenna

Philip Olson wrote:
If the documentation is wrong/outdated then please report 
a bug.




I notice that every time someone files a bug about the broken links in 
the Building PHP for Windows documentation, a PHP developer closes the 
bug and says to follow the Wiki notes instead 
(http://wiki.php.net/internals/windows/stepbystepbuild) which are 
unfortunately not complete...hence my confusion.


-jeff





--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/



--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] Re: Win32 PECL pre-built binaries.

2009-04-29 Thread Philip Olson



If the documentation is wrong/outdated then please report a bug.


I notice that every time someone files a bug about the broken links  
in the Building PHP for Windows documentation, a PHP developer  
closes the bug and says to follow the Wiki notes instead (http://wiki.php.net/internals/windows/stepbystepbuild 
) which are unfortunately not complete...hence my confusion.


I see one such bug, are there others?

  - http://bugs.php.net/bug.php?id=46021

In the very least the Building PHP for Windows section should not  
include broken links, so, this bug has been reopened.


Regards,
Philip

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] Re: [PHP-WIN] Re: Win32 PECL pre-built binaries.

2009-04-29 Thread Jeff McKenna

Philip Olson wrote:


I see one such bug, are there others?

  - http://bugs.php.net/bug.php?id=46021



Here are some:

http://bugs.php.net/bug.php?id=47008
http://bugs.php.net/bug.php?id=46259
http://bugs.php.net/bug.php?id=46069

Needless to say that the issue has been driving people crazy for a 
while...someone needs to fix those links.


Thanks.

-jeff




--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/



--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] [PATCH] Scanner diet with fixes, etc.

2009-04-29 Thread Matt Wilmas

Hi Dmitry, Brian, all,

Here's a scanner patch that I mentioned awhile ago, with a possible way to 
work around the re2c EOF handling issues.


The primary change is to do a manual scan like I talked about in areas 
that match large amounts and can contain NULL bytes (strings/comments, which 
are now scanned faster too), as is done for inline HTML.  I called it a 
diet :-) because it removes my complicated string regex patterns from a 
couple years ago, which doesn't make the .l file much smaller after adding 
the manual scan code (easier to understand...?), but it does result in a 
~34k reduction of 5.3's generated .c file...


This fixes Bug #46817, as well as a better, more proper fix for the older 
Bug #42767, both related to ending comments.


Now inline HTML chunks aren't broken up when a tag starting with s is 
encountered (script for JS, span, etc.), since it's unlikely to be a 
long PHP script tag.


If an opening PHP SCRIPT tag was used with a capital S, it was missed if 
it wasn't the first thing scanned:


var_dump(token_get_all(HTML... SCRIPT language=php));

Single-line comments with a Windows newline didn't include the full \r\n:

var_dump(token_get_all(?php // Comment\r\n?));

Finally, part of the optimized scanning is that, for double quoted strings, 
when the first variable is encountered (making it non-constant), the amount 
that's been scanned up to that point is remembered, which can then be 
skipped over (up to the variable) after returning the quote token. 
Previously that initial part of the string was rescanned -- the cost 
dependent on how far into the string the first var is.



I think that's about all --  I'll send another message if I forgot to 
mention anything...  Just wanted to send this along quick for to you guys to 
look at or whatever.  It was basically done last week, I just had to do a 
couple finishing touches and verify that everything was OK.


http://realplain.com/php/scanner_diet.diff (Merged changes, but didn't test 
yet.)

http://realplain.com/php/scanner_diet_5_3.diff


Thanks,
Matt 



--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php