Re: [PHP-DEV] ZEND_ADD_STRING patch
The patch I submitted included BACKQUOTES in the token matching as well. I'm not convinced that is bad, but I will try to thoroughly test it tomorrow, and if it's broken, I'll just case it for and heredocs. George On Monday, November 11, 2002, at 01:56 AM, Andi Gutmans wrote: OH I missed that. I'll check it out this evening as I have to go now. Andi At 01:48 AM 11/11/2002 -0500, George Schlossnagle wrote: Unless I misunderstand the way this works, it's not a problem that it returns a T_STRING, only possibly that it does so inside a BACKQUOTES. Function names and constants aren't available as barewords in DOUBLE_QUOTES or HEREDOCs, right? On Monday, November 11, 2002, at 01:12 AM, Andi Gutmans wrote: Hi, A patch which improves on this would be welcome. However, this patch at first glance is bogus. You are returning T_STRING with possible spaces and other non A-Za-z_ chars. This token is also used as tokens such as constants and function names . Andi At 06:31 PM 11/10/2002 -0500, George Schlossnagle wrote: that would be my debugging from my 'clean' cvs copy. :) You don't want that. Sorry. Here's a better patch: Index: zend_language_scanner.l === RCS file: /repository/Zend/zend_language_scanner.l,v retrieving revision 1.51 diff -u -3 -r1.51 zend_language_scanner.l --- zend_language_scanner.l 2 Nov 2002 16:32:26 - 1.51 +++ zend_language_scanner.l 10 Nov 2002 23:30:28 - @@ -686,6 +686,7 @@ HNUM 0x[0-9a-fA-F]+ LABEL [a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]* WHITESPACE [ \n\r\t]+ +LABEL_OR_WHITESPACE [a-zA-Z0-9_\x7f-\xff \n\t\r #'.:;,()|^+-/*=%!~?@]+ TABS_AND_SPACES [ \t]* TOKENS [;:,.\[\]()|^+-/*=%!~$?@] ENCAPSED_TOKENS [\[\]{}$] @@ -1269,7 +1270,7 @@ } -ST_DOUBLE_QUOTES,ST_BACKQUOTE,ST_HEREDOC{LABEL} { +ST_DOUBLE_QUOTES,ST_BACKQUOTE,ST_HEREDOC{LABEL_OR_WHITESPACE} { zend_copy_value(zendlval, yytext, yyleng); zendlval-type = IS_STRING; return T_STRING; @@ -1569,15 +1570,6 @@ zendlval-type = IS_STRING; return T_STRING; } -} - - -ST_DOUBLE_QUOTES,ST_BACKQUOTE,ST_HEREDOC{ESCAPED_AND_WHITESPACE} { - HANDLE_NEWLINES(yytext, yyleng); - zendlval-value.str.val = (char *) estrndup(yytext, yyleng); - zendlval-value.str.len = yyleng; - zendlval-type = IS_STRING; - return T_ENCAPSED_AND_WHITESPACE; } ST_SINGLE_QUOTE([^'\\]|\\[^'\\])+ { On Sunday, November 10, 2002, at 06:25 PM, Moriyoshi Koizumi wrote: --snip +fprintf(stderr, %s:%d\n, __FILE__,__LINE__); What's this fprintf()? This seems to be put just for debugging purpose. Moriyosh return T_STRING; } -ST_DOUBLE_QUOTES,ST_BACKQUOTE,ST_HEREDOC{LABEL_OR_WHITESPACE} { +ST_DOUBLE_QUOTES,ST_BACKQUOTE,ST_HEREDOC{LABEL} { zend_copy_value(zendlval, yytext, yyleng); zendlval-type = IS_STRING; +fprintf(stderr, %s:%d\n, __FILE__,__LINE__); return T_STRING; } @@ -1572,6 +1573,15 @@ } } + +ST_DOUBLE_QUOTES,ST_BACKQUOTE,ST_HEREDOC{ESCAPED_AND_WHITESPACE } { + HANDLE_NEWLINES(yytext, yyleng); + zendlval-value.str.val = (char *) estrndup(yytext, yyleng); + zendlval-value.str.len = yyleng; + zendlval-type = IS_STRING; + return T_ENCAPSED_AND_WHITESPACE; +} + ST_SINGLE_QUOTE([^'\\]|\\[^'\\])+ { HANDLE_NEWLINES(yytext, yyleng); zend_copy_value(zendlval, yytext, yyleng); On Sunday, November 10, 2002, at 06:05 PM, Paul Nicholson wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 It's the list, I don't think they allow attachmentsdo you have web space you could upload to? On Sunday 10 November 2002 05:16 pm, Derick Rethans wrote: On Sun, 10 Nov 2002, George Schlossnagle wrote: For those who came to Dan my or Derick's talk at the Int. PHP Conference, we both covered the bad inefficiency in the parser that results in strings with variables in them being tokenized on whitespace. This results in a huge number of unnecessary opcodes in strings. Attached (hopefully, as my new MUA seems to be fickle) is a first shot at a fix to the parser to keep this from happening, so that you don't need an optimizer to clear up this issue. I've tested this locally. It still introduces a single unnecessary opcode after variable in certain cases, but it works for me. hmm, your MUA is getting senile :) no attachment... Derick - -- ~Paul Nicholson Design Specialist @ WebPower Design The webthe way you want it! [EMAIL PROTECTED] www.webpowerdesign.net It said uses Windows 98 or better, so I loaded Linux! Registered Linux User #183202 using Register Linux System # 81891 -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9zuZNDyXNIUN3+UQRAlYEAJ9PE5IKScOc+7/Kk1a71jJ87o7+EgCfV9z7 u+KZNZj2lZWzXmRiZmYrq4U= =ChWV -END PGP SIGNATURE- -- PHP
Re: [PHP-DEV] Re: apache_hooks
Hrm.. That's not a bad idea. An ApacheHooks SAPI module sounds like the right approach to me. Would it be possible to load them both (ApacheHooks and mod_php) at the same time? Edin -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Changelog broken?
Hi, the Changelog file in the php4 cvs tree is unchanged since 7 days. Is the script (cvs2cl ?) broken? Regards, Steve -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Win32 snaps ext/xslt
On Tue, 2002-11-05 at 15:09, Melvyn Sopacua wrote: At 14:58 11/5/2002 +0100, Edin Kadribasic wrote: As a note: Ginger Alliance is motivated to synchronise their next maintenance release, with php 4.3, to avoid the unfortunate API incompatibilities, that plagued previous releases and created noise, both on sablist as on the php-bug db. Allthough we try to keep compatibility with 0.96, there are a number of new features in 0.97(?) implemented for the php extension. Any chance that 4.3.0-release can be built with that version? During RC* shouldn't matter - in fact it would show if BC is not broken on win32. But 0.97 has not been released yet, has it? If it gets released please drop me a note so I can upgrade the lib on our win32 build machine. Yes, correct. The plan is they release 0.97RC at the same time, we release RC1, so feedback on the new combi can be addressed in 0.97 release. one question about that: will sablotron replaced the name of their Arena() class to SabArena in 0.97, so it won't crash PHP when compiled with ext/xslt and ext/java? That would be great. The Sablotron developers said, they will do it, but unfortunately not when :) see http://bugs.php.net/bug.php?id=13344 for details chregu -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] php 4 and Zend 2
Hi, how can I try php4 and zend 2 ? I'm need it to write a book.. If I need to get the cvs version, how ? other than cvs co php4 is there a possibility to know where php5 go out ? bye and tnx. -- -- Vendo tutto per esaurimento (Insegna in un negozio) -- Michel ZioBudda Morelli [EMAIL PROTECTED] ICQ UIN: 58351764 PR of Linux in Italy http://www.ziobudda.net http://www.phpdev.it -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] htmlspecialchars iso-2022-jp patch
Attached is a patch which allows iso-2022-jp (jis) encoded text to be passed through htmlspecialchars when the character set is set to ISO-2022-JP. It should also fix a tiny bug I found in determine_charset code where len hadn't been set and then doing its charset map walk. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] php 4 and Zend 2
Just check out php4-ze2 , it's an alias and will check out the ZendEngine2 module in the proper directory within php4. On Mon, Nov 11, 2002 at 11:50:36AM +0100, michel 'ziobudda' morelli wrote : Hi, how can I try php4 and zend 2 ? I'm need it to write a book.. If I need to get the cvs version, how ? other than cvs co php4 is there a possibility to know where php5 go out ? bye and tnx. -- -- Vendo tutto per esaurimento (Insegna in un negozio) -- Michel ZioBudda Morelli [EMAIL PROTECTED] ICQ UIN: 58351764 PR of Linux in Italy http://www.ziobudda.net http://www.phpdev.it -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc $ grep docref_root php.ini docref_root = http://landonize.it/?how=urltheme=classicfilter=RichyHuser=imajesurl=http%3A%2F%2Fphp.net%2F/; -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] htmlspecialchars iso-2022-jp patch
Zitat von Adrian Gartland [EMAIL PROTECTED]: Attached is a patch which allows iso-2022-jp (jis) encoded text to be passed through htmlspecialchars when the character set is set to ISO-2022-JP. It should also fix a tiny bug I found in determine_charset code where len hadn't been set and then doing its charset map walk. Your attachment didn't go through the mailing list filters. Please post a link where the patch can be downloaded. Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] htmlspecialchars iso-2022-jp patch
It would be better to try inlining your patch also. I'm very interested in the patch. Moriyoshi Adrian Gartland [EMAIL PROTECTED] wrote: Attached is a patch which allows iso-2022-jp (jis) encoded text to be passed through htmlspecialchars when the character set is set to ISO-2022-JP. It should also fix a tiny bug I found in determine_charset code where len hadn't been set and then doing its charset map walk. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] htmlspecialchars iso-2022-jp patch
http://support.oregan.net/php/php_htmlspecialchars_iso_2022-jp.patch On 11 Nov 02, Jan Schneider [EMAIL PROTECTED] wrote: Zitat von Adrian Gartland [EMAIL PROTECTED]: Attached is a patch which allows iso-2022-jp (jis) encoded text to be passed through htmlspecialchars when the character set is set to ISO-2022-JP. It should also fix a tiny bug I found in determine_charset code where len hadn't been set and then doing its charset map walk. Your attachment didn't go through the mailing list filters. Please post a link where the patch can be downloaded. Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] htmlspecialchars iso-2022-jp patch
Could you make a patch diff'ed against the latest version of html.c in HEAD branch? determine_charset() issue which you pointed out seems to have been fixed already. Moriyoshi Adrian Gartland [EMAIL PROTECTED] wrote: http://support.oregan.net/php/php_htmlspecialchars_iso_2022-jp.patch On 11 Nov 02, Jan Schneider [EMAIL PROTECTED] wrote: Zitat von Adrian Gartland [EMAIL PROTECTED]: Attached is a patch which allows iso-2022-jp (jis) encoded text to be passed through htmlspecialchars when the character set is set to ISO-2022-JP. It should also fix a tiny bug I found in determine_charset code where len hadn't been set and then doing its charset map walk. Your attachment didn't go through the mailing list filters. Please post a link where the patch can be downloaded. Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Openssl / DBA extensions broken on windows
Could the maintainers have a look? Details available at http://snaps.php.net/win32/compile.log Edin -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] [RFC] php-cli: option to ignore php.ini
What are your opinions for having some option to prevent the loading/parsing of php.ini for the CLI version of PHP? -n No Ini File - skips parsing php.ini on startup At the moment, I'm using -c DOESNOTEXIST to achieve the same result, but this is a bit hacky. --Wez. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] [RFC] php-cli: option to ignore php.ini
On Mon, 11 Nov 2002, Wez Furlong wrote: What are your opinions for having some option to prevent the loading/parsing of php.ini for the CLI version of PHP? -n No Ini File - skips parsing php.ini on startup At the moment, I'm using -c DOESNOTEXIST to achieve the same result, but this is a bit hacky. +1 Edin -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Changelog broken?
On Mon, 11 Nov 2002, Steve Alberty wrote: Hi, the Changelog file in the php4 cvs tree is unchanged since 7 days. Is the script (cvs2cl ?) broken? It's actually rcs2log script with some modifications. And yes, I think the number of CVS accounts has finally broken this poor script's back. awk dies with the message argument list too long. -Andrei http://www.gravitonic.com/ * I do not envy the guy at [EMAIL PROTECTED] -- me * -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] 64-bit PHP 4.3 (extensive long vs int problems)
Why not just convert to using a long? Is there really a need to have 2 numeric types in the ini system? -Jason On Mon, 2002-11-11 at 00:20, Andi Gutmans wrote: Hi, How about changing the INI_ENTRY macros in debug mode to check if we're using UpdateInt/UpdateLong and if so check if sizeof(param) == sizeof(int/long)? This could help a lot. Andi At 01:12 PM 11/11/2002 +0800, James Devenish wrote: Hi, just some followup, including some general build problems and some information about failed tests at the bottom. I have included a set of patches against 4.3.0pre2 and against CVS HEAD for anyone who's interested in seeking some form of success with PHP 4.3 on a 64-bit platform. Someone will need to tell me what mailing lists to send to, etc (I am on php-dev and php-qa to read followups). I'm not sure how to get `make test` results to you as the script asks 'would you like to send the report to PHP's QA team' but I say 'n' because I can't send or receive mail on the machine that I am testing on. I had a few notes about them, too. note: I have just real run-tests.php and see a that it submits over the web. Will use to this sometime The `make test` target doesn't work on my test machine (either in the 4.3.0pre2 or when using buildconf) because my $(CC) contains a space character. So as the target is: test: $(SAPI_CLI_PATH) TEST_PHP_DETAILED TEST_PHP_EXECUTABLE=$(top_builddir)/$(SAPI_CLI_PATH) \ TEST_PHP_SRCDIR=$(top_srcdir) \ CC=$(CC) \ $(top_builddir)/$(SAPI_CLI_PATH) $(top_srcdir)/run-tests.php $(TESTS) I change thae second-last line to : CC=$(CC) \ to make it work for me. I don't know how that should be handled in general but I thought I should point it out. Okay, `make test` still not work. Many segfaults in mbstring. Also, there seems to be something wrong because there are multiple definitions of url_adapt_ext, yet only one is used. Also a patch for network.c. The attached patches are against 4.3.0pre2, which is what I ran `make test` with, though I am actually using CVS HEAD with my test web server. (From a few days ago.) Note: I only just realised that if I run `make test` and it print no output other than 'Bus error' for a while, it *is* actually testing correctly. I didn't realise that `make test` only prints test results at the very end and I had been killing it in the middle of the test because it didn't seem to be working So, the patch includes: sundry correction of (int size)=(pointer size) assumptions, introduction of OnUpdateLong, some zend_parse_parameters fixes. Does not address all instances of sizeof( blah_t ) != sizeof( operand ). = FAILED TEST SUMMARY - mb_strtoupper() / mb_strtolower() [ext/mbstring/tests/casefold.phpt] HTML input/output [ext/mbstring/tests/htmlent.phpt] mb_convert_encoding() [ext/mbstring/tests/mb_convert_encoding.phpt] mb_ereg() [ext/mbstring/tests/mb_ereg.phpt] mb_ereg_search() stuff [ext/mbstring/tests/mb_ereg_search_xxx.phpt] mb_strlen() [ext/mbstring/tests/mb_strlen.phpt] **mbstring: extensive issues with mixed int/pointer. Test array_merge and array_walk [ext/standard/tests/array/001.phpt] Test arsort, asort, krsort, ksort, rsort, and sort [ext/standard/tests/array/002.phpt] Test usort, uksort and uasort [ext/standard/tests/array/003.phpt] **array tests: error in the tests: ext/standard/tests/array/data.inc contains monkey whereas the test expected results do not. Also, one test uses pow(2,64) and expects the result to overflow in a 32-bit way. These problems have been partially fixed in CVS already. var_dump float test [ext/standard/tests/general_functions/008.phpt] overflow check for _php_math_basetozval [ext/standard/tests/math/hexdec.phpt] **var_dump and hexdec: the expected overflows do not occur with 64-bit operands :) Simple math tests [ext/standard/tests/math/abs.phpt] Simple math tests [ext/standard/tests/math/round.phpt] **maths tests: issues with LONG_MIN and LONG_MAX Various pow() tests [ext/standard/tests/math/pow.phpt] **no comment from me crc32() function [ext/standard/tests/strings/crc32.phpt] **crc32: uses Zend's RETVAL_LONG but test expects 32-bit overflow. strtotime() function [ext/standard/tests/time/002.phpt] **no comment from me Methods via variable name, bug #20120 [tests/classes/bug20120.phpt] **My bison is bison-1.50, addressed by the bug fix (closed). This problem was also visible as an error message during PEAR installation. = Given the bison problem, my previous comments about Zend might be doubtful. working Mmm, new bison fixed the last failed test. Other tests unchanged wrt 4.3.0pre2. Latest CVS version
[PHP-DEV] PHP Update practices?
Is it common practice for hosting providers to update to newer versions of PHP without warning to virtual hosting clients? And should I expect those updates to be bug-free? Liquidweb recently updated to php 4.2.3 and soon after I noticed that significant chunks of my commercial web site ceased to function. Turned out to be due to a bug in PHP. Is this just something site managers have to deal with, or should I be looking for another host? --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.408 / Virus Database: 230 - Release Date: 10/24/2002 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] htmlspecialchars iso-2022-jp patch
New patch applied against the current php4-latest.tar.gz, same location: http://support.oregan.net/php/php_htmlspecialchars_iso_2022-jp.patch On 11 Nov 02, Moriyoshi Koizumi [EMAIL PROTECTED] wrote: Could you make a patch diff'ed against the latest version of html.c in HEAD branch? determine_charset() issue which you pointed out seems to have been fixed already. Moriyoshi Adrian Gartland [EMAIL PROTECTED] wrote: http://support.oregan.net/php/php_htmlspecialchars_iso_2022-jp.patch On 11 Nov 02, Jan Schneider [EMAIL PROTECTED] wrote: Zitat von Adrian Gartland [EMAIL PROTECTED]: Attached is a patch which allows iso-2022-jp (jis) encoded text to be passed through htmlspecialchars when the character set is set to ISO-2022-JP. It should also fix a tiny bug I found in determine_charset code where len hadn't been set and then doing its charset map walk. Your attachment didn't go through the mailing list filters. Please post a link where the patch can be downloaded. Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- Adrian Gartland - Senior Systems Engineer - TV Portal Team Oregan Networks UK Ltd Tel: +44 (0) 20 8846 0990 The White Building, 52-54 Glentham RoadFax: +44 (0) 20 8646 0999 Barnes, London. SW13 9JJ, United Kingdom WWW: http://www.oregan.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] [Fwd: [CVS] karma for sybase docs]
Is [EMAIL PROTECTED] the wrong address to send this? There hasn't been any response on this so far (neither negative nor positive)... -Forwarded Message- From: Timm Friebe [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [CVS] karma for sybase docs Date: 07 Nov 2002 12:39:42 +0100 thekid@friebes:~/devel/php/phpdoc/en/reference/sybase cvs com -m '- Added documentation for the new function sybase_fetch_assoc() (Timm)' functions/sybase-fetch-assoc.xml Access denied: insufficient karma (thekid|phpdoc/en/reference/sybase/functions) Contact [EMAIL PROTECTED] for access to phpdoc/en/reference/sybase/functions cvs server: Pre-commit check failed cvs [server aborted]: correct above errors first! I wrote up some documentation about my changes to ext/sybase_ct. - Diff http://sitten-polizei.de/php/documentation.diff - New files http://sitten-polizei.de/php/sybase-fetch-assoc.xml http://sitten-polizei.de/php/sybase-set-message-handler.xml http://sitten-polizei.de/php/sybase-unbuffered-query.xml Could someone either apply these changes or give me the karma to do so? I could also provide documentation in German if needed. -- Timm Any sufficiently advanced bug is indistinguishable from a feature -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] CVS Account Request: mrioux
- [EMAIL PROTECTED]% (Chris Shiflett): I assume it is because such an extension would somehow be required to be covered under the GPL as well, but I don't understand that. Shouldn't it be possible for the PHP extension's code to be licensed any license and simply use a GPL library? The extension's code would be copyrighted by the author, correct? So, why can't the author decide what terms his/her code is licensed under? Just curious - I've heard this before and have never understood. The point being that this is what the LGPL is for; since the GPL is far more viral than LGPL. I'd suggest having a look at http://www.gnu.org/licenses/gpl-faq.html for answers to any questions you may have about the GPL. We looked into embedding a GPLed template-engine in one of our projects and concluded that it would be impractical concering the requirements of the GPL, since this would require us to publish our project under the GPL too (at least the way we interpreted the license). -- mats -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DEV] bison error [was: PHP 4.3.0]
is that on win32? or linux ? -Original Message- From: Rasmus Lerdorf [mailto:rasmus;php.net] Sent: Friday, November 08, 2002 5:01 PM To: Dave Viner Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DEV] bison error [was: PHP 4.3.0] I'm not seeing any problems with bison-1.75 here. On Fri, 8 Nov 2002, Dave Viner wrote: here's the message i posted to [EMAIL PROTECTED] for more help in the bison problem. http://www.geocrawler.com/lists/3/GNU/350/0/10107563/ I'm not good enough with bison to understand why it produces no error message and yet does not produce a .c file. even reducing the bison command to its simplest form: Administrator@DVINER-LAP /cygdrive/d/php/php4/Zend $ bison zend_language_parser.y Administrator@DVINER-LAP /cygdrive/d/php/php4/Zend $ ls -l zend_language_parser* -rwxr-xr-x1 Administ None33095 Nov 6 09:56 zend_language_parser.y Administrator@DVINER-LAP /cygdrive/d/php/php4/Zend $ bison zend_ini_parser.y zend_ini_parser.y:215.4-6: unrecognized escape: `\\0' Administrator@DVINER-LAP /cygdrive/d/php/php4/Zend $ ls -l zend_ini_parser* -rwxr-xr-x1 Administ None 6336 Nov 6 09:56 zend_ini_parser.y Administrator@DVINER-LAP /cygdrive/d/php/php4/Zend $ Still fails. The zend_ini_parser produces a warning or error at least. zend_ini_parser.y:215.4-6: unrecognized escape: `\\0' But I'm not good enough with bison to know how to fix it ! dave -Original Message- From: Andi Gutmans [mailto:andi;zend.com] Sent: Friday, November 08, 2002 2:34 PM To: [EMAIL PROTECTED] Subject: [PHP-DEV] PHP 4.3.0 Hey, What's the schedule for 4.3? It seems to be lingering. That said I'd like to resolve the bison issue before we release it (i.e. make sure that ZE1 isn't bitten by versions 1.28). Andi -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] PHP Update practices?
On Mon, 11 Nov 2002, lowbwtom wrote: Is it common practice for hosting providers to update to newer versions of PHP without warning to virtual hosting clients? And should I expect those updates to be bug-free? Hosting companies should definitely warn their clients, but the PHP team of course tries to making upgrading between minor version happen without any hassle. It was unfortunate that this bug crept it. Liquidweb recently updated to php 4.2.3 and soon after I noticed that significant chunks of my commercial web site ceased to function. Turned out to be due to a bug in PHP. I bet it was solved by using --disable-mbstr-enc-trans... Is this just something site managers have to deal with, or should I be looking for another host? Well, if you can not trust your host to warn you when they upgrade I suggest to change hosts or atleast talk to them about this. (The most ideal way would be to get your own dedicated box and let them upgrade it when _you_ ask for it). regards, Derick -- --- Derick Rethans http://derickrethans.nl/ JDI Media Solutions --[ if you hold a unix shell to your ear, do you hear the c? ]- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Getting escape chars through the parser without warnings
When using iso-2022-jp encoded strings within the I have to resort to doing error_reporting = ~E_COMPILE_WARNING to avoid getting a million Warning: Unexpected character in input: '' (ASCII=27) state=2 in in the page. iso-2022-jp uses escape characters go in and out of JIS charsets. Compile warnining are pretty important for development. Are there are less drastic ways of allowing the escape character through? As an example of its use, it goes something along the lines of ? $asTokenStrings[LANG:AGENDA:LONG_DAYNAME_MON] = ascii-like-text here ESC$B7nMKF|ESC(B ascii-like-text-here; echo $asTokenStrings[LANG:AGENDA:LONG_DAYNAME_MON]; ? -- Adrian Gartland - Senior Systems Engineer - TV Portal Team Oregan Networks UK Ltd Tel: +44 (0) 20 8846 0990 The White Building, 52-54 Glentham RoadFax: +44 (0) 20 8646 0999 Barnes, London. SW13 9JJ, United Kingdom WWW: http://www.oregan.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] libtool aclocal.m4 problems (4.3)
I am tracking down a warning when running phpize: catnip 09:44:27 bfrance phpize You should update your `aclocal.m4' by running aclocal. Configuring for: PHP Api Version: 20020918 Zend Module Api No: 20020429 Zend Extension Api No: 20021010 phpize is running libtoolize -f -c which does: egrep '^AC_DEFUN\(A[MC]_PROG_LIBTOOL' aclocal.m4 The problem is aclocal.m4 doesn't have a line like this: AC_DEFUN\(A[MC]_PROG_LIBTOO it does have a line that would match this (added the \[), but that would mean changing libtool: AC_DEFUN\(\[A[MC]_PROG_LIBTOO The problem is I don't know enough about aclocal.m4 to know if just removing the []'s around AC_DEFUN([AC_PROG_LIBTOOL], (Line 1831) will break other things. Or is there another way to fix it? libtool-1.4.2 FreeBSD 4.x Thanks, Brian -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DEV] bison error [was: PHP 4.3.0]
Linux On Mon, 11 Nov 2002, Dave Viner wrote: is that on win32? or linux ? -Original Message- From: Rasmus Lerdorf [mailto:rasmus;php.net] Sent: Friday, November 08, 2002 5:01 PM To: Dave Viner Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DEV] bison error [was: PHP 4.3.0] I'm not seeing any problems with bison-1.75 here. On Fri, 8 Nov 2002, Dave Viner wrote: here's the message i posted to [EMAIL PROTECTED] for more help in the bison problem. http://www.geocrawler.com/lists/3/GNU/350/0/10107563/ I'm not good enough with bison to understand why it produces no error message and yet does not produce a .c file. even reducing the bison command to its simplest form: Administrator@DVINER-LAP /cygdrive/d/php/php4/Zend $ bison zend_language_parser.y Administrator@DVINER-LAP /cygdrive/d/php/php4/Zend $ ls -l zend_language_parser* -rwxr-xr-x1 Administ None33095 Nov 6 09:56 zend_language_parser.y Administrator@DVINER-LAP /cygdrive/d/php/php4/Zend $ bison zend_ini_parser.y zend_ini_parser.y:215.4-6: unrecognized escape: `\\0' Administrator@DVINER-LAP /cygdrive/d/php/php4/Zend $ ls -l zend_ini_parser* -rwxr-xr-x1 Administ None 6336 Nov 6 09:56 zend_ini_parser.y Administrator@DVINER-LAP /cygdrive/d/php/php4/Zend $ Still fails. The zend_ini_parser produces a warning or error at least. zend_ini_parser.y:215.4-6: unrecognized escape: `\\0' But I'm not good enough with bison to know how to fix it ! dave -Original Message- From: Andi Gutmans [mailto:andi;zend.com] Sent: Friday, November 08, 2002 2:34 PM To: [EMAIL PROTECTED] Subject: [PHP-DEV] PHP 4.3.0 Hey, What's the schedule for 4.3? It seems to be lingering. That said I'd like to resolve the bison issue before we release it (i.e. make sure that ZE1 isn't bitten by versions 1.28). Andi -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] 64-bit PHP 4.3 (extensive long vs int problems)
Well I assume lots of extension maintainers are using int's for all sorts of things. I'm not sure it's a good idea to try and catch every last place. In any case, even if we convert everything then my suggestion still stands because it'd help us catch places which aren't defined correctly. Andi At 10:42 AM 11/11/2002 -0600, Jason T. Greene wrote: Why not just convert to using a long? Is there really a need to have 2 numeric types in the ini system? -Jason On Mon, 2002-11-11 at 00:20, Andi Gutmans wrote: Hi, How about changing the INI_ENTRY macros in debug mode to check if we're using UpdateInt/UpdateLong and if so check if sizeof(param) == sizeof(int/long)? This could help a lot. Andi At 01:12 PM 11/11/2002 +0800, James Devenish wrote: Hi, just some followup, including some general build problems and some information about failed tests at the bottom. I have included a set of patches against 4.3.0pre2 and against CVS HEAD for anyone who's interested in seeking some form of success with PHP 4.3 on a 64-bit platform. Someone will need to tell me what mailing lists to send to, etc (I am on php-dev and php-qa to read followups). I'm not sure how to get `make test` results to you as the script asks 'would you like to send the report to PHP's QA team' but I say 'n' because I can't send or receive mail on the machine that I am testing on. I had a few notes about them, too. note: I have just real run-tests.php and see a that it submits over the web. Will use to this sometime The `make test` target doesn't work on my test machine (either in the 4.3.0pre2 or when using buildconf) because my $(CC) contains a space character. So as the target is: test: $(SAPI_CLI_PATH) TEST_PHP_DETAILED TEST_PHP_EXECUTABLE=$(top_builddir)/$(SAPI_CLI_PATH) \ TEST_PHP_SRCDIR=$(top_srcdir) \ CC=$(CC) \ $(top_builddir)/$(SAPI_CLI_PATH) $(top_srcdir)/run-tests.php $(TESTS) I change thae second-last line to : CC=$(CC) \ to make it work for me. I don't know how that should be handled in general but I thought I should point it out. Okay, `make test` still not work. Many segfaults in mbstring. Also, there seems to be something wrong because there are multiple definitions of url_adapt_ext, yet only one is used. Also a patch for network.c. The attached patches are against 4.3.0pre2, which is what I ran `make test` with, though I am actually using CVS HEAD with my test web server. (From a few days ago.) Note: I only just realised that if I run `make test` and it print no output other than 'Bus error' for a while, it *is* actually testing correctly. I didn't realise that `make test` only prints test results at the very end and I had been killing it in the middle of the test because it didn't seem to be working So, the patch includes: sundry correction of (int size)=(pointer size) assumptions, introduction of OnUpdateLong, some zend_parse_parameters fixes. Does not address all instances of sizeof( blah_t ) != sizeof( operand ). = FAILED TEST SUMMARY - mb_strtoupper() / mb_strtolower() [ext/mbstring/tests/casefold.phpt] HTML input/output [ext/mbstring/tests/htmlent.phpt] mb_convert_encoding() [ext/mbstring/tests/mb_convert_encoding.phpt] mb_ereg() [ext/mbstring/tests/mb_ereg.phpt] mb_ereg_search() stuff [ext/mbstring/tests/mb_ereg_search_xxx.phpt] mb_strlen() [ext/mbstring/tests/mb_strlen.phpt] **mbstring: extensive issues with mixed int/pointer. Test array_merge and array_walk [ext/standard/tests/array/001.phpt] Test arsort, asort, krsort, ksort, rsort, and sort [ext/standard/tests/array/002.phpt] Test usort, uksort and uasort [ext/standard/tests/array/003.phpt] **array tests: error in the tests: ext/standard/tests/array/data.inc contains monkey whereas the test expected results do not. Also, one test uses pow(2,64) and expects the result to overflow in a 32-bit way. These problems have been partially fixed in CVS already. var_dump float test [ext/standard/tests/general_functions/008.phpt] overflow check for _php_math_basetozval [ext/standard/tests/math/hexdec.phpt] **var_dump and hexdec: the expected overflows do not occur with 64-bit operands :) Simple math tests [ext/standard/tests/math/abs.phpt] Simple math tests [ext/standard/tests/math/round.phpt] **maths tests: issues with LONG_MIN and LONG_MAX Various pow() tests [ext/standard/tests/math/pow.phpt] **no comment from me crc32() function [ext/standard/tests/strings/crc32.phpt] **crc32: uses Zend's RETVAL_LONG but test expects 32-bit overflow. strtotime() function [ext/standard/tests/time/002.phpt] **no comment from me Methods via variable name, bug #20120 [tests/classes/bug20120.phpt] **My bison is bison-1.50, addressed by the bug fix
Re: [PHP-DEV] ZEND_ADD_STRING patch
Hi, I still think the patch isn't good. encaps_list which is the main parser rule can parse: T_VARIABLE T_OBJECT_OPERATOR T_STRING Your version of T_STRING would break this. Again I might be missing something but my hunch is that it would break. Andi At 03:06 AM 11/11/2002 -0500, George Schlossnagle wrote: The patch I submitted included BACKQUOTES in the token matching as well. I'm not convinced that is bad, but I will try to thoroughly test it tomorrow, and if it's broken, I'll just case it for and heredocs. George On Monday, November 11, 2002, at 01:56 AM, Andi Gutmans wrote: OH I missed that. I'll check it out this evening as I have to go now. Andi At 01:48 AM 11/11/2002 -0500, George Schlossnagle wrote: Unless I misunderstand the way this works, it's not a problem that it returns a T_STRING, only possibly that it does so inside a BACKQUOTES. Function names and constants aren't available as barewords in DOUBLE_QUOTES or HEREDOCs, right? On Monday, November 11, 2002, at 01:12 AM, Andi Gutmans wrote: Hi, A patch which improves on this would be welcome. However, this patch at first glance is bogus. You are returning T_STRING with possible spaces and other non A-Za-z_ chars. This token is also used as tokens such as constants and function names . Andi At 06:31 PM 11/10/2002 -0500, George Schlossnagle wrote: that would be my debugging from my 'clean' cvs copy. :) You don't want that. Sorry. Here's a better patch: Index: zend_language_scanner.l === RCS file: /repository/Zend/zend_language_scanner.l,v retrieving revision 1.51 diff -u -3 -r1.51 zend_language_scanner.l --- zend_language_scanner.l 2 Nov 2002 16:32:26 - 1.51 +++ zend_language_scanner.l 10 Nov 2002 23:30:28 - @@ -686,6 +686,7 @@ HNUM 0x[0-9a-fA-F]+ LABEL [a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]* WHITESPACE [ \n\r\t]+ +LABEL_OR_WHITESPACE [a-zA-Z0-9_\x7f-\xff \n\t\r #'.:;,()|^+-/*=%!~?@]+ TABS_AND_SPACES [ \t]* TOKENS [;:,.\[\]()|^+-/*=%!~$?@] ENCAPSED_TOKENS [\[\]{}$] @@ -1269,7 +1270,7 @@ } -ST_DOUBLE_QUOTES,ST_BACKQUOTE,ST_HEREDOC{LABEL} { +ST_DOUBLE_QUOTES,ST_BACKQUOTE,ST_HEREDOC{LABEL_OR_WHITESPACE} { zend_copy_value(zendlval, yytext, yyleng); zendlval-type = IS_STRING; return T_STRING; @@ -1569,15 +1570,6 @@ zendlval-type = IS_STRING; return T_STRING; } -} - - -ST_DOUBLE_QUOTES,ST_BACKQUOTE,ST_HEREDOC{ESCAPED_AND_WHITESPACE} { - HANDLE_NEWLINES(yytext, yyleng); - zendlval-value.str.val = (char *) estrndup(yytext, yyleng); - zendlval-value.str.len = yyleng; - zendlval-type = IS_STRING; - return T_ENCAPSED_AND_WHITESPACE; } ST_SINGLE_QUOTE([^'\\]|\\[^'\\])+ { On Sunday, November 10, 2002, at 06:25 PM, Moriyoshi Koizumi wrote: --snip +fprintf(stderr, %s:%d\n, __FILE__,__LINE__); What's this fprintf()? This seems to be put just for debugging purpose. Moriyosh return T_STRING; } -ST_DOUBLE_QUOTES,ST_BACKQUOTE,ST_HEREDOC{LABEL_OR_WHITESPACE} { +ST_DOUBLE_QUOTES,ST_BACKQUOTE,ST_HEREDOC{LABEL} { zend_copy_value(zendlval, yytext, yyleng); zendlval-type = IS_STRING; +fprintf(stderr, %s:%d\n, __FILE__,__LINE__); return T_STRING; } @@ -1572,6 +1573,15 @@ } } + +ST_DOUBLE_QUOTES,ST_BACKQUOTE,ST_HEREDOC{ESCAPED_AND_WHITESPACE } { + HANDLE_NEWLINES(yytext, yyleng); + zendlval-value.str.val = (char *) estrndup(yytext, yyleng); + zendlval-value.str.len = yyleng; + zendlval-type = IS_STRING; + return T_ENCAPSED_AND_WHITESPACE; +} + ST_SINGLE_QUOTE([^'\\]|\\[^'\\])+ { HANDLE_NEWLINES(yytext, yyleng); zend_copy_value(zendlval, yytext, yyleng); On Sunday, November 10, 2002, at 06:05 PM, Paul Nicholson wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 It's the list, I don't think they allow attachmentsdo you have web space you could upload to? On Sunday 10 November 2002 05:16 pm, Derick Rethans wrote: On Sun, 10 Nov 2002, George Schlossnagle wrote: For those who came to Dan my or Derick's talk at the Int. PHP Conference, we both covered the bad inefficiency in the parser that results in strings with variables in them being tokenized on whitespace. This results in a huge number of unnecessary opcodes in strings. Attached (hopefully, as my new MUA seems to be fickle) is a first shot at a fix to the parser to keep this from happening, so that you don't need an optimizer to clear up this issue. I've tested this locally. It still introduces a single unnecessary opcode after variable in certain cases, but it works for me. hmm, your MUA is getting senile :) no attachment... Derick - -- ~Paul Nicholson Design Specialist @ WebPower Design The webthe way you want it! [EMAIL PROTECTED] www.webpowerdesign.net It said uses Windows 98 or better, so I loaded Linux! Registered Linux User #183202
Re: [PHP-DEV] Getting escape chars through the parser without warnings
Generally it's not considered to be a good idea to use iso-2022-jp encoding in your script because the scanner doesn't accept control codes in a string literal that is used to form shift sequences, and iso-2022-jp encoded strings may contain escape characters '\', which causes unexpected results. You can modify the scanner rules in Zend/zend_language_scanner.l and avoid those warnings indeed, but it won't help you write portable scripts. The current ZendEngine offers a limited support for multibyte encodings to solve such issues that can be enabled by specifying --enable-zend-multibyte option in configure, but it doesn't support any stateful encodings yet. (Though I'd like to see it fully supported) If you want to handle multibyte characters, you can use EUC-JP, Shift_JIS, or UTF-8 and convert the strings to the iso-2022-jp encoded ones either by mb_convert_encoding() or iconv() function whenever necessary. Or it is not enough ?? :) Moriyoshi Adrian Gartland [EMAIL PROTECTED] wrote: When using iso-2022-jp encoded strings within the I have to resort to doing error_reporting = ~E_COMPILE_WARNING to avoid getting a million Warning: Unexpected character in input: '' (ASCII=27) state=2 in in the page. iso-2022-jp uses escape characters go in and out of JIS charsets. Compile warnining are pretty important for development. Are there are less drastic ways of allowing the escape character through? As an example of its use, it goes something along the lines of ? $asTokenStrings[LANG:AGENDA:LONG_DAYNAME_MON] = ascii-like-text here ESC$B7nMKF|ESC(B ascii-like-text-here; echo $asTokenStrings[LANG:AGENDA:LONG_DAYNAME_MON]; ? -- Adrian Gartland - Senior Systems Engineer - TV Portal Team Oregan Networks UK Ltd Tel: +44 (0) 20 8846 0990 The White Building, 52-54 Glentham RoadFax: +44 (0) 20 8646 0999 Barnes, London. SW13 9JJ, United Kingdom WWW: http://www.oregan.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] htmlspecialchars iso-2022-jp patch
Thanks, I'll take a look at it. Moriyoshi Adrian Gartland [EMAIL PROTECTED] wrote: New patch applied against the current php4-latest.tar.gz, same location: http://support.oregan.net/php/php_htmlspecialchars_iso_2022-jp.patch On 11 Nov 02, Moriyoshi Koizumi [EMAIL PROTECTED] wrote: Could you make a patch diff'ed against the latest version of html.c in HEAD branch? determine_charset() issue which you pointed out seems to have been fixed already. Moriyoshi Adrian Gartland [EMAIL PROTECTED] wrote: http://support.oregan.net/php/php_htmlspecialchars_iso_2022-jp.patch On 11 Nov 02, Jan Schneider [EMAIL PROTECTED] wrote: Zitat von Adrian Gartland [EMAIL PROTECTED]: Attached is a patch which allows iso-2022-jp (jis) encoded text to be passed through htmlspecialchars when the character set is set to ISO-2022-JP. It should also fix a tiny bug I found in determine_charset code where len hadn't been set and then doing its charset map walk. Your attachment didn't go through the mailing list filters. Please post a link where the patch can be downloaded. Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- Adrian Gartland - Senior Systems Engineer - TV Portal Team Oregan Networks UK Ltd Tel: +44 (0) 20 8846 0990 The White Building, 52-54 Glentham RoadFax: +44 (0) 20 8646 0999 Barnes, London. SW13 9JJ, United Kingdom WWW: http://www.oregan.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] PHP Snaps
Is it possible to increase build time from 4 hours to 2 hours and use a time format that displays the timezone? marcus At 00:34 11.11.2002, James Cox wrote: Snaps are back! The snapserver is back up and alive, with both unix and win32 snaps... -- james -- James Cox :: [EMAIL PROTECTED] :: http://james.blogs.at/ Was I helpful? http://www.amazon.co.uk/exec/obidos/wishlist/23IVGHQ61RJGO/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Openssl / DBA extensions broken on windows
At 14:03 11.11.2002, Edin Kadribasic wrote: Could the maintainers have a look? Details available at http://snaps.php.net/win32/compile.log Edin Thanks for notifying :-) DBA fixed now - now next step in development... Hope this doesn't break win build again... marcus -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] libtool aclocal.m4 problems (4.3)
At 19:46 11-11-2002, Brian J. France wrote: I am tracking down a warning when running phpize: catnip 09:44:27 bfrance phpize You should update your `aclocal.m4' by running aclocal. Configuring for: PHP Api Version: 20020918 Zend Module Api No: 20020429 Zend Extension Api No: 20021010 phpize is running libtoolize -f -c which does: egrep '^AC_DEFUN\(A[MC]_PROG_LIBTOOL' aclocal.m4 This line is corrected in libtoolize that comes with 1.4.3. Just upgrade :) Met vriendelijke groeten / With kind regards, Webmaster IDG.nl Melvyn Sopacua -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/standard flock_compat.c flock_compat.h
I would like to move flock_compat.c/h from ext/standard/ to main/ since i am using it for ext/dba now and will use it inside main/streams.c. If Wez and me find a solution this way. marcus At 21:52 11.11.2002, Marcus Boerger wrote: helly Mon Nov 11 15:52:09 2002 EDT Modified files: /php4/ext/standard flock_compat.c flock_compat.h Log: -make the flock() emulation a separate function named php_flock() -use a define to make php_flock() available as flock() when necessary # The emulated php_flock even works on NFS this will be used elsewhere. Index: php4/ext/standard/flock_compat.c diff -u php4/ext/standard/flock_compat.c:1.18 php4/ext/standard/flock_compat.c:1.19 --- php4/ext/standard/flock_compat.c:1.18 Mon Nov 11 11:43:19 2002 +++ php4/ext/standard/flock_compat.cMon Nov 11 15:52:09 2002 -16,7 +16,7 +--+ */ -/* $Id: flock_compat.c,v 1.18 2002/11/11 16:43:19 helly Exp $ */ +/* $Id: flock_compat.c,v 1.19 2002/11/11 20:52:09 helly Exp $ */ #include php.h #include errno.h -41,7 +41,10 #endif #ifndef HAVE_FLOCK -PHPAPI int flock(int fd, int operation) +/* defines flock as php_flock */ +#endif /* !defined(HAVE_FLOCK) */ + +PHPAPI int php_flock(int fd, int operation) #if HAVE_STRUCT_FLOCK { struct flock flck; -157,7 +160,6 return 0; } #endif -#endif /* !defined(HAVE_FLOCK) */ #if !(HAVE_INET_ATON) /* {{{ inet_aton Index: php4/ext/standard/flock_compat.h diff -u php4/ext/standard/flock_compat.h:1.14 php4/ext/standard/flock_compat.h:1.15 --- php4/ext/standard/flock_compat.h:1.14 Mon Nov 11 11:43:19 2002 +++ php4/ext/standard/flock_compat.hMon Nov 11 15:52:09 2002 -16,17 +16,23 +--+ */ -/* $Id: flock_compat.h,v 1.14 2002/11/11 16:43:19 helly Exp $ */ +/* $Id: flock_compat.h,v 1.15 2002/11/11 20:52:09 helly Exp $ */ #ifndef FLOCK_COMPAT_H #define FLOCK_COMPAT_H +/* php_flock internally uses fcntl whther or not flock is available + * This way our php_flock even works on NFS files. + * More info: /usr/src/linux/Documentation + */ +PHPAPI int php_flock(int fd, int operation); + #ifndef HAVE_FLOCK # define LOCK_SH 1 # define LOCK_EX 2 # define LOCK_NB 4 # define LOCK_UN 8 -PHPAPI int flock(int fd, int operation); +# define flock php_flock #endif #ifdef PHP_WIN32 -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/snmp CREDITS php_snmp.h snmp.c
On Mon, 11 Nov 2002, Harrie Hazewinkel wrote: harrieMon Nov 11 16:09:19 2002 EDT Modified files: /php4/ext/snmpCREDITS php_snmp.h snmp.c Log: Adding SNMPv3 support. -113,6 +121,11 PHP_FE(snmp_get_quick_print, NULL) PHP_FE(snmp_set_quick_print, NULL) PHP_FE(snmpset, NULL) + PHP_FE(snmpv3get, NULL) + PHP_FE(snmpv3walk, NULL) + PHP_FE(snmpv3realwalk, NULL) + PHP_FALIAS(snmpv3walkoid, snmpv3realwalk, NULL) + PHP_FE(snmpv3set, NULL) {NULL,NULL,NULL} These function names don't follow the PHP standards, I think we should definitely come up with better names. Derick -- --- Derick Rethans http://derickrethans.nl/ JDI Media Solutions --[ if you hold a unix shell to your ear, do you hear the c? ]- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/snmp CREDITS php_snmp.hsnmp.c
At 10:22 PM 11/11/2002 +0100, Derick Rethans wrote: On Mon, 11 Nov 2002, Harrie Hazewinkel wrote: harrieMon Nov 11 16:09:19 2002 EDT Modified files: /php4/ext/snmpCREDITS php_snmp.h snmp.c Log: Adding SNMPv3 support. -113,6 +121,11 PHP_FE(snmp_get_quick_print, NULL) PHP_FE(snmp_set_quick_print, NULL) PHP_FE(snmpset, NULL) + PHP_FE(snmpv3get, NULL) + PHP_FE(snmpv3walk, NULL) + PHP_FE(snmpv3realwalk, NULL) + PHP_FALIAS(snmpv3walkoid, snmpv3realwalk, NULL) + PHP_FE(snmpv3set, NULL) {NULL,NULL,NULL} These function names don't follow the PHP standards, I think we should definitely come up with better names. I agree. what's wrong with snmp_get, snmp_walk, and so on? Andi -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] [php-zend-dev] pb of using an array
Ps :sorry if it s spam (i have retry several time because i was not enregistred ) Hello, I'am trying to develop a php-module. I have found a lot of help in the php manual and in code source of php, but i have still some problems to use array by parameter. I'd like to make a test function to take an array by parmeter, to re create it, and to return it but it's failed : ZEND_FUNCTION( sylvain_array_cpy ) { zval * arr; Bucket * ptr; HashTable * target_hash; if( zend_parse_parameters( ZEND_NUMS_ARGS() TSRMLS_CC, a, arr == FAILURE ) { return;} target_hash = HASH_OF(arr); ptr = target_hash - pListHead; array_init( return_value ); while( ptr != NULL ){ add_next_index_double( return_value, *((double*)(ptr-pData) ); ptr=ptr-pNext; } } In fact, i probably do not use the rigth methode : i just want to access to the element of my array (it a array : { 0=0.1, 1=12.2, ...} (array of double) thx for you help Sylvain -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] [php-Zend-dvlp] help me to use an array with zend
Hello, I'am trying to develop a php-module. I have found a lot of help in the php manual and in code source of php, but i have still some problems to use array by parameter. I'd like to make a test function to take an array by parmeter, to re create it, and to return it but it's failed : ZEND_FUNCTION( sylvain_array_cpy ) { zval * arr; Bucket * ptr; HashTable * target_hash; if( zend_parse_parameters( ZEND_NUMS_ARGS() TSRMLS_CC, a, arr == FAILURE ) { return;} target_hash = HASH_OF(arr); ptr = target_hash - pListHead; array_init( return_value ); while( ptr != NULL ){ add_next_index_double( return_value, *((double*)(ptr-pData) ); ptr=ptr-pNext; } } In fact, i probably do not use the rigth methode : i just want to access to the element of my array (it a array : { 0=0.1, 1=12.2, ...} (array of double) thx for you help Sylvain -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] [ZEND-PHP-DEV] Some technical help
Hello, I'am trying to develop a php-module. I have found a lot of help in the php manual and in code source of php, but i have still some problems to use array by parameter. I'd like to make a test function to take an array by parmeter, to re create it, and to return it but it's failed : ZEND_FUNCTION( sylvain_array_cpy ) { zval * arr; Bucket * ptr; HashTable * target_hash; if( zend_parse_parameters( ZEND_NUMS_ARGS() TSRMLS_CC, a, arr == FAILURE ) { return;} target_hash = HASH_OF(arr); ptr = target_hash - pListHead; array_init( return_value ); while( ptr != NULL ){ add_next_index_double( return_value, *((double*)(ptr-pData) ); ptr=ptr-pNext; } } In fact, i probably do not use the rigth methode : i just want to access to the element of my array (it a array : { 0=0.1, 1=12.2, ...} (array of double) thx for you help Sylvain -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] 64-bit PHP 4.3 (extensive long vs int problems)
On Monday, November 11, 2002, at 02:39 PM, Andi Gutmans wrote: Well I assume lots of extension maintainers are using int's for all sorts of things. I'm not sure it's a good idea to try and catch every last place. In any case, even if we convert everything then my suggestion still stands because it'd help us catch places which aren't defined correctly. Maybe I've missed the point, or I'm too tired to connect neurons today. But what is the point of trying to correct for places which aren't defined correctly? This seems like a rather odd/bad way of looking at this. If you've defined incorrectly, it just shouldn't work. I'd rather lean towards Jason's suggestion --- Dan KalowskyA little less conversation, http://www.deadmime.org/~danka little more action. [EMAIL PROTECTED]- A Little Less Conversation, [EMAIL PROTECTED]Elvis Presley -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Patch for bug #20272 (mbstr)
What's the ETA on a released patch or version (non-RC) to fix this bug? Any ideas on a quick work-around? Thanks, Tom -- Thank you, Tom Kirby VirginiaArtists.net PO Box 1261 * Glen Allen, VA 23060 804-262-6429 Subscribe to our newsletters! They are fantastic! http://virginiaartists.net/newsletter/ --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.408 / Virus Database: 230 - Release Date: 10/24/2002 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DEV] Changelog broken?
Changelog does seem to be broken, and it's on our list of things to do. Thanks, James -Original Message- From: Steve Alberty [mailto:staybyte;php.net] Sent: Monday, November 11, 2002 10:11 AM To: [EMAIL PROTECTED] Subject: [PHP-DEV] Changelog broken? Hi, the Changelog file in the php4 cvs tree is unchanged since 7 days. Is the script (cvs2cl ?) broken? Regards, Steve -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] RE: [PHP-QA] Re: [PHP-DEV] PHP Snaps
I can certainly set this up. any preference for timeformat? (bearing in mind we use unix date) -- james Is it possible to increase build time from 4 hours to 2 hours and use a time format that displays the timezone? marcus At 00:34 11.11.2002, James Cox wrote: Snaps are back! The snapserver is back up and alive, with both unix and win32 snaps... -- james -- James Cox :: [EMAIL PROTECTED] :: http://james.blogs.at/ Was I helpful? http://www.amazon.co.uk/exec/obidos/wishlist/23IVGHQ61RJGO/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Quality Assurance Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] PHP Snaps
On Monday 11 November 2002 23:07, James Cox wrote: I can certainly set this up. any preference for timeformat? (bearing in mind we use unix date) I use date -u +%Y%m%d%H00 for windows snapshots. It will show date in UTC. Is it possible to increase build time from 4 hours to 2 hours and use a time format that displays the timezone? Increase from 4 to 2 heh? Edin -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] PHP Snaps
On November 11, 2002 05:07 pm, James Cox wrote: I can certainly set this up. any preference for timeformat? (bearing in mind we use unix date) date -R | sed -e 's/ /_/g' Would be the best format IMHO. Ilia -- james Is it possible to increase build time from 4 hours to 2 hours and use a time format that displays the timezone? marcus At 00:34 11.11.2002, James Cox wrote: Snaps are back! The snapserver is back up and alive, with both unix and win32 snaps... -- james -- James Cox :: [EMAIL PROTECTED] :: http://james.blogs.at/ Was I helpful? http://www.amazon.co.uk/exec/obidos/wishlist/23IVGHQ61RJGO/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Quality Assurance Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] PHP Snaps
On Monday 11 November 2002 23:14, Ilia A. wrote: On November 11, 2002 05:07 pm, James Cox wrote: I can certainly set this up. any preference for timeformat? (bearing in mind we use unix date) date -R | sed -e 's/ /_/g' Would be the best format IMHO. Nice format but it doesn't sort well in directory listings :) Edin -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] PHP Snaps
On November 11, 2002 05:16 pm, Edin Kadribasic wrote: On Monday 11 November 2002 23:14, Ilia A. wrote: On November 11, 2002 05:07 pm, James Cox wrote: I can certainly set this up. any preference for timeformat? (bearing in mind we use unix date) date -R | sed -e 's/ /_/g' Would be the best format IMHO. Nice format but it doesn't sort well in directory listings :) True, but we only have about a dosen files and with a human readable format directory file sorting is not as relevant IMHO. Ilia -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] PHP Snaps
On Monday 11 November 2002 23:20, Ilia A. wrote: Nice format but it doesn't sort well in directory listings :) True, but we only have about a dosen files and with a human readable format directory file sorting is not as relevant IMHO. I disagree. The task of picking the latest sapshot (or one before it) becomes difficult with that verbose time format. For me its much easier to pick the last file listed (or one before it). Edin -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DEV] PHP Snaps
of course, all this can be achieved with some simple apache magic... -- james On Monday 11 November 2002 23:20, Ilia A. wrote: Nice format but it doesn't sort well in directory listings :) True, but we only have about a dosen files and with a human readable format directory file sorting is not as relevant IMHO. I disagree. The task of picking the latest sapshot (or one before it) becomes difficult with that verbose time format. For me its much easier to pick the last file listed (or one before it). Edin -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] PHP Snaps
Well there are a number of issues. First of all current snapshot listing is a regular apache directory listing, which causes files with names longer then X amount of characters to be cut off. If we decide to add any readable timestamp to the file we'd need to use some PHP script to display the files. In this case it would be trivial to make the script sort the files by their creation date. Ilia On November 11, 2002 05:23 pm, Edin Kadribasic wrote: On Monday 11 November 2002 23:20, Ilia A. wrote: Nice format but it doesn't sort well in directory listings :) True, but we only have about a dosen files and with a human readable format directory file sorting is not as relevant IMHO. I disagree. The task of picking the latest sapshot (or one before it) becomes difficult with that verbose time format. For me its much easier to pick the last file listed (or one before it). Edin -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Openssl / DBA extensions broken on windows
On Monday 11 November 2002 21:43, Marcus Börger wrote: At 14:03 11.11.2002, Edin Kadribasic wrote: Could the maintainers have a look? Details available at http://snaps.php.net/win32/compile.log Thanks for notifying :-) DBA fixed now - now next step in development... Hope this doesn't break win build again... Now the whole win32 build is broken :) I get the following link error: basic_functions.obj : error LNK2001: unresolved external symbol _zif_flock ..\Release_TS\php4ts.dll : fatal error LNK1120: 1 unresolved externals Edin -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DEV] PHP Snaps
Ilia, be my guest... -- james -Original Message- From: Ilia A. [mailto:ilia;prohost.org] Sent: Monday, November 11, 2002 10:30 PM To: Edin Kadribasic; James Cox; [EMAIL PROTECTED]; Php-Dev Subject: Re: [PHP-DEV] PHP Snaps Well there are a number of issues. First of all current snapshot listing is a regular apache directory listing, which causes files with names longer then X amount of characters to be cut off. If we decide to add any readable timestamp to the file we'd need to use some PHP script to display the files. In this case it would be trivial to make the script sort the files by their creation date. Ilia On November 11, 2002 05:23 pm, Edin Kadribasic wrote: On Monday 11 November 2002 23:20, Ilia A. wrote: Nice format but it doesn't sort well in directory listings :) True, but we only have about a dosen files and with a human readable format directory file sorting is not as relevant IMHO. I disagree. The task of picking the latest sapshot (or one before it) becomes difficult with that verbose time format. For me its much easier to pick the last file listed (or one before it). Edin -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] PHP Snaps
Ilia A. wrote: Well there are a number of issues. First of all current snapshot listing is a regular apache directory listing, which causes files with names longer then X amount of characters to be cut off. Please learn to configure apache: http://httpd.apache.org/docs/mod/mod_autoindex.html#indexoptions Keyword: NameWidth If we decide to add any readable timestamp to the file we'd need to use some PHP script to display the files. In this case it would be trivial to make the script sort the files by their creation date. Beware. For every task the appropriate tool. regards dtg -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] 64-bit PHP 4.3 (extensive long vs int problems)
OK, though I wasn't arguing against your suggestion; I should have responded to the previous email in the thread. I was just pointing out that supporting these two may be overkill, but if its being used as a stop-gap, and since it doesn't really hurt that much, I suppose it really doesn't matter. -Jason On Mon, 2002-11-11 at 10:42, Jason T. Greene wrote: Why not just convert to using a long? Is there really a need to have 2 numeric types in the ini system? -Jason On Mon, 2002-11-11 at 00:20, Andi Gutmans wrote: Hi, How about changing the INI_ENTRY macros in debug mode to check if we're using UpdateInt/UpdateLong and if so check if sizeof(param) == sizeof(int/long)? This could help a lot. Andi At 01:12 PM 11/11/2002 +0800, James Devenish wrote: Hi, just some followup, including some general build problems and some information about failed tests at the bottom. I have included a set of patches against 4.3.0pre2 and against CVS HEAD for anyone who's interested in seeking some form of success with PHP 4.3 on a 64-bit platform. Someone will need to tell me what mailing lists to send to, etc (I am on php-dev and php-qa to read followups). I'm not sure how to get `make test` results to you as the script asks 'would you like to send the report to PHP's QA team' but I say 'n' because I can't send or receive mail on the machine that I am testing on. I had a few notes about them, too. note: I have just real run-tests.php and see a that it submits over the web. Will use to this sometime The `make test` target doesn't work on my test machine (either in the 4.3.0pre2 or when using buildconf) because my $(CC) contains a space character. So as the target is: test: $(SAPI_CLI_PATH) TEST_PHP_DETAILED TEST_PHP_EXECUTABLE=$(top_builddir)/$(SAPI_CLI_PATH) \ TEST_PHP_SRCDIR=$(top_srcdir) \ CC=$(CC) \ $(top_builddir)/$(SAPI_CLI_PATH) $(top_srcdir)/run-tests.php $(TESTS) I change thae second-last line to : CC=$(CC) \ to make it work for me. I don't know how that should be handled in general but I thought I should point it out. Okay, `make test` still not work. Many segfaults in mbstring. Also, there seems to be something wrong because there are multiple definitions of url_adapt_ext, yet only one is used. Also a patch for network.c. The attached patches are against 4.3.0pre2, which is what I ran `make test` with, though I am actually using CVS HEAD with my test web server. (From a few days ago.) Note: I only just realised that if I run `make test` and it print no output other than 'Bus error' for a while, it *is* actually testing correctly. I didn't realise that `make test` only prints test results at the very end and I had been killing it in the middle of the test because it didn't seem to be working So, the patch includes: sundry correction of (int size)=(pointer size) assumptions, introduction of OnUpdateLong, some zend_parse_parameters fixes. Does not address all instances of sizeof( blah_t ) != sizeof( operand ). = FAILED TEST SUMMARY - mb_strtoupper() / mb_strtolower() [ext/mbstring/tests/casefold.phpt] HTML input/output [ext/mbstring/tests/htmlent.phpt] mb_convert_encoding() [ext/mbstring/tests/mb_convert_encoding.phpt] mb_ereg() [ext/mbstring/tests/mb_ereg.phpt] mb_ereg_search() stuff [ext/mbstring/tests/mb_ereg_search_xxx.phpt] mb_strlen() [ext/mbstring/tests/mb_strlen.phpt] **mbstring: extensive issues with mixed int/pointer. Test array_merge and array_walk [ext/standard/tests/array/001.phpt] Test arsort, asort, krsort, ksort, rsort, and sort [ext/standard/tests/array/002.phpt] Test usort, uksort and uasort [ext/standard/tests/array/003.phpt] **array tests: error in the tests: ext/standard/tests/array/data.inc contains monkey whereas the test expected results do not. Also, one test uses pow(2,64) and expects the result to overflow in a 32-bit way. These problems have been partially fixed in CVS already. var_dump float test [ext/standard/tests/general_functions/008.phpt] overflow check for _php_math_basetozval [ext/standard/tests/math/hexdec.phpt] **var_dump and hexdec: the expected overflows do not occur with 64-bit operands :) Simple math tests [ext/standard/tests/math/abs.phpt] Simple math tests [ext/standard/tests/math/round.phpt] **maths tests: issues with LONG_MIN and LONG_MAX Various pow() tests [ext/standard/tests/math/pow.phpt] **no comment from me crc32() function [ext/standard/tests/strings/crc32.phpt] **crc32: uses Zend's RETVAL_LONG but test expects 32-bit overflow. strtotime() function [ext/standard/tests/time/002.phpt] **no comment from me Methods via
[PHP-DEV] PHP Snaps
Any objections to changing timestamp timezone on source snaps to UTC? Windows snapshots are already using it. Edin -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] RE: [PHP-QA] Re: [PHP-DEV] PHP Snaps
GMT of cause and as daniel wrote already you could also make the filenames in the listing longer so that we could read whole filenames. thanks in advance marcus At 23:07 11.11.2002, James Cox wrote: I can certainly set this up. any preference for timeformat? (bearing in mind we use unix date) -- james Is it possible to increase build time from 4 hours to 2 hours and use a time format that displays the timezone? marcus At 00:34 11.11.2002, James Cox wrote: Snaps are back! The snapserver is back up and alive, with both unix and win32 snaps... -- james -- James Cox :: [EMAIL PROTECTED] :: http://james.blogs.at/ Was I helpful? http://www.amazon.co.uk/exec/obidos/wishlist/23IVGHQ61RJGO/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Quality Assurance Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] #20374 [NEW]: Performance enhancment forphp_mysql_do_connect. (fwd)
On Tue, 2002-11-12 at 00:47, Rasmus Lerdorf wrote: Seems like a good idea to me. Any volunteers? Zak? Working on it right now. :) Cheers! --zak -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DEV] bison error [was: PHP 4.3.0]
is anyone out there building php source from cvs using win32 ? if so, what version of bison are you using ? and can you try using 1.75 ? dave -Original Message- From: Rasmus Lerdorf [mailto:rasmus;php.net] Sent: Monday, November 11, 2002 11:28 AM To: Dave Viner Cc: [EMAIL PROTECTED] Subject: RE: [PHP-DEV] bison error [was: PHP 4.3.0] Linux On Mon, 11 Nov 2002, Dave Viner wrote: is that on win32? or linux ? -Original Message- From: Rasmus Lerdorf [mailto:rasmus;php.net] Sent: Friday, November 08, 2002 5:01 PM To: Dave Viner Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DEV] bison error [was: PHP 4.3.0] I'm not seeing any problems with bison-1.75 here. On Fri, 8 Nov 2002, Dave Viner wrote: here's the message i posted to [EMAIL PROTECTED] for more help in the bison problem. http://www.geocrawler.com/lists/3/GNU/350/0/10107563/ I'm not good enough with bison to understand why it produces no error message and yet does not produce a .c file. even reducing the bison command to its simplest form: Administrator@DVINER-LAP /cygdrive/d/php/php4/Zend $ bison zend_language_parser.y Administrator@DVINER-LAP /cygdrive/d/php/php4/Zend $ ls -l zend_language_parser* -rwxr-xr-x1 Administ None33095 Nov 6 09:56 zend_language_parser.y Administrator@DVINER-LAP /cygdrive/d/php/php4/Zend $ bison zend_ini_parser.y zend_ini_parser.y:215.4-6: unrecognized escape: `\\0' Administrator@DVINER-LAP /cygdrive/d/php/php4/Zend $ ls -l zend_ini_parser* -rwxr-xr-x1 Administ None 6336 Nov 6 09:56 zend_ini_parser.y Administrator@DVINER-LAP /cygdrive/d/php/php4/Zend $ Still fails. The zend_ini_parser produces a warning or error at least. zend_ini_parser.y:215.4-6: unrecognized escape: `\\0' But I'm not good enough with bison to know how to fix it ! dave -Original Message- From: Andi Gutmans [mailto:andi;zend.com] Sent: Friday, November 08, 2002 2:34 PM To: [EMAIL PROTECTED] Subject: [PHP-DEV] PHP 4.3.0 Hey, What's the schedule for 4.3? It seems to be lingering. That said I'd like to resolve the bison issue before we release it (i.e. make sure that ZE1 isn't bitten by versions 1.28). Andi -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] cvs: php4 /ext/standard flock_compat.c flock_compat.h
On Tuesday 12 November 2002 00:40, Marcus Boerger wrote: helly Mon Nov 11 18:40:33 2002 EDT Modified files: /php4/ext/standardflock_compat.c flock_compat.h Log: make flock() a function again when it is missing #ifndef HAVE_FLOCK -/* defines flock as php_flock */ +PHPAPI int php_flock(int fd, int operation) +{ + return php_flock(fd, operation); +} #endif /* !defined(HAVE_FLOCK) */ Erm, this doesn't look right and gives the following compile error: Compiling... file.c flock_compat.c c:\php4build\php4-new\ext\standard\flock_compat.c(125) : error C2084: function 'int __cdecl php_flock(int ,in t )' already has a body mod_files.c Error executing cl.exe. php-cgi.exe - 1 error(s), 0 warning(s) Edin -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] bison error [was: PHP 4.3.0]
On Tuesday 12 November 2002 01:11, Dave Viner wrote: is anyone out there building php source from cvs using win32 ? if so, what version of bison are you using ? and can you try using 1.75 ? Windows build machine is using GNU bison 1.34. I'll try to see if cygwin has 1.75 package, if not i'll downgrade to 1.28. Edin -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] ZEND_ADD_STRING patch
Hi, You're right. This patch should address that concern: diff -u -3 -r1.51 zend_language_scanner.l --- zend_language_scanner.l 2 Nov 2002 16:32:26 - 1.51 +++ zend_language_scanner.l 11 Nov 2002 22:17:09 - @@ -32,6 +32,7 @@ %} %x ST_IN_SCRIPTING +%x ST_EXPECTING_OBJECT %x ST_DOUBLE_QUOTES %x ST_SINGLE_QUOTE %x ST_BACKQUOTE @@ -686,6 +687,7 @@ HNUM 0x[0-9a-fA-F]+ LABEL [a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]* WHITESPACE [ \n\r\t]+ +LABEL_OR_WHITESPACE [a-zA-Z0-9_\x7f-\xff \n\t\r #'.:;,()|^+-/*=%!~?@]+ TABS_AND_SPACES [ \t]* TOKENS [;:,.\[\]()|^+-/*=%!~$?@] ENCAPSED_TOKENS [\[\]{}$] @@ -817,7 +819,13 @@ return T_EXTENDS; } -ST_IN_SCRIPTING,ST_DOUBLE_QUOTES,ST_BACKQUOTE,ST_HEREDOC- { +ST_IN_SCRIPTING,ST_DOUBLE_QUOTES,ST_BACKQUOTE,ST_HEREDOC${LABEL}- {LABEL} { +yy_push_state(ST_EXPECTING_OBJECT TSRMLS_CC); +yyless(0); +} + +ST_EXPECTING_OBJECT,ST_IN_SCRIPTING,ST_DOUBLE_QUOTES,ST_BACKQUOTE,ST_H EREDOC- { +fprintf(stderr, matched T_OBJECT_OPERATOR\n); yy_push_state(ST_LOOKING_FOR_PROPERTY TSRMLS_CC); return T_OBJECT_OPERATOR; } @@ -830,7 +838,7 @@ return T_STRING; } -ST_LOOKING_FOR_PROPERTY{ANY_CHAR} { +ST_EXPECTING_OBJECT,ST_LOOKING_FOR_PROPERTY{ANY_CHAR} { yyless(0); yy_pop_state(TSRMLS_C); } @@ -1255,7 +1263,7 @@ return T_INLINE_HTML; } -ST_IN_SCRIPTING,ST_DOUBLE_QUOTES,ST_HEREDOC,ST_BACKQUOTE${LABEL} { +ST_EXPECTING_OBJECT,ST_IN_SCRIPTING,ST_DOUBLE_QUOTES,ST_HEREDOC,ST_BAC KQUOTE${LABEL} { zend_copy_value(zendlval, (yytext+1), (yyleng-1)); zendlval-type = IS_STRING; return T_VARIABLE; @@ -1269,7 +1277,7 @@ } -ST_DOUBLE_QUOTES,ST_BACKQUOTE,ST_HEREDOC{LABEL} { +ST_DOUBLE_QUOTES,ST_BACKQUOTE,ST_HEREDOC{LABEL_OR_WHITESPACE} { zend_copy_value(zendlval, yytext, yyleng); zendlval-type = IS_STRING; return T_STRING; @@ -1569,15 +1577,6 @@ zendlval-type = IS_STRING; return T_STRING; } -} - - -ST_DOUBLE_QUOTES,ST_BACKQUOTE,ST_HEREDOC{ESCAPED_AND_WHITESPACE} { - HANDLE_NEWLINES(yytext, yyleng); - zendlval-value.str.val = (char *) estrndup(yytext, yyleng); - zendlval-value.str.len = yyleng; - zendlval-type = IS_STRING; - return T_ENCAPSED_AND_WHITESPACE; } ST_SINGLE_QUOTE([^'\\]|\\[^'\\])+ { On Monday, November 11, 2002, at 02:44 PM, Andi Gutmans wrote: Hi, I still think the patch isn't good. encaps_list which is the main parser rule can parse: T_VARIABLE T_OBJECT_OPERATOR T_STRING Your version of T_STRING would break this. Again I might be missing something but my hunch is that it would break. Andi At 03:06 AM 11/11/2002 -0500, George Schlossnagle wrote: The patch I submitted included BACKQUOTES in the token matching as well. I'm not convinced that is bad, but I will try to thoroughly test it tomorrow, and if it's broken, I'll just case it for and heredocs. George On Monday, November 11, 2002, at 01:56 AM, Andi Gutmans wrote: OH I missed that. I'll check it out this evening as I have to go now. Andi At 01:48 AM 11/11/2002 -0500, George Schlossnagle wrote: Unless I misunderstand the way this works, it's not a problem that it returns a T_STRING, only possibly that it does so inside a BACKQUOTES. Function names and constants aren't available as barewords in DOUBLE_QUOTES or HEREDOCs, right? On Monday, November 11, 2002, at 01:12 AM, Andi Gutmans wrote: Hi, A patch which improves on this would be welcome. However, this patch at first glance is bogus. You are returning T_STRING with possible spaces and other non A-Za-z_ chars. This token is also used as tokens such as constants and function names . Andi At 06:31 PM 11/10/2002 -0500, George Schlossnagle wrote: that would be my debugging from my 'clean' cvs copy. :) You don't want that. Sorry. Here's a better patch: Index: zend_language_scanner.l == = RCS file: /repository/Zend/zend_language_scanner.l,v retrieving revision 1.51 diff -u -3 -r1.51 zend_language_scanner.l --- zend_language_scanner.l 2 Nov 2002 16:32:26 - 1.51 +++ zend_language_scanner.l 10 Nov 2002 23:30:28 - @@ -686,6 +686,7 @@ HNUM 0x[0-9a-fA-F]+ LABEL [a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]* WHITESPACE [ \n\r\t]+ +LABEL_OR_WHITESPACE [a-zA-Z0-9_\x7f-\xff \n\t\r #'.:;,()|^+-/*=%!~?@]+ TABS_AND_SPACES [ \t]* TOKENS [;:,.\[\]()|^+-/*=%!~$?@] ENCAPSED_TOKENS [\[\]{}$] @@ -1269,7 +1270,7 @@ } -ST_DOUBLE_QUOTES,ST_BACKQUOTE,ST_HEREDOC{LABEL} { +ST_DOUBLE_QUOTES,ST_BACKQUOTE,ST_HEREDOC{LABEL_OR_WHITESPACE} { zend_copy_value(zendlval, yytext, yyleng); zendlval-type = IS_STRING; return T_STRING; @@ -1569,15 +1570,6 @@ zendlval-type = IS_STRING; return T_STRING; } -} - - - ST_DOUBLE_QUOTES,ST_BACKQUOTE,ST_HEREDOC{ESCAPED_AND_WHITESPACE} { -
Re: [PHP-DEV] bison error [was: PHP 4.3.0]
On Tuesday 12 November 2002 01:25, Dave Viner wrote: i got the 1.75 from cygwin, so you should be able to find it. Yup. Windows snapshot and release build machine has an updated version of cygwin installed. That version contains bison 1.75. Edin -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DEV] bison error [was: PHP 4.3.0]
i assume this means that the problem i'm having is not reproducible. if so, do you have any thoughts on what i can do to fix my build ? thanks dave viner -Original Message- From: Edin Kadribasic [mailto:edink;proventum.net] Sent: Monday, November 11, 2002 5:04 PM To: Dave Viner Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DEV] bison error [was: PHP 4.3.0] On Tuesday 12 November 2002 01:25, Dave Viner wrote: i got the 1.75 from cygwin, so you should be able to find it. Yup. Windows snapshot and release build machine has an updated version of cygwin installed. That version contains bison 1.75. Edin -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] What happened to the notes on php.net?
For my big surprise there aren't there Did I miss something? -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] What happened to the notes on php.net?
They're not there for me either... Odd. Maxim Maletsky said: For my big surprise there aren't there Did I miss something? -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Fwd: Re: [PHP-DEV] What happened to the notes on php.net?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - -- Forwarded Message -- Subject: RE: [PHP] User Contributed Notes at php.net? Date: Mon, 11 Nov 2002 23:43:18 - From: James Cox [EMAIL PROTECTED] To: Ernest E Vogelsinger [EMAIL PROTECTED], [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] they are missing temporarily as we work on re-enabling some php.net services. apologies for any inconveniences. -- James Cox php.net sysadmin - -- James Cox :: [EMAIL PROTECTED] :: http://james.blogs.at/ Was I helpful? http://www.amazon.co.uk/exec/obidos/wishlist/23IVGHQ61RJGO/ On Monday 11 November 2002 09:28 pm, Matthew Walker wrote: They're not there for me either... Odd. Maxim Maletsky said: For my big surprise there aren't there Did I miss something? -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php - -- ~Paul Nicholson Design Specialist @ WebPower Design The webthe way you want it! [EMAIL PROTECTED] www.webpowerdesign.net It said uses Windows 98 or better, so I loaded Linux! Registered Linux User #183202 using Register Linux System # 81891 -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE90G4bDyXNIUN3+UQRAnDLAJ97aVkmvTRO6F8clxS6B8TIuC04OgCeOk4g NH+gpPsiY0wQGBAX9I+zlzg= =7m6I -END PGP SIGNATURE- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] What happened to the notes on php.net?
Hello, As you can see, for now, download manuals and notes are not available. We're working on it. Thanks you for the report. -- M.CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com Hébergement de sites internets. Paul Nicholson [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - -- Forwarded Message -- Subject: RE: [PHP] User Contributed Notes at php.net? Date: Mon, 11 Nov 2002 23:43:18 - From: James Cox [EMAIL PROTECTED] To: Ernest E Vogelsinger [EMAIL PROTECTED], [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] they are missing temporarily as we work on re-enabling some php.net services. apologies for any inconveniences. -- James Cox php.net sysadmin - -- James Cox :: [EMAIL PROTECTED] :: http://james.blogs.at/ Was I helpful? http://www.amazon.co.uk/exec/obidos/wishlist/23IVGHQ61RJGO/ On Monday 11 November 2002 09:28 pm, Matthew Walker wrote: They're not there for me either... Odd. Maxim Maletsky said: For my big surprise there aren't there Did I miss something? -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php - -- ~Paul Nicholson Design Specialist @ WebPower Design The webthe way you want it! [EMAIL PROTECTED] www.webpowerdesign.net It said uses Windows 98 or better, so I loaded Linux! Registered Linux User #183202 using Register Linux System # 81891 -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE90G4bDyXNIUN3+UQRAnDLAJ97aVkmvTRO6F8clxS6B8TIuC04OgCeOk4g NH+gpPsiY0wQGBAX9I+zlzg= =7m6I -END PGP SIGNATURE- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/standard credits.c
+1 for Streams API. -- M.CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com Hébergement de sites internets. Wez Furlong [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] How about Streams API ? --Wez. On 11/11/02, James Cox [EMAIL PROTECTED] wrote: That works for me -- didn't want it to be too short, however. (could say Streams Support and API Dev...?) -Original Message- From: Andi Gutmans [mailto:andi;zend.com] Why not just Streams support? The and development is already contained in support and it could be put on almost every end of line :) + CREDIT_LINE(Streams Support and Development, Wez Furlong); -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DEV] bison error [was: PHP 4.3.0]
well, i downgraded bison to 1.35, and it works fine. no warnings, no errors. not sure what's going on with that, but at least i can build again. if a bison or win32 expert wants more info, i'm happy to work towards some resolution. dave -Original Message- From: Dave Viner [mailto:dviner;yahoo-inc.com] Sent: Monday, November 11, 2002 5:16 PM To: Edin Kadribasic Cc: [EMAIL PROTECTED] Subject: RE: [PHP-DEV] bison error [was: PHP 4.3.0] i assume this means that the problem i'm having is not reproducible. if so, do you have any thoughts on what i can do to fix my build ? thanks dave viner -Original Message- From: Edin Kadribasic [mailto:edink;proventum.net] Sent: Monday, November 11, 2002 5:04 PM To: Dave Viner Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DEV] bison error [was: PHP 4.3.0] On Tuesday 12 November 2002 01:25, Dave Viner wrote: i got the 1.75 from cygwin, so you should be able to find it. Yup. Windows snapshot and release build machine has an updated version of cygwin installed. That version contains bison 1.75. Edin -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] 64-bit PHP 4.3 (extensive long vs int problems)
At 04:31 PM 11/11/2002 -0500, Dan Kalowsky wrote: On Monday, November 11, 2002, at 02:39 PM, Andi Gutmans wrote: Well I assume lots of extension maintainers are using int's for all sorts of things. I'm not sure it's a good idea to try and catch every last place. In any case, even if we convert everything then my suggestion still stands because it'd help us catch places which aren't defined correctly. Maybe I've missed the point, or I'm too tired to connect neurons today. But what is the point of trying to correct for places which aren't defined correctly? This seems like a rather odd/bad way of looking at this. If you've defined incorrectly, it just shouldn't work. I'd rather lean towards Jason's suggestion Hmm, the thing is that it will work even if he have one version. It'll compile and even work on some machines. I'm saying that in debug mode we change the macro to make sure that sizeof(param) == sizeof(type). Andi -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] PHP Snaps
On Tue, 12 Nov 2002, Edin Kadribasic wrote: Any objections to changing timestamp timezone on source snaps to UTC? Windows snapshots are already using it. Would be nice to have... Derick -- --- Derick Rethans http://derickrethans.nl/ JDI Media Solutions --[ if you hold a unix shell to your ear, do you hear the c? ]- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: [Zend Engine 2] Errors and exceptions?
On 12 Nov 2002, Timm Friebe wrote: On Mon, 2002-11-11 at 23:26, Stig S. Bakken wrote: [...] The problem here is that PHP's E_WARNING does not resemble an exception. Some of the warnings raised are only of informational intent and do not indicate the failure of a function. [...] Right. What this illustrates is that PHP errors as such as way too random and unstructured to be of any other use than showing error messages to developers. Well, would it be wise then to either: * Change informational warnings to E_NOTICE (e.g. Notice: Called ... before fetching all rows ...) or * Introduce E_FAIL and use it for cases when a function fails (say, fopen('/doesnotexist', 'r')) In both cases, people doing string magic with $php_errormsg (if ereg(not exist, $php_errormsg)) or having their own error handlers consisting of constructs like if (E_WARNING == $code) would see their code break. As for the first suggestion, the downside is that a lot of people will miss the message(s) since they've disabled E_NOTICEs. And that's why I would be -1 on the first one. However, the whole error reporting is a pretty mess, with some extensions implementing other 'philosiphies' then others. Getting this all nice and clean is another point we should address in PHP 5 (just like Stig mentioned). Derick -- --- Derick Rethans http://derickrethans.nl/ JDI Media Solutions http://www.jdimedia.nl/ --- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php