Re: [PHP-DEV] Latest CVS Problem
S/he might have had the same problem as I did, with a slight messy build. It was that issue that I was chasing at the time :) Make a completely clean build, see if it helps. - Original Message - From: Stanislav Malyshev [EMAIL PROTECTED] To: Zeev Suraski [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, August 09, 2001 10:17 PM Subject: Re: [PHP-DEV] Latest CVS Problem ZS internet with the latest cvs... ZS ZS ? ZS $file=fopen(http://php.net/,r;); ZS fpassthru($file); ZS ? ZS Will produce Segmentation Fault (core dumped) There was a bug in URL fopen some days ago. Should be fixed in current CVS. I can't check it since I didn't update to current CVS yet, but generally the patch that looks like it should fix it was committed some days ago :) -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Current CVS crash (latest Zend changes)
Seems like the Zend changes that were just committed broke something - all scripts are causing a segfault. I'm looking at what changed now. Script: ?php phpinfo(); ? Configure: ./configure \ --with-apxs \ --without-midgard \ --without-pgsql \ --enable-debug; \ Backtrace: Program received signal SIGSEGV, Segmentation fault. 0x403aff0c in zendlex (zendlval=0xbfffd1e0) at zend_compile.c:2396 (gdb) bt #0 0x403aff0c in zendlex (zendlval=0xbfffd1e0) at zend_compile.c:2396 #1 0x403afef9 in zendlex (zendlval=0xbfffd1e0) at zend_compile.c:2393 #2 0x403a79cb in zendparse () at /usr/lib/bison.simple:432 #3 0x403cc57e in compile_file (file_handle=0xb2f0, type=2) at zend_language_scanner.l:364 #4 0x403c29cf in zend_execute_scripts (type=8, file_count=3) at zend.c:803 #5 0x403d587b in php_execute_script (primary_file=0xb2f0) at main.c:1304 #6 0x403d1a5e in apache_php_module_main (r=0x80dacf0, display_source_mode=0) at sapi_apache.c:90 #7 0x403d253a in send_php (r=0x80dacf0, display_source_mode=0, filename=0x0) at mod_php4.c:575 #8 0x403d258e in send_parsed_php (r=0x80dacf0) at mod_php4.c:590 #9 0x8054e8d in ap_invoke_handler () at eval.c:41 #10 0x806708c in ap_some_auth_required () at eval.c:41 #11 0x8067103 in ap_process_request () at eval.c:41 #12 0x805f6d7 in ap_child_terminate () at eval.c:41 #13 0x805f87a in ap_child_terminate () at eval.c:41 #14 0x805f9bd in ap_child_terminate () at eval.c:41 #15 0x805ffde in ap_child_terminate () at eval.c:41 #16 0x80608a3 in main () at eval.c:41 #17 0x4010918e in __libc_start_main (main=0x8060420 main, argc=45, ubp_av=0xb754, init=0x804fa3c _init, fini=0x808a53c _fini, rtld_fini=0x4000cf08 _dl_fini, stack_end=0xb74c) at ../sysdeps/generic/libc-start.c:129 (gdb) -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Current CVS crash (latest Zend changes)
Yes, the absolute latest - I saw the Zend changes come past cvs update. The change looks to be a broken fix in r214 of zend_compile.c - Zend itself is new to me (and fun :) @@ -2374,6 +2379,10 @@ retval = zendlex(zendlval TSRMLS_CC); break; case T_CLOSE_TAG: + if (LANG_SCNG(yy_text)[LANG_SCNG(yy_leng)-1]=='\n' + || (LANG_SCNG(yy_text)[LANG_SCNG(yy_leng)-2]=='\r' LANG_SCNG(yy_text)[LANG_SCNG(yy_leng)-1])) { + CG(increment_lineno) = 1; + } retval = ';'; /* implicit ; */ break; case T_OPEN_TAG_WITH_ECHO: - Original Message - From: Zeev Suraski [EMAIL PROTECTED] To: Simon Roberts [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, August 09, 2001 10:19 AM Subject: Re: [PHP-DEV] Current CVS crash (latest Zend changes) Are you *sure* you're running the very current CVS, and not some snapshot? Zeev At 01:16 09-08-01, Simon Roberts wrote: Seems like the Zend changes that were just committed broke something - all scripts are causing a segfault. I'm looking at what changed now. Script: ?php phpinfo(); ? Configure: ./configure \ --with-apxs \ --without-midgard \ --without-pgsql \ --enable-debug; \ Backtrace: Program received signal SIGSEGV, Segmentation fault. 0x403aff0c in zendlex (zendlval=0xbfffd1e0) at zend_compile.c:2396 (gdb) bt #0 0x403aff0c in zendlex (zendlval=0xbfffd1e0) at zend_compile.c:2396 #1 0x403afef9 in zendlex (zendlval=0xbfffd1e0) at zend_compile.c:2393 #2 0x403a79cb in zendparse () at /usr/lib/bison.simple:432 #3 0x403cc57e in compile_file (file_handle=0xb2f0, type=2) at zend_language_scanner.l:364 #4 0x403c29cf in zend_execute_scripts (type=8, file_count=3) at zend.c:803 #5 0x403d587b in php_execute_script (primary_file=0xb2f0) at main.c:1304 #6 0x403d1a5e in apache_php_module_main (r=0x80dacf0, display_source_mode=0) at sapi_apache.c:90 #7 0x403d253a in send_php (r=0x80dacf0, display_source_mode=0, filename=0x0) at mod_php4.c:575 #8 0x403d258e in send_parsed_php (r=0x80dacf0) at mod_php4.c:590 #9 0x8054e8d in ap_invoke_handler () at eval.c:41 #10 0x806708c in ap_some_auth_required () at eval.c:41 #11 0x8067103 in ap_process_request () at eval.c:41 #12 0x805f6d7 in ap_child_terminate () at eval.c:41 #13 0x805f87a in ap_child_terminate () at eval.c:41 #14 0x805f9bd in ap_child_terminate () at eval.c:41 #15 0x805ffde in ap_child_terminate () at eval.c:41 #16 0x80608a3 in main () at eval.c:41 #17 0x4010918e in __libc_start_main (main=0x8060420 main, argc=45, ubp_av=0xb754, init=0x804fa3c _init, fini=0x808a53c _fini, rtld_fini=0x4000cf08 _dl_fini, stack_end=0xb74c) at ../sysdeps/generic/libc-start.c:129 (gdb) -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Zeev Suraski [EMAIL PROTECTED] CTO co-founder, Zend Technologies Ltd. http://www.zend.com/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Current CVS crash (latest Zend changes)
It's as quoted in the original message : --- ?php phpinfo(); ? --- with a \n after the ? # hexdump -cb phpinfo.php 000 ? p h p p h p i n f o ( ) ; 000 074 077 160 150 160 040 160 150 160 151 156 146 157 050 051 073 010 ? \n 010 040 077 076 012 014 Attached as .gz so mail transports don't mess with cr/lf etc. - Original Message - From: Zeev Suraski [EMAIL PROTECTED] To: Simon Roberts [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, August 09, 2001 10:35 AM Subject: Re: [PHP-DEV] Current CVS crash (latest Zend changes) Can you send me the file that causes this crash? At 01:32 09-08-01, Simon Roberts wrote: Yes, the absolute latest - I saw the Zend changes come past cvs update. The change looks to be a broken fix in r214 of zend_compile.c - Zend itself is new to me (and fun :) @@ -2374,6 +2379,10 @@ retval = zendlex(zendlval TSRMLS_CC); break; case T_CLOSE_TAG: + if (LANG_SCNG(yy_text)[LANG_SCNG(yy_leng)-1]=='\n' + || (LANG_SCNG(yy_text)[LANG_SCNG(yy_leng)-2]=='\r' LANG_SCNG(yy_text)[LANG_SCNG(yy_leng)-1])) { + CG(increment_lineno) = 1; + } retval = ';'; /* implicit ; */ break; case T_OPEN_TAG_WITH_ECHO: - Original Message - From: Zeev Suraski [EMAIL PROTECTED] To: Simon Roberts [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, August 09, 2001 10:19 AM Subject: Re: [PHP-DEV] Current CVS crash (latest Zend changes) Are you *sure* you're running the very current CVS, and not some snapshot? Zeev At 01:16 09-08-01, Simon Roberts wrote: Seems like the Zend changes that were just committed broke something - all scripts are causing a segfault. I'm looking at what changed now. Script: ?php phpinfo(); ? Configure: ./configure \ --with-apxs \ --without-midgard \ --without-pgsql \ --enable-debug; \ Backtrace: Program received signal SIGSEGV, Segmentation fault. 0x403aff0c in zendlex (zendlval=0xbfffd1e0) at zend_compile.c:2396 (gdb) bt #0 0x403aff0c in zendlex (zendlval=0xbfffd1e0) at zend_compile.c:2396 #1 0x403afef9 in zendlex (zendlval=0xbfffd1e0) at zend_compile.c:2393 #2 0x403a79cb in zendparse () at /usr/lib/bison.simple:432 #3 0x403cc57e in compile_file (file_handle=0xb2f0, type=2) at zend_language_scanner.l:364 #4 0x403c29cf in zend_execute_scripts (type=8, file_count=3) at zend.c:803 #5 0x403d587b in php_execute_script (primary_file=0xb2f0) at main.c:1304 #6 0x403d1a5e in apache_php_module_main (r=0x80dacf0, display_source_mode=0) at sapi_apache.c:90 #7 0x403d253a in send_php (r=0x80dacf0, display_source_mode=0, filename=0x0) at mod_php4.c:575 #8 0x403d258e in send_parsed_php (r=0x80dacf0) at mod_php4.c:590 #9 0x8054e8d in ap_invoke_handler () at eval.c:41 #10 0x806708c in ap_some_auth_required () at eval.c:41 #11 0x8067103 in ap_process_request () at eval.c:41 #12 0x805f6d7 in ap_child_terminate () at eval.c:41 #13 0x805f87a in ap_child_terminate () at eval.c:41 #14 0x805f9bd in ap_child_terminate () at eval.c:41 #15 0x805ffde in ap_child_terminate () at eval.c:41 #16 0x80608a3 in main () at eval.c:41 #17 0x4010918e in __libc_start_main (main=0x8060420 main, argc=45, ubp_av=0xb754, init=0x804fa3c _init, fini=0x808a53c _fini, rtld_fini=0x4000cf08 _dl_fini, stack_end=0xb74c) at ../sysdeps/generic/libc-start.c:129 (gdb) phpinfo.php.gz -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Current CVS crash (latest Zend changes)
Yeah, it looks like language_scanner_globals isn't ready for this function yet (gdb) display language_scanner_globals 5: language_scanner_globals = {zendin = 0x0, zendout = 0x0, yy_leng = 0, yy_text = 0x0, current_buffer = 0x0, c_buf_p = 0x0, init = 1, start = 0} So it's dereferencing a null pointer by -1 and -2 :) Time for some more snooping, but I expect someone to fix this before I figure out how it works... - Original Message - From: Simon Roberts [EMAIL PROTECTED] To: Zeev Suraski [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, August 09, 2001 10:32 AM Subject: Re: [PHP-DEV] Current CVS crash (latest Zend changes) Yes, the absolute latest - I saw the Zend changes come past cvs update. The change looks to be a broken fix in r214 of zend_compile.c - Zend itself is new to me (and fun :) - Original Message - From: Simon Roberts [EMAIL PROTECTED] To: Zeev Suraski [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, August 09, 2001 10:32 AM Subject: Re: [PHP-DEV] Current CVS crash (latest Zend changes) Yes, the absolute latest - I saw the Zend changes come past cvs update. The change looks to be a broken fix in r214 of zend_compile.c - Zend itself is new to me (and fun :) @@ -2374,6 +2379,10 @@ retval = zendlex(zendlval TSRMLS_CC); break; case T_CLOSE_TAG: + if (LANG_SCNG(yy_text)[LANG_SCNG(yy_leng)-1]=='\n' + || (LANG_SCNG(yy_text)[LANG_SCNG(yy_leng)-2]=='\r' LANG_SCNG(yy_text)[LANG_SCNG(yy_leng)-1])) { + CG(increment_lineno) = 1; + } retval = ';'; /* implicit ; */ break; case T_OPEN_TAG_WITH_ECHO: - Original Message - From: Zeev Suraski [EMAIL PROTECTED] To: Simon Roberts [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, August 09, 2001 10:19 AM Subject: Re: [PHP-DEV] Current CVS crash (latest Zend changes) Are you *sure* you're running the very current CVS, and not some snapshot? Zeev At 01:16 09-08-01, Simon Roberts wrote: Seems like the Zend changes that were just committed broke something - all scripts are causing a segfault. I'm looking at what changed now. Script: ?php phpinfo(); ? Configure: ./configure \ --with-apxs \ --without-midgard \ --without-pgsql \ --enable-debug; \ Backtrace: Program received signal SIGSEGV, Segmentation fault. 0x403aff0c in zendlex (zendlval=0xbfffd1e0) at zend_compile.c:2396 (gdb) bt #0 0x403aff0c in zendlex (zendlval=0xbfffd1e0) at zend_compile.c:2396 #1 0x403afef9 in zendlex (zendlval=0xbfffd1e0) at zend_compile.c:2393 #2 0x403a79cb in zendparse () at /usr/lib/bison.simple:432 #3 0x403cc57e in compile_file (file_handle=0xb2f0, type=2) at zend_language_scanner.l:364 #4 0x403c29cf in zend_execute_scripts (type=8, file_count=3) at zend.c:803 #5 0x403d587b in php_execute_script (primary_file=0xb2f0) at main.c:1304 #6 0x403d1a5e in apache_php_module_main (r=0x80dacf0, display_source_mode=0) at sapi_apache.c:90 #7 0x403d253a in send_php (r=0x80dacf0, display_source_mode=0, filename=0x0) at mod_php4.c:575 #8 0x403d258e in send_parsed_php (r=0x80dacf0) at mod_php4.c:590 #9 0x8054e8d in ap_invoke_handler () at eval.c:41 #10 0x806708c in ap_some_auth_required () at eval.c:41 #11 0x8067103 in ap_process_request () at eval.c:41 #12 0x805f6d7 in ap_child_terminate () at eval.c:41 #13 0x805f87a in ap_child_terminate () at eval.c:41 #14 0x805f9bd in ap_child_terminate () at eval.c:41 #15 0x805ffde in ap_child_terminate () at eval.c:41 #16 0x80608a3 in main () at eval.c:41 #17 0x4010918e in __libc_start_main (main=0x8060420 main, argc=45, ubp_av=0xb754, init=0x804fa3c _init, fini=0x808a53c _fini, rtld_fini=0x4000cf08 _dl_fini, stack_end=0xb74c) at ../sysdeps/generic/libc-start.c:129 (gdb) -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Zeev Suraski [EMAIL PROTECTED] CTO co-founder, Zend Technologies Ltd. http://www.zend.com/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Current CVS crash (latest Zend changes)
Aiee! I'd just done that, when I got your message. I'd deleted my entire php4 source dir, downloaded from CVS, rebuilt, and it appears to be working. Aiee. I'll keep an eye on it. Bugger (Sorry Zeev) - Original Message - From: Andrei Zmievski [EMAIL PROTECTED] To: Simon Roberts [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, August 09, 2001 11:28 AM Subject: Re: [PHP-DEV] Current CVS crash (latest Zend changes) On Thu, 09 Aug 2001, Simon Roberts wrote: Seems like the Zend changes that were just committed broke something - all scripts are causing a segfault. I'm looking at what changed now. Script: ?php phpinfo(); ? Configure: ./configure \ --with-apxs \ --without-midgard \ --without-pgsql \ --enable-debug; \ Do a completely clean build and try again. I had that happen to me too, but it disappeared after I rebuilt everything. Make sure to delete zend_language_scanner.c and zend_language_parser.c so that they are regenerated. -Andrei -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP-DEV] Rsync and CVS
Jim, right now, there's a mix of entries in the notes database marked using the page title and the page id. the ones identified only by title need to get fixed in the database. Out of interest, why did we change to using the page id? but mainly 'getting it into the rsync repository' was what was on my to-do list. Cool. (if you're talking about commiting the get-user-notes code, it's already there. it needs work, but it is a good start.) Yeah, I wrote it as a stopgap before all this rsync stuff was up and working. My local version works much nicer, but I didn't want to commit it until we had rsync (a far better way than fetching notes from http://www.php.net/get-user-notes.php). Once that's done, we can write the usernotes from cron, and install the following code into shared-manual.inc Sounds simple? :) Simon function manualGetUserNotesDb($title, $id) { $host = 'localhost'; $user = 'nobody'; $pass = ''; $db_id = mysql_connect($host, $user, $pass); $query = "SELECT *,UNIX_TIMESTAMP(ts) AS xwhen FROM note WHERE sect = '$title' OR sect = '$id' ORDER BY id"; $result_id = mysql_db_query("php3", $query, $db_id); $notes = array(); if ($result_id mysql_num_rows($result_id) 0) { while ($row = mysql_fetch_array($result_id)) { $notes[] = $row; } } return $notes; } function manualGetUserNotesCache($sect) { global $DOCUMENT_ROOT; $cachefile = "$DOCUMENT_ROOT/manual/usernotes/" . urlencode($sect) . ".txt"; if ($fh = @fopen($cachefile,'r')) { $notes = @unserialize(fread($fh,1000)); fclose($fh); } else { $notes = array(); } return $notes; } function manualUserNotes($title, $id) { ... if(strstr($MYSITE,"www.php.net")) { $notes = manualGetUserNotesDb($title, $id); } else { $notes = array_merge( manualGetUserNotesCache($title), manualGetUserNotesCache($id) ); } ... } -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP-DEV] Rsync and CVS
i'd suggest to make things simpler - just plain pre-generated html with the notes part. name it after TOPIC and include it in the proper place. the generator script may run as cron job. there is only one problem - to prevent rsync client from getting a semi-generated copy. this can be achieved like: or better - why not generate html upon comment add and use the html on the main site also? The reason the HTML is not pregenerated, is so that we can change the formatting etc on the fly. Perhaps according to a "max comments per page", or "look and feel" parameters. The CPU load in formatting comments is pretty insignificant, especially compared to the other things it does at the same time. There might be some arguements for caching the comments in the filesystem (on www.php.net), but the gains are probably not worth the hassle, IMHO. Simon -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Rsync and CVS
A question about phpweb and cvs/rsync: I'd (still :) like to find the best way to make the annotated manual work on mirrors. The way it works now is okay, but a bit of a hassle to setup and keep up to date. It would seem best if we could have a script on www.php.net update some datafiles, and have those files put into the rsync/cvs repository, for mirrors to fetch as part of their normal update cycle. I was thinking of /manual/usernotes/TOPIC.txt, where TOPIC is the subject in question. The contents of those files would just be a serialize array, exactly as would be returned by the DB. My local setup actually does that, but loading those files requires a semi-backdoor into www.php.net, which I'm a bit uncomfortable about. I know, installing a DB on the mirror and loading it with a dump of the master is another option, but rsync'd files is just *simpler*. Thanks, Simon -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] **** Access denied: Insufficient Karma (lyric|phpweb/include)
I'm getting the following error when commiting a change to the CVS tree. I guess it's because of the reshuffle of CVS permissions? I've done a little work on the phpweb before, perhaps someone could add me to the blessed list. The patch below is to fix phpweb for "unknown mirrors". Cheers, Simon Index: include/site.inc === RCS file: /repository/phpweb/include/site.inc,v retrieving revision 1.123 diff -u -r1.123 site.inc --- include/site.inc2001/01/12 20:45:59 1.123 +++ include/site.inc2001/01/17 03:38:07 @@ -111,7 +111,7 @@ $MYSITE='http://'.getenv("SERVER_NAME").'/'; if (!isset($MIRRORS[$MYSITE])) { - $MIRRORS[$MYSITE] = array("xx", "Unknown", "none", $MYSITE, 1, 0); + $MIRRORS[$MYSITE] = array("xx", "Unknown", "none", $MYSITE, 1, 0, "en" ); } # fix for non-standard port in Australian mirror -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP manual
Why isn't phpweb/manual/en in CVS? -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]