[PHP-DEV] Re: Bug #12918 Updated: end_error: referenced symbol not found, while loading a php extension module
The solution is setting the environment variable before ./configure LDFLAGS_SHLIB_EXPORT=-Xlinker -export-dynamic Joacim Joacim Zschimmer [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... zend_error() should be read in the summary, my mistake. -- I have to use 4.0.4pl1, because the customer says so. libhostphp.so is a self written php extension module, working fine for a year under Linux, 4.0.4pl1 too. I think the problem is a missing linker option for linking apache, one that presents the entries of php (zend_error etc) to dynamic loaded modules. As far as I know is zend_error() included in php and this is in apache. Joacim -- 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] Hello
Hi, Here is something for you and the other friends... Reply me if you have time EL
[PHP-DEV] Bug #12918 Updated: end_error: referenced symbol not found, while loading a php extension module
ID: 12918 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Bogus Bug Type: Dynamic loading Operating System: Solaris PHP Version: 4.0.4pl1 New Comment: Most likely the problem is in your self written extension. Not PHP bug. Previous Comments: [2001-08-23 08:30:54] [EMAIL PROTECTED] Have you tried PHP 4.0.6? And what actually IS libhostphp.so ?? --Jani [2001-08-23 07:07:50] [EMAIL PROTECTED] using dl() within php and apache, I get the following error message: Warning: Unable to load dynamic library 'libhostphp.so' - ld.so.1: .../bin/httpd: fatal: relocation error: file libhostphp.so: symbol zend_error: referenced symbol not found in .../test.php The symbol zend_error (among others) should be delivered by php/apache, that is program file httpd. The same module (recompiled) works on linux. Does anyone know, how to get this symbol? Thank You very much Joacim Zschimmer Edit this bug report at http://bugs.php.net/?id=12918edit=1 -- 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] Bug #12939: Editing a bug is not possible, when empty password given
From: [EMAIL PROTECTED] Operating system: PHP version: 4.0.6 PHP Bug Type: Unknown/Other Function Bug description: Editing a bug is not possible, when empty password given Editing a bug is not possible, when empty password given. I get this error message: The password you supplied was incorrect. Something went wrong updating the database. Receiving the password by email I get the correct empty password. This is for bug #12918. This bug should be closed now. Joacim Zschimmer -- Edit bug report at: http://bugs.php.net/?id=12939edit=1 -- 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] Re: Bug #12929 Updated: crash in array_map with associative arrays
At 02:00 24-8-01 +, you wrote: ID: 12929 Updated by: andrei Reported By: [EMAIL PROTECTED] Old Status: Assigned Status: Closed Bug Type: Reproducible crash Operating System: linux PHP Version: 4.0.6 Assigned To: andrei New Comment: Fixed in CVS. Previous Comments: [2001-08-23 21:06:14] [EMAIL PROTECTED] I can fix the crash, but what should be done with the keys? Should they be just ignored? I think it only makes sense to preserve them if you are mapping a single arrays, in case there are 2 or more, the keys are useless.. agree? Yup i agree... :) I was only interested in the keys Greetz and tnx, Wico [2001-08-23 12:38:35] [EMAIL PROTECTED] Have fun: ? $data = Array('a','b','c'); // works # $data = Array(1 = 'a', 2 = 'b', 3 = 'c'); // crash # $data = Array('1' = 'a', '2' = '3'); // crash $plop = array_map('addslashes', $data); die(I didn't crash :)); ? ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=12929edit=2 -- 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] Bug #1 Updated: test
ID: 1 Updated by: Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Unknown/Other Function Operating System: linux suse 7.2 PHP Version: 4.0.6 New Comment: bugussified Previous Comments: [2001-08-24 09:34:09] [EMAIL PROTECTED] getestet Edit this bug report at http://bugs.php.net/?id=1edit=1 -- 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] for the php-gtk people
Hi, I've been looking at crossplatform gui-development, and one of the things that is easily found is the wxWindows tools (www.wxwindows.org). This looks to be sort of the same as php-gtk, but it does windows, motif os/2 and mac as well (aside from gtk). There exists wxPython and wxPerl... why not wxPHP? Any thoughts from the php-gtk people? Cheerio, Marc. -- 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] ext/standard/html.c breakage
On 24/08/01, Doug MacEachern [EMAIL PROTECTED] wrote: one the php tests (tests/strings/003.phpt) that has been ported to httpd-test is failing with current cvs: Fixed; thanks! --Wez. -- 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] concatenating strings
Look at add_string_to_string(). At 04:14 24-08-01, Peter Bowen wrote: I am writing an extension, and trying to figure out how to append to an existing string. I have a pointer to a zval that is a string, and a pointer to another string, along with the other string's length. I have looked for a ZEND_STRCAT macro, or something similar, but don't see anything. What is the proper/best way to handle this? Thanks. Peter -- 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] mcrypt issues
Hello, crashes that are related to closing modules are probably because a change in the mcrypt library... I just found this in the manual: The library is closed by calling mcrypt_module_close(), but you should not call that function if mcrypt_generic_end() is called before. and: int mcrypt_generic_end( MCRYPT td); This function terminates encryption specified by the encryption descriptor (td). Actually it clears all buffers, and closes all the modules used. Returns a negative value on error. This function is deprecated. Use mcrypt_generic_deinit() and mcrypt_module_close() instead. In earlier versions this was neccesairy, but now it can cause crashes. If I find some more time (hopefully this weekend), I'll dig in it. regards, Derick On Thu, 23 Aug 2001, Michael S. Fischer wrote: Would anyone care to comment on this thread? Seems we've uncovered yet another mcrypt-related bug in PHP 4.0.6. Thanks, --Michael -Original Message- From: Dathan Pattishall Sent: Thursday, August 23, 2001 10:44 AM To: RO - Sever Filoti; Dathan Pattishall Cc: Drew Folta; ACP-Split Subject: RE: I think I found a mcrypt work around Actually I should of went into more detail, about the work around. I did the same thing but did not make the open call global. I committed the changes to the splitdb gate, and have it working on realacp06 and realacp08. Take a look at url_encode.inc now, and see if the seg fault is still troubling you. Great digging, and thanks for the follow up! -- D |~-Original Message- |~From: Sever Filoti [mailto:[EMAIL PROTECTED]] |~Sent: Wednesday, August 22, 2001 11:42 PM |~To: Dathan Pattishall |~Cc: Drew Folta; ACP-Split |~Subject: Re: I think I found a mcrypt work around |~Importance: High |~ |~ |~Actually I did this kind of digging myself some time ago, but it was |~before ticket code push so I didn't get the time to publish |~the results. |~ |~Anyway, only commenting mcrypt_generic_end did not do the |~trick for me, |~apache still segfaulted... strange. |~Then I've put the initialization part at global level: |~ |~$__encode_td = mcrypt_module_open (MCRYPT_DES, , |~MCRYPT_MODE_ECB, ); |~ |~$__encode_iv = mcrypt_create_iv (mcrypt_enc_get_iv_size ($td), |~MCRYPT_RAND); |~ |~and reused these variables in called function, as well as removing the |~generic_end call. |~ |~Apache stopped segfaulting, and I even ran an ab (apache |~benchmark) on a |~shop page, thousands of iterations and no segfault :-), also no memory |~leaks did occur during the benchmark. |~ |~As about the speed, Dathan is right: module_open/generic_end |~translates |~in having mcrypt library do dlopen (scan for libs...) on cipher |~libraries, allocate buffers, then deallocate buffers and |~unload (dlcose) |~the modules; this would happen per obfuscated link so it's very |~expensive. |~ |~I guess what happens is that after the two mcrypt modules (tripledes, |~ecb) are loaded, another .so it's needed and hence loaded; but after |~encryption ends and generic_end tries to unload explicitly |~(dlclose) the |~mcrypt module, dynamic loader whines cannot close resident |~module, and |~probably next encryption step works with same module loaded but with |~encryption buffers drained and this leads to signal 11. |~ |~Next 'mistery': apache stopped segfaulting but with the hacked code |~tested with ab I could see in apache's error log messages like: |~ |~[Thu Aug 16 01:27:09 2001] [notice] child pid 729 exit signal Aborted |~(6) |~apache: dl-close.c:119: _dl_close: Assertion `new_opencount[0] == 0' |~failed. |~[Thu Aug 16 01:27:20 2001] [notice] child pid 724 exit signal Aborted |~(6) |~ |~A failed assertion, probably related to shared libraries loading / |~unloading as well. Fortunately, seems to happen only when an apache |~process exists, thus has no user visible effects (response already |~sent). |~ |~Dathan Pattishall wrote: |~ |~ Could be, I'll do a more in-depth analysis when I finish |~the aw_setup |~ script. But when these boxes have 2GB of memory and the apache is |~ restarted every day, I don't see this as being much of an issue |~ (short-term) |~ |~ -Original Message- |~ From: Drew Folta |~ Sent: Wednesday, August 22, 2001 3:46 PM |~ To: Dathan Pattishall; ACP-Split |~ Subject: RE: I think I found a mcrypt work around |~ Importance: High |~ |~ OK, but are the apaches leaking memory (more than usual) |~ ?Drew |~ |~ -Original Message- |~ From: Dathan Pattishall |~ Sent: Wednesday, August 22, 2001 3:27 PM |~ To: ACP-Split |~ Subject: I think I found a mcrypt work around |~ |~ After doing some debugging and looking at |~ TripleDes, I ran across a resource re-allocate |~ function for mcrypt, called mcrypt_generic_end . |~
[PHP-DEV] RE: Bug #12276 Updated: error orbit_object
Hi, I can't access this site because it's on the port 1081 (http://universe.2good.nu:1081) May be it's because I'm behind a firewall. Is it possible to make it available from another port (80, for example) ??? thanks M. Henaff -Message d'origine- De : Bug Database [mailto:[EMAIL PROTECTED]] Envoye : jeudi 23 aout 2001 23:53 A : HENAFF Mari-mai FTRD/DMI Objet : Bug #12276 Updated: error orbit_object ID: 12276 Updated by: eriksson Reported By: [EMAIL PROTECTED] Old Status: Assigned Status: Closed Bug Type: Satellite CORBA related Operating System: linux PHP Version: 4.0.6 Assigned To: eriksson New Comment: No feedback. Please try Universe as a replacement for Satellite: http://universe.2good.nu/ Previous Comments: [2001-08-10 01:46:35] [EMAIL PROTECTED] Regarding having multiple .idl files: Could you please send me ([EMAIL PROTECTED]) the IDL files required for reproducing this? Regarding messages in error_log: Is $obj = new OrbitObject($ior); enough to trigger these error messages? Otherwise, do you perform operations on the $obj too? What operations? Could you send me the IOR and IDL for the object that fails? \David Eriksson, author of Satellite [2001-07-20 06:01:21] [EMAIL PROTECTED] Hi, I installed successfully the satellite extension (apache1.3.11, php4.0.6, cvs version of orbit and glib1.2.10). I had a first problem that i managed to resolve : if you put more than one idl file in the idl_directory, apache won't start. So i had to put all my interfaces in a single idl file, and then i could start apache. The second problem i can't resolve is that when i put this line : $obj = new OrbitObject($ior); in my php script, it fails and i get these errors in the apache error_log file : GLib-CRITICAL **: file ghash.c: line 138 (g_hash_table_lookup): assertion `hash_ table != NULL' failed. GLib-CRITICAL **: file gmem.c: line 563 (g_mem_chunk_alloc): assertion `mem_chun k != NULL' failed. Thanks in advance ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=12276edit=2 -- 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] Bug #12941: PHPSESSID appended to links causes invalud html.
From: [EMAIL PROTECTED] Operating system: Windows 2000 Adv Server PHP version: 4.0.5 PHP Bug Type: Session related Bug description: PHPSESSID appended to links causes invalud html. URI: http://loopy.2y.net/main.php Server: Microsoft-IIS/5.0 Character encoding: unknown Document type: HTML 4.01 Transitional Below are the results of attempting to parse this document with an SGML parser. Line 24, column 154: ... *a href=/programming/projects.asp?type=currentPHPSESSID=64076887e5 ... ^ Error: unknown entity PHPSESSID (explanation...) All you need to do is make PHPSESSID be amp;PHPSESSID (that is the html entity for in the changed one, if it doesn't show up.) Thanks. -Harlan -- Edit bug report at: http://bugs.php.net/?id=12941edit=1 -- 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] SINGLE variable type in ActiveX call
Hi, I'm trying to call a ActiveX/COM object method that uses a SINGLE variable type parameter. It fails constantly with this kind of error message: Warning: Invoke() failed: Type conflict. in c:\www\php\mypage.php4 on line 42 Obviously it must be the SINGLE variables that triggers this, which is clear since PHP reports it to be a double. Sofar I haven't succeded in finding any reference to such a problem in any FAQ. Is anyone on this list able to help me out with this? Lars Nielsen -- 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] for the php-gtk people
Hi Marc! On Fri, 24 Aug 2001, Marc Boeren wrote: Hi, I've been looking at crossplatform gui-development, and one of the things that is easily found is the wxWindows tools (www.wxwindows.org). This looks to be sort of the same as php-gtk, but it does windows, motif os/2 and mac as well (aside from gtk). There exists wxPython and wxPerl... why not wxPHP? Marc, it would be an absolutely cool idea :) I've been playing with wxPython and saw how easy was to do very neat apps in few lines of code. Fact is, it needs somebody to take the time and start such a project, put some initial effort in it, then I guess volunteers will follow [I for one, would be interested to get my C++ skills out of the dust ;) ] So actually the question is, who has the time to start it? -- teodor -- 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] Bug #12943: Under new Apache, warning about compile..
From: [EMAIL PROTECTED] Operating system: Win32 PHP version: 4.0.6 PHP Bug Type: *Compile Issues Bug description: Under new Apache, warning about compile.. Date of report: 24 Aug 2001 Config: Apache 1.3.20 (Latest release) Win32 PHP 4.0.6 *Note* Current and future Apache releases will use .so extension on moduals (php4apache.dll is renamed php4apache.so) Upon exacution of Apache, Apache warns: [warn] Loaded DSO c:/pathtodll/php4apache.so uses plain Apache 1.3 API, this modual might crash under EAPI! (Please recompile it with -DEAPI) I would like to obtain a re-compiled PHP modual that more supports EAPI please. I will watch php.net for updates. -- Edit bug report at: http://bugs.php.net/?id=12943edit=1 -- 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] Bug #12941 Updated: PHPSESSID appended to links causes invalud html.
ID: 12941 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Session related Operating System: Windows 2000 Adv Server PHP Version: 4.0.5 New Comment: Use this php.ini directive: arg_separator.output = amp; Previous Comments: [2001-08-24 04:43:17] [EMAIL PROTECTED] URI: http://loopy.2y.net/main.php Server: Microsoft-IIS/5.0 Character encoding: unknown Document type: HTML 4.01 Transitional Below are the results of attempting to parse this document with an SGML parser. Line 24, column 154: ... *a href=/programming/projects.asp?type=currentPHPSESSID=64076887e5 ... ^ Error: unknown entity PHPSESSID (explanation...) All you need to do is make PHPSESSID be amp;PHPSESSID (that is the html entity for in the changed one, if it doesn't show up.) Thanks. -Harlan Edit this bug report at http://bugs.php.net/?id=12941edit=1 -- 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] for the php-gtk people
There exists wxPython and wxPerl... why not wxPHP? Marc, it would be an absolutely cool idea :) That's what I thought :-) So actually the question is, who has the time to start it? Well, not right now... But I will probably be using wxWin over the next couple of months for some other development projects. Perhaps after I have a bit of mileage using wxWin I'll look into setting up wxPHP (if somebody beats me to it, I'd be more than happy to help once I find some time) Just as a thought, should this go into the php cvs somewhere, or should a project be set up as sourceforge or something? Cheerio, Marc. -- 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] zend_parse_parameters
Hi, When parsing strings from parameters with zend_parse_parameters, it is required that the programmer pass in an int to receive the length of the string. Could we relax this and allow a NULL instead if we do not need the length of the string? It would make the calling code more pretty because we would not need to declare a bunch if ints that don't otherwise get used. Yeah, I know about binary safety, but when I'm passing this stuff to binary unsafe functions there doesn't seem much point :) --Wez. -- 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] for the php-gtk people
Hi Marc! On Fri, 24 Aug 2001, Marc Boeren wrote: There exists wxPython and wxPerl... why not wxPHP? Marc, it would be an absolutely cool idea :) That's what I thought :-) So actually the question is, who has the time to start it? Well, not right now... But I will probably be using wxWin over the next couple of months for some other development projects. Perhaps after I have a bit of mileage using wxWin I'll look into setting up wxPHP (if somebody beats me to it, I'd be more than happy to help once I find some time) Just as a thought, should this go into the php cvs somewhere, or should a project be set up as sourceforge or something? well, AFAIK php-gtk is a different beast; so sourceforge I guess. -- teodor -- 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] htmlentities and charset awareness: -- str_convert_encoding
Hi, I'm putting together a new PHP function called str_convert_encoding which will convert a string from one encoding to another using the features of the system. It works like this: string str_convert_encoding(string srcstring, string fromenc, string toenc) // No change; return source if (fromenc == toenc) return srcstring; Promote us-ascii and iso-8859-1 to cp1252 Try to convert using mbstring if present Try to convert using recode if present Try to convert using iconv if present return original string if cannot convert Promoting the charset is safe because iso-8859-1 is us-ascii with extensions and cp1252 is iso-8859-1 with extensions. What I have found is that quite often ascii is used for charsets when it is really iso-8859-1 or cp1252. The spirit of this function is to pass back something useful and not be too strict/pedantic about it. For the implementation, I've added php_str_convert_encoding that does the actual work and also returns a success code so that C code knows if the encoding was changed. I plan to use this function with the htmlentities mods that I have done recently so that when it comes across an unknown charset it can convert it to utf-8, preserve any wide chars that might be present, encode the entities and then convert back to the original encoding again. Does anyone have any comments or suggestions about this? I'm fairly certain that this function would be well received and prevent loads of people having to do the equivalent in user land. --Wez. -- 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] Bug #12944: new date() and getdate() feature
From: [EMAIL PROTECTED] Operating system: linux redhat 7.0 PHP version: 4.0.4pl1 PHP Bug Type: Feature/Change Request Bug description: new date() and getdate() feature It would be nice is the php date() function could return the ISO-defined week of year. getdate() could also add that value (the ISO-defined week of year) associated to the 'yweek' key in the returned array. -- Edit bug report at: http://bugs.php.net/?id=12944edit=1 -- 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] Bug #12944 Updated: new date() and getdate() feature
ID: 12944 Updated by: derick Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Feature/Change Request Operating System: linux redhat 7.0 PHP Version: 4.0.4pl1 New Comment: strftime already supports this: (from the manual notes): Week number: print strftime(%W); Previous Comments: [2001-08-24 07:45:59] [EMAIL PROTECTED] It would be nice is the php date() function could return the ISO-defined week of year. getdate() could also add that value (the ISO-defined week of year) associated to the 'yweek' key in the returned array. Edit this bug report at http://bugs.php.net/?id=12944edit=1 -- 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] Bug #12945: GD 1.8.4 still has gdImageCreateFromGif but not gdImageGif
From: [EMAIL PROTECTED] Operating system: FreeBSD 4.3 PHP version: 4.0.6 PHP Bug Type: GD related Bug description: GD 1.8.4 still has gdImageCreateFromGif but not gdImageGif I'm building PHP4 4.0.6 from the FreeBSD ports tree and enabling GD support. The version of GD in the FreeBSD ports tree is 1.8.4. The problem I'm having is that PHP fails to build correctly. I've tracked it down to the fact that GD 1.8.4 still has the source for gdImageCreateFromGif and gdImageCreateFromGifCtx, but the definitions have been removed from gd.h. Some no-so-clever person decided to add the function definitions for these functions. This introduces the side effect that PHP4's configure goes looking for these function definitions, then assumes that gdImageGif is defined when used in ext/gd/gd.c, function PHP_FUNCTION(imagegif), line 1404. I'm going to log this bug with FreeBSD ports, but it might be best to explicitly check for gdImageGif, rather than the function prototypes for gdImageCreateFromGif. Thanks for the only decent Web development tool. Regards, Chris Knight -- Edit bug report at: http://bugs.php.net/?id=12945edit=1 -- 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] Re: Bug #12929 Updated: crash in array_map with associative arrays
They won't be preserved if you work with more than 1 array. I can fix the crash, but what should be done with the keys? Should they be just ignored? I think it only makes sense to preserve them if you are mapping a single arrays, in case there are 2 or more, the keys are useless.. agree? Yup i agree... :) I was only interested in the keys Greetz and tnx, -Andrei * It said 'Winmodem' on the box, but I still feel like I lost. * -- 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] Build warning
In file included from php_apache_http.h:6, from php_apache.c:45: /usr/include/apache/ap_config.h:1316: warning: `XtOffsetOf' redefined /home/wez/src/phpbuild/main/php.h:344: warning: this is the location of the previous definition In file included from /usr/include/apache/httpd.h:71, from mod_php4.c:32: /usr/include/apache/ap_config.h:1316: warning: `XtOffsetOf' redefined /home/wez/src/phpbuild/main/php.h:344: warning: this is the location of the previous definition In file included from /usr/include/apache/httpd.h:71, from sapi_apache.c:32: /usr/include/apache/ap_config.h:1316: warning: `XtOffsetOf' redefined /home/wez/src/phpbuild/main/php.h:344: warning: this is the location of the previous definition I'm using Apache 1.3.12. (SuSE 7.0) If ap_config.h was included before php.h it would solve that problem, but might cause some others. I'll leave it to someone else who knows it better :) --Wez. -- 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] Bug #12946: Warning: Can't connect to local MySQL server through socket '/var/lib/mysql/mys
From: [EMAIL PROTECTED] Operating system: linux mandrake 8.0 PHP version: 4.0.5 PHP Bug Type: MySQL related Bug description: Warning: Can't connect to local MySQL server through socket '/var/lib/mysql/mys Hi, I am getting the following when i try to open my crm application versions are ... apache-1.13.20 php-4.0.5 mysql-3.23.36 Warning: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in /var/www/html/relata/wwwroot/lib/phplib/db_mysql.inc.php on line 76 Database error: connect(localhost, root, $Password) failed. MySQL Error: () Session halted. even i tried with simple code ... ?php $link = mysql_connect (localhost, root, ) or die (Could not connect); print (Connected successfully); mysql_close ($link); ? i used open my mysql using following command and it will open for me to update also. mysql -u root i don't have password mysql If anyone had solution please... thanQ with best regards gvlsivarao -- Edit bug report at: http://bugs.php.net/?id=12946edit=1 -- 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] [Fwd: Bug #12946: Warning: Can't connect to local MySQL server through socket '/var/lib/mysql/mys]
Original Message Subject: Bug #12946: Warning: Can't connect to local MySQL server through socket '/var/lib/mysql/mys From: PHP Bug Database [EMAIL PROTECTED] To: [EMAIL PROTECTED] From: [EMAIL PROTECTED] Operating system: linux mandrake 8.0 PHP version: 4.0.5 PHP Bug Type: MySQL related Bug description: Warning: Can't connect to local MySQL server through socket '/var/lib/mysql/mys Hi, I am getting the following when i try to open my crm application versions are ... apache-1.13.20 php-4.0.5 mysql-3.23.36 Warning: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in /var/www/html/relata/wwwroot/lib/phplib/db_mysql.inc.php on line 76 Database error: connect(localhost, root, $Password) failed. MySQL Error: () Session halted. even i tried with simple code ... ?php $link = mysql_connect (localhost, root, ) or die (Could not connect); print (Connected successfully); mysql_close ($link); ? i used open my mysql using following command and it will open for me to update also. mysql -u root i don't have password mysql If anyone had solution please... thanQ with best regards gvlsivarao -- Edit bug report at: http://bugs.php.net/?id=12946edit=1 - This email was sent using SquirrelMail. Webmail for nuts! http://squirrelmail.org/ -- 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] Bug #12945 Updated: GD 1.8.4 still has gdImageCreateFromGif but not gdImageGif
ID: 12945 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: GD related Operating System: FreeBSD 4.3 PHP Version: 4.0.6 New Comment: Nothing wrong with the configure. You just have conflicting versions of GD library in your system. Remove all of them and reinstall it. Do the same for PHP. Previous Comments: [2001-08-24 08:28:41] [EMAIL PROTECTED] I'm building PHP4 4.0.6 from the FreeBSD ports tree and enabling GD support. The version of GD in the FreeBSD ports tree is 1.8.4. The problem I'm having is that PHP fails to build correctly. I've tracked it down to the fact that GD 1.8.4 still has the source for gdImageCreateFromGif and gdImageCreateFromGifCtx, but the definitions have been removed from gd.h. Some no-so-clever person decided to add the function definitions for these functions. This introduces the side effect that PHP4's configure goes looking for these function definitions, then assumes that gdImageGif is defined when used in ext/gd/gd.c, function PHP_FUNCTION(imagegif), line 1404. I'm going to log this bug with FreeBSD ports, but it might be best to explicitly check for gdImageGif, rather than the function prototypes for gdImageCreateFromGif. Thanks for the only decent Web development tool. Regards, Chris Knight Edit this bug report at http://bugs.php.net/?id=12945edit=1 -- 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] Bug #12946 Updated: Warning: Can't connect to local MySQL server through socket '/var/lib/mysql/mys
ID: 12946 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: MySQL related Operating System: linux mandrake 8.0 PHP Version: 4.0.5 New Comment: Fixed in PHP 4.0.6 Previous Comments: [2001-08-24 09:33:23] [EMAIL PROTECTED] Hi, I am getting the following when i try to open my crm application versions are ... apache-1.13.20 php-4.0.5 mysql-3.23.36 Warning: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in /var/www/html/relata/wwwroot/lib/phplib/db_mysql.inc.php on line 76 Database error: connect(localhost, root, $Password) failed. MySQL Error: () Session halted. even i tried with simple code ... ?php $link = mysql_connect (localhost, root, ) or die (Could not connect); print (Connected successfully); mysql_close ($link); ? i used open my mysql using following command and it will open for me to update also. mysql -u root i don't have password mysql If anyone had solution please... thanQ with best regards gvlsivarao Edit this bug report at http://bugs.php.net/?id=12946edit=1 -- 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] for the php-gtk people
On Fri, 24 Aug 2001, Marc Boeren wrote: I've been looking at crossplatform gui-development, and one of the things that is easily found is the wxWindows tools (www.wxwindows.org). This looks to be sort of the same as php-gtk, but it does windows, motif os/2 and mac as well (aside from gtk). What do you mean by aside from gtk? Gtk+ is also cross-platform: Windows, BeOS, Unix, and soon Mac OS X. Personally, I never found Motif look appealing... There exists wxPython and wxPerl... why not wxPHP? Any thoughts from the php-gtk people? I guess I need to know what you are asking before giving a meaningful reply. -Andrei We all have photographic memories, it's just that some of us don't have any film. -- 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] Bug #12947: Https does not work
From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.0.6 PHP Bug Type: HTTP related Bug description: Https does not work Hi When switching to a https site the page loads ok but there is no padlock in the lower right hand corner of IE 5 to say that the site is secure. I am running the apache web server. There is no problem with PHP 4.0.4pl1 -- Edit bug report at: http://bugs.php.net/?id=12947edit=1 -- 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] Bug #12948: Reference to gdImageGif causes compile fail in gd.c
From: [EMAIL PROTECTED] Operating system: FreeBSD 4.3-RELEASE PHP version: 4.0.6 PHP Bug Type: Compile Failure Bug description: Reference to gdImageGif causes compile fail in gd.c It would appear that the configuraton utility looks for the function gdImageCreateFromGif in the gd library and uses this to set a compiler directive HAVE_GD_GIF which is used in #ifdefs protecting references to both this function and also gdImageGif. Thus if the gd library (and include files) have gdImageCreateFromGif but not gdImageGif, the file gd.c will fail to compile. This the case when building the FreeBSD port of mod_php4 with GD support selected from a FreeBSD ports tree updated today. Regards, Jim Hatfield -- Edit bug report at: http://bugs.php.net/?id=12948edit=1 -- 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] zend_parse_parameters
On Fri, 24 Aug 2001, Wez Furlong wrote: When parsing strings from parameters with zend_parse_parameters, it is required that the programmer pass in an int to receive the length of the string. Could we relax this and allow a NULL instead if we do not need the length of the string? It would make the calling code more pretty because we would not need to declare a bunch if ints that don't otherwise get used. Yeah, I know about binary safety, but when I'm passing this stuff to binary unsafe functions there doesn't seem much point :) Initially, I had another specifier that would let you receive just the string pointer, but in discussions with Andi we agreed that it would be good to always return the length as well. Binary safety was a major consideration in this. Don't you think people will start passing NULL all the time if this rule is relaxed? -Andrei It is commonly the case with technologies that you can get the best insight about how they work by watching them fail. -- Neal Stephenson -- 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] Bug #12938 Updated: htmlspecialchars() which doesn't strip unicode html
ID: 12938 Updated by: wez Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Feature/Change Request Operating System: linux PHP Version: 4.0.6 New Comment: Not a bug; is encoded as amp; Take a look at the mbstring extension and the functions there; they are documented in the multi-byte string functions section of the manual. In partciular, mb_decode_numericentity will be of interest to you. --Wez. Previous Comments: [2001-08-24 00:43:51] [EMAIL PROTECTED] htmlspecialchars() turns this japanese text submitted from a form: #12463;#1252: #26085;#26412;#35486;#12398;#34920;#31034;#12486;#12473;#12488; into: amp;#12463;amp;amp;#1252: amp;#26085;amp;amp;#26412;amp;#35486;amp;#12398;amp;#34920;amp;#31034;amp;#12486;amp;amp;#12473;amp;#12488; Edit this bug report at http://bugs.php.net/?id=12938edit=1 -- 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] Bug #12949: ldap_bind issues warning
From: [EMAIL PROTECTED] Operating system: linux PHP version: 4.0.6 PHP Bug Type: Output Control Bug description: ldap_bind issues warning possible bug: inside the ldap_bind, if the credentials are invalid, php issues a warning. I think it should JUST return false. Is there a reasoning behind this? ~Ryan Bohn -- Edit bug report at: http://bugs.php.net/?id=12949edit=1 -- 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] zend_parse_parameters
On 24/08/01, Andrei Zmievski [EMAIL PROTECTED] wrote: Initially, I had another specifier that would let you receive just the string pointer, but in discussions with Andi we agreed that it would be good to always return the length as well. Binary safety was a major consideration in this. Don't you think people will start passing NULL all the time if this rule is relaxed? I understand, and yes, they would. It just seems a shame to have to declare those ints when they are not used. zend_parse_parameters does a great job of reducing the tedium and clutter of declaring a php function, so I should just be grateful and keep my mouth shut :) --Wez. -- 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] Bug #12947 Updated: Https does not work
ID: 12947 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: HTTP related Operating System: Linux PHP Version: 4.0.6 New Comment: Please ask support questions on the mailing lists: http://www.php.net/support.php Previous Comments: [2001-08-24 11:40:06] [EMAIL PROTECTED] Hi When switching to a https site the page loads ok but there is no padlock in the lower right hand corner of IE 5 to say that the site is secure. I am running the apache web server. There is no problem with PHP 4.0.4pl1 Edit this bug report at http://bugs.php.net/?id=12947edit=1 -- 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] zend_parse_parameters
On Fri, 24 Aug 2001, Wez Furlong wrote: I understand, and yes, they would. It just seems a shame to have to declare those ints when they are not used. If you come up with a solution that covers both fronts, I promise we'll consider it. :) zend_parse_parameters does a great job of reducing the tedium and clutter of declaring a php function, so I should just be grateful and keep my mouth shut :) Good, so people are starting to use it.. -Andrei Politics is for the moment, an equation is for eternity. -- Albert Einstein -- 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] Bug #12948 Updated: Reference to gdImageGif causes compile fail in gd.c
ID: 12948 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Compile Failure Operating System: FreeBSD 4.3-RELEASE PHP Version: 4.0.6 New Comment: You have conflicting GD libraries/headers in your system. Or the GD library provided is buggy. Not a PHP problem. Previous Comments: [2001-08-24 11:42:34] [EMAIL PROTECTED] It would appear that the configuraton utility looks for the function gdImageCreateFromGif in the gd library and uses this to set a compiler directive HAVE_GD_GIF which is used in #ifdefs protecting references to both this function and also gdImageGif. Thus if the gd library (and include files) have gdImageCreateFromGif but not gdImageGif, the file gd.c will fail to compile. This the case when building the FreeBSD port of mod_php4 with GD support selected from a FreeBSD ports tree updated today. Regards, Jim Hatfield Edit this bug report at http://bugs.php.net/?id=12948edit=1 -- 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] Bug #12949 Updated: ldap_bind issues warning
ID: 12949 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Old Bug Type: Output Control Bug Type: LDAP related Operating System: linux PHP Version: 4.0.6 New Comment: If you want to suppress error messages, either set the error_reporting to the level you like or use @ in front of the function of which errors you don't want to output. Not a bug. (This is how all php functions work..) --Jani Previous Comments: [2001-08-24 12:32:12] [EMAIL PROTECTED] possible bug: inside the ldap_bind, if the credentials are invalid, php issues a warning. I think it should JUST return false. Is there a reasoning behind this? ~Ryan Bohn Edit this bug report at http://bugs.php.net/?id=12949edit=1 -- 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] RE: Bug #12948 Updated: Reference to gdImageGif causes compile fail in gd.c
Hi, -Original Message- From: Bug Database [mailto:[EMAIL PROTECTED]] Sent: 24 August 2001 17:47 To: [EMAIL PROTECTED] Subject: Bug #12948 Updated: Reference to gdImageGif causes compile fail in gd.c ID: 12948 You have conflicting GD libraries/headers in your system. Or the GD library provided is buggy. Not a PHP problem. Sorry, could you expand a little on that? Is it invalid to have a GD library which has gdImageCreateFromGif but not gdImageGif? As I understand it the patent on Gifs only applies to creation, not reading. Here's the relevant configuration output: checking for gdImageString16 in -lgd... yes checking for gdImagePaletteCopy in -lgd... yes checking for gdImageCreateFromPng in -lgd... yes checking for gdImageCreateFromGif in -lgd... yes checking for gdImageWBMP in -lgd... yes checking for gdImageCreateFromJpeg in -lgd... yes checking for gdImageCreateFromXpm in -lgd... yes checking for gdImageCreateTrueColor in -lgd... no checking for gdImageSetTile in -lgd... yes checking for gdImageSetBrush in -lgd... yes checking for gdImageStringFTEx in -lgd... no checking for gdImageColorClosestHWB in -lgd... yes checking for gdImageColorResolve in -lgd... yes checking for gdImageGifCtx in -lgd... no it checks for gdImageCreateFromGif, which is found, and for gdImageGifCtx, which is not found but it doesn't check for gdImageGif. The relevant bit of ext/gd/config.m4 seems to be: AC_CHECK_LIB(gd, gdImageCreateFromGif, [AC_DEFINE(HAVE_GD_GIF, 1, [ ])]) and from ext/gd/gd.c seems to be: #ifdef HAVE_GD_GIF #ifdef HAVE_GD_GIF_CTX _php_image_output_ctx(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_GIF , GIF, gdImageGifCtx); #else _php_image_output(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_GIF, G IF, gdImageGif); #endif #else /* HAVE_GD_GIF */ php_error(E_WARNING, ImageGif: No GIF support in this PHP build); RETURN_FALSE; #endif /* HAVE_GD_GIF */ ..so you can see how I drew the inference I did. Many thanks, Jim Hatfield -- 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] Bug #12902 Updated: trouble with TTF fonts
ID: 12902 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Old Status: Closed Status: Open Bug Type: GD related Old Operating System: Win'Me Operating System: Win\'Me PHP Version: 4.0.6 New Comment: Yes. Problem doesn't appear in 4.0.4pl1 (I have tested same script, All is fine). Something is wrong with the last release (and may be the 4.0.5 - I don't know) source string for better problem understanding... ImageTTFText($im, 20, 90, 30, 200, $white, d:/Times.ttf, $unistring); // d:/Times.ttf or d:\\Times.ttf ... doesn't matter, all results are equal ;( Previous Comments: [2001-08-22 12:57:24] [EMAIL PROTECTED] This is fixed already. And you should also use the whole paths to the fonts. --Jani [2001-08-22 11:33:46] [EMAIL PROTECTED] I have troubles with loading any ttf fonts. php reports general error with loading font nothing more. I use downloaded .exe version php 4.0.6 gd lib 2.0.? (it was included in) thank you sorry for english ;) Dmitriy Pavlov Edit this bug report at http://bugs.php.net/?id=12902edit=1 -- 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] Help help help ... or something like that
I have a burning question that needs to be looked at, and see if someone can give me an idea of a way to get the desired result. Are you ready. Here is my problem, I need to strip out of an mbox file everything but the body of the email, now to complicate matters this is an extremly large file, now seeing as it is a mbox file, and there for has a set pattern of information display, I figure there must be some way of striping the header information. Here is my code, which displayes the file, very easy and gives me the file size. ? $fcontents = file(/home/sites/projects/web/extractor/Main.mbx, r); $file_size = filesize (/home/sites/projects/web/extractor/Main.mbx); echo bSize of this file is/b - . $file_size . brbr; while (list ($line_num, $line) = each ($fcontents)) { echo $linebr\n; } clearstatcache (void) ? Here is the output resulting from the above code, I have only copied 3 listings. Size of this file is - 2915641 From Tue Aug 21 10:32:42 2001 Received: from killer2.nextmill.net [216.115.243.3] by thedigitallab.com with ESMTP (SMTPD32-6.05) id AB392F8015A; Tue, 21 Aug 2001 10:32:41 -0700 Subject: Kenwood Sovereign DVD Promo Sender: [EMAIL PROTECTED] From: [EMAIL PROTECTED] Date: Tue, 21 Aug 2001 10:32:41 -0700 To: [EMAIL PROTECTED] X-Priority: 1 X-MSMail-Priority: High Content-Transfer-Encoding: Quoted-Printable MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Mailer: JMail 3.7.0 by Dimac (www.dimac.net) Message-Id: [EMAIL PROTECTED] X-RCPT-TO: X-UIDL: 298071585 Status: U Contact Us Subject: Kenwood Sovereign DVD Promo State:: CA Name:: Alan T. Lim Address:: 3494 Yuba Avenue City:: San Jose e-mail: [EMAIL PROTECTED] Zip:: 95117 opt-in: yes Button: Send Request From Tue Aug 21 10:32:50 2001 Received: from killer2.nextmill.net [216.115.243.3] by thedigitallab.com with ESMTP (SMTPD32-6.05) id AB414EB01A6; Tue, 21 Aug 2001 10:32:49 -0700 Subject: Kenwood Sovereign DVD Promo Sender: [EMAIL PROTECTED] From: [EMAIL PROTECTED] Date: Tue, 21 Aug 2001 10:32:50 -0700 To: [EMAIL PROTECTED] X-Priority: 1 X-MSMail-Priority: High Content-Transfer-Encoding: Quoted-Printable MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Mailer: JMail 3.7.0 by Dimac (www.dimac.net) Message-Id: [EMAIL PROTECTED] X-RCPT-TO: X-UIDL: 298071586 Status: U Contact Us Subject: Kenwood Sovereign DVD Promo State:: Colorado Name:: Paul Wu Address:: 2313 Hampshire Road City:: Fort Collins e-mail: [EMAIL PROTECTED] Zip:: 80526 opt-in: yes Button: Send Request From Tue Aug 21 10:32:58 2001 Received: from killer2.nextmill.net [216.115.243.3] by thedigitallab.com with ESMTP (SMTPD32-6.05) id AB494ED01A6; Tue, 21 Aug 2001 10:32:57 -0700 Subject: Kenwood Sovereign DVD Promo Sender: [EMAIL PROTECTED] From: [EMAIL PROTECTED] Date: Tue, 21 Aug 2001 10:32:57 -0700 To: [EMAIL PROTECTED] X-Priority: 1 X-MSMail-Priority: High Content-Transfer-Encoding: Quoted-Printable MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Mailer: JMail 3.7.0 by Dimac (www.dimac.net) Message-Id: [EMAIL PROTECTED] X-RCPT-TO: X-UIDL: 298071587 Status: U Contact Us Subject: Kenwood Sovereign DVD Promo State:: Kentucky Name:: Janis Ross Address:: 2033 Damson Drive City:: Villa Hills e-mail: [EMAIL PROTECTED] Zip:: 41017 Button: Send Request This is the desired result: Kenwood Sovereign DVD Promo Kentucky Janis Ross 2033 Damson Drive Villa Hills [EMAIL PROTECTED] 41017 Kenwood Sovereign DVD Promo Colorado Paul Wu 2313 Hampshire Road Fort Collins [EMAIL PROTECTED] 80526 yes Kenwood Sovereign DVD Promo CA Alan T. Lim 3494 Yuba Avenue San Jose [EMAIL PROTECTED] 95117 yes Please any help would be greatly appreciated ... thanks dan = Dan McCullough --- Theres no such thing as a problem unless the servers are on fire! h: 603.444.9808 w: McCullough Family w: At Work __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.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-DEV] Bug #12902 Updated: trouble with TTF fonts
ID: 12902 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: GD related Old Operating System: Win'Me Operating System: Win\'Me PHP Version: 4.0.6 New Comment: This is still fixed. I should have mentioned that it's fixed in CVS. Thus you need to wait for next release. Or grab a development build from http://www.php4win.com/ --Jani Previous Comments: [2001-08-24 13:14:47] [EMAIL PROTECTED] Yes. Problem doesn't appear in 4.0.4pl1 (I have tested same script, All is fine). Something is wrong with the last release (and may be the 4.0.5 - I don't know) source string for better problem understanding... ImageTTFText($im, 20, 90, 30, 200, $white, d:/Times.ttf, $unistring); // d:/Times.ttf or d:\\Times.ttf ... doesn't matter, all results are equal ;( [2001-08-22 12:57:24] [EMAIL PROTECTED] This is fixed already. And you should also use the whole paths to the fonts. --Jani [2001-08-22 11:33:46] [EMAIL PROTECTED] I have troubles with loading any ttf fonts. php reports general error with loading font nothing more. I use downloaded .exe version php 4.0.6 gd lib 2.0.? (it was included in) thank you sorry for english ;) Dmitriy Pavlov Edit this bug report at http://bugs.php.net/?id=12902edit=1 -- 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] Bug #12945 Updated: GD 1.8.4 still has gdImageCreateFromGif but not gdImageGif
ID: 12945 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Bogus Status: Closed Bug Type: GD related Operating System: FreeBSD 4.3 PHP Version: 4.0.6 New Comment: Sorry. I read this report too quickly. Fixed now in CVS. Thanks for reporting this. --Jani Previous Comments: [2001-08-24 10:20:14] [EMAIL PROTECTED] Nothing wrong with the configure. You just have conflicting versions of GD library in your system. Remove all of them and reinstall it. Do the same for PHP. [2001-08-24 08:28:41] [EMAIL PROTECTED] I'm building PHP4 4.0.6 from the FreeBSD ports tree and enabling GD support. The version of GD in the FreeBSD ports tree is 1.8.4. The problem I'm having is that PHP fails to build correctly. I've tracked it down to the fact that GD 1.8.4 still has the source for gdImageCreateFromGif and gdImageCreateFromGifCtx, but the definitions have been removed from gd.h. Some no-so-clever person decided to add the function definitions for these functions. This introduces the side effect that PHP4's configure goes looking for these function definitions, then assumes that gdImageGif is defined when used in ext/gd/gd.c, function PHP_FUNCTION(imagegif), line 1404. I'm going to log this bug with FreeBSD ports, but it might be best to explicitly check for gdImageGif, rather than the function prototypes for gdImageCreateFromGif. Thanks for the only decent Web development tool. Regards, Chris Knight Edit this bug report at http://bugs.php.net/?id=12945edit=1 -- 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] Bug #12948 Updated: Reference to gdImageGif causes compile fail in gd.c
ID: 12948 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Bogus Status: Closed Old Bug Type: Compile Failure Bug Type: GD related Operating System: FreeBSD 4.3-RELEASE PHP Version: 4.0.6 New Comment: Sorry, I read this report too quickly. Thanks for the excellent analyze. This is now fixed in CVS. --Jani Previous Comments: [2001-08-24 12:46:50] [EMAIL PROTECTED] You have conflicting GD libraries/headers in your system. Or the GD library provided is buggy. Not a PHP problem. [2001-08-24 11:42:34] [EMAIL PROTECTED] It would appear that the configuraton utility looks for the function gdImageCreateFromGif in the gd library and uses this to set a compiler directive HAVE_GD_GIF which is used in #ifdefs protecting references to both this function and also gdImageGif. Thus if the gd library (and include files) have gdImageCreateFromGif but not gdImageGif, the file gd.c will fail to compile. This the case when building the FreeBSD port of mod_php4 with GD support selected from a FreeBSD ports tree updated today. Regards, Jim Hatfield Edit this bug report at http://bugs.php.net/?id=12948edit=1 -- 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] Help help help ... or something like that
[snipped support question] Dan, this is for developing the PHP language, not with. Please ask on a support forum like [EMAIL PROTECTED] . - Markus -- 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] for the php-gtk people
On Fri, 24 Aug 2001, Andrei Zmievski wrote: On Fri, 24 Aug 2001, Marc Boeren wrote: I've been looking at crossplatform gui-development, and one of the things that is easily found is the wxWindows tools (www.wxwindows.org). This looks to be sort of the same as php-gtk, but it does windows, motif os/2 and mac as well (aside from gtk). What do you mean by aside from gtk? Gtk+ is also cross-platform: Windows, BeOS, Unix, and soon Mac OS X. Personally, I never found Motif look appealing... My understanding is that it provides native support -- ie, you write for wxWindows and then when compiling for Win32 systems, it will use the native win32 interface (unlike GTK programs -- which look the same on win32 and linux). If you're compiling for a Macintosh envionment -- it uses the native Mac API. -Sterling -- 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] for the php-gtk people
On Fri, 24 Aug 2001, Sterling Hughes wrote: My understanding is that it provides native support -- ie, you write for wxWindows and then when compiling for Win32 systems, it will use the native win32 interface (unlike GTK programs -- which look the same on win32 and linux). If you're compiling for a Macintosh envionment -- it uses the native Mac API. And the advantage of this approach being...? I think having applications look the same on all platforms is more appropriate. -Andrei * On the keyboard of life, always keep one finger on the escape key. * -- 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] Bug #12950: cannot load libphp4.so into server...
From: [EMAIL PROTECTED] Operating system: Red Hat 7.1 i686 PHP version: 4.0.6 PHP Bug Type: Dynamic loading Bug description: cannot load libphp4.so into server... Compiled using: ./configure \ --with-apxs=/usr/local/apache/bin/apxs \ --enable-versioning \ --with-mysql=/usr/local/mysql \ --enable-track-vars \ --with-imap=/usr/local/imap-2001.BETA.SNAP-0108162300 \ --with-gd \ --with-ldap \ --enable-ftp \ --enable-sysvsem \ --enable-sysvshm \ --enable-sockets \ --with-gettext \ --with-openssl \ --with-mm=/usr/local/lib/mm --with-jpeg-dir=/usr/lib It compiles, makes, and installs fine. But when I try to fire up apache with the module loading.. I get an error message: Syntax error on line 212 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/libphp4.so into server: libmm.so.11: cannot load shared object file: No such file or directory /etc/rc.d/init.d/apachectl start: httpd could not be started This is a paste of the EXACT message I am receiving. I need PHP to get data out of a mysql database, everything else with PHP is just gravy. I was following a how-to, and everything else worked ok.. But this. Any help is appreciated. -- Edit bug report at: http://bugs.php.net/?id=12950edit=1 -- 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] Computer Network Dealers Wholesale Exchange
Title: Q: What is the #1 reason businesses fail Q: What is the #1 reason business failure? A: Too much overhead compared to income? Q: What the fastest way to correct the problem? A: Sell excess inventory, and buy new inventory at higher margins? Hi, Sounds simple doesnt it. But we all know that correcting the problem takes time. Fortunately a new service will shortly be introduced to shorten the time and simply the process. Our client plans to introduce next month a unique Computer Network Dealers Wholesale Exchange where dealers and resellers like you can quickly come together on the Internet to sell and buy excess inventory as well as used or returned customer merchandise. Do you have excess inventory you couldnt return to the distributor or vendor? Do you have serviceable used equipment or customer returned merchandise, gathering dust in the back room? The Computer Network Dealers Wholesale Exchange is the place to be! Do you want to quickly find a better deal than your distributors wholesale price for an established product? Do you sometimes have trouble finding a particular product/model that your customer needs? The Computer Network Dealers Wholesale Exchange is the place to be! The Computer Network Dealers Wholesale Exchange will provide you an auction and classified ads site focused only on computer network equipment from exchange members. Of course, there are already well-established auction sites where you can sell or buy anything from soup to nuts. But their huge size is also a problem. Scanning these auction sites seems to take forever to find what you really need for your business. As a businessperson with limited time, wouldnt it be great to have an auction/classified site just for your industry? And with a vendor/model search engine to save you valuable time? If you think your business could benefit from such an exchange, simply reply to this email with word Info in the subject line. Then in a couple of weeks youll receive an invitation to become a FREE charter member that includes a free listing of your excess inventory. We are Direct Electronic Marketing Innovators, an Internet marketing resource service. You are receiving this email based on your indication to a computer network magazine that you are a computer network equipment reseller. IF this has been sent to you by mistake, please accept our humble apology. Thanks, Demi Direct Electronic Marketing Innovators [EMAIL PROTECTED] Notice: This message is sent in compliance of the new e-mail bill: SECTION 301. Per Section 301, Paragraph (a)(2)(C) of S. 1618, http://www.senate.gov/~murkowski/commercialemail/S771index.html Further transmissions to you by the sender of this email may be stopped at no cost to you by sending a reply to this email address with the word remove in the subject line.
Re: [PHP-DEV] for the php-gtk people
On Fri, 24 Aug 2001, Andrei Zmievski wrote: On Fri, 24 Aug 2001, Sterling Hughes wrote: My understanding is that it provides native support -- ie, you write for wxWindows and then when compiling for Win32 systems, it will use the native win32 interface (unlike GTK programs -- which look the same on win32 and linux). If you're compiling for a Macintosh envionment -- it uses the native Mac API. And the advantage of this approach being...? I think having applications look the same on all platforms is more appropriate. Some people prefer having all applications on the same platform look the same. ie, GTK programs look a bit odd, compared to your normal win32 apps (or on KDE for example). -Sterling -Andrei * On the keyboard of life, always keep one finger on the escape key. * -- 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] for the php-gtk people
On Fri, 24 Aug 2001, Sterling Hughes wrote: Some people prefer having all applications on the same platform look the same. ie, GTK programs look a bit odd, compared to your normal win32 apps (or on KDE for example). You are right, but look at it from this perspective. An application that looks the same on all platforms is easier to document and support, since there are no discrepancies between the GUI elements and general behavior. -Andrei * Apples have always been a problem ever since Eden. * -- 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] Possible Bug: Why is the object destroyed?
Why does the following result in the object $test-elements['one'] being wiped out? Although, I could possibly understand it remaining in it's original state if get_element() is actually returning a copy and not a reference to the object, I just don't understand why the object is destroyed. Seems like a possible bug in references / garbage collection. Tested with PHP 4.0.6 on linux. ?php class app { var $elements = array(); function add_element($name) { $this-elements[$name] = new element(); } function get_element($name) { //$ref = $this-elements[$name]; // uncomment and it works as expected return( $this-elements[$name] ); } } class element { var $values = array(); function add_values($value) { if (is_array($value)) { foreach ($value as $one) { $this-add_values($one); } } else { $this-values[] = $value; } } } echo pre\n; $test = new app; $test-add_element('one'); echo \ntest:\n; print_r($test); $el = $test-get_element('one'); $el-add_values( array('v1', 'v2', 'v3') ); echo \ntest:\n; print_r($test); echo \nel:\n; print_r($el); echo \n/pre; /* output == test: app Object ( [elements] = Array ( [one] = element Object ( [values] = Array ( ) ) ) ) test: app Object ( [elements] = Array ( [one] = ) ) el: element Object ( [values] = Array ( [0] = v1 [1] = v2 [2] = v3 ) ) */ ? -- 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] Bug #12942 Updated: Spelling error english .chm manual
ID: 12942 Updated by: derick Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Documentation problem Operating System: Windows 2000 PHP Version: 4.0.6 New Comment: Thx! This is fixed in CVS... CHM's will be up to date in a three days or something. Derick Previous Comments: [2001-08-24 04:51:23] [EMAIL PROTECTED] Chapter Language Reference - Basic syntax - Escaping from HTML Just below the title it shows the following: When PHP starts to handle file, it will just output the text it encouters. encouters should be encounters. Edit this bug report at http://bugs.php.net/?id=12942edit=1 -- 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] Bug #12942: Spelling error english .chm manual
From: [EMAIL PROTECTED] Operating system: Windows 2000 PHP version: 4.0.6 PHP Bug Type: Documentation problem Bug description: Spelling error english .chm manual Chapter Language Reference - Basic syntax - Escaping from HTML Just below the title it shows the following: When PHP starts to handle file, it will just output the text it encouters. encouters should be encounters. -- Edit bug report at: http://bugs.php.net/?id=12942edit=1 -- 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] Bug #12952: Output buffering misbehaving
From: [EMAIL PROTECTED] Operating system: RedHat 6.2 PHP version: 4.0.6 PHP Bug Type: Session related Bug description: Output buffering misbehaving Here's my configure line: './configure' '-with-apxs' '--enable-track-vars' '--disable-debug' '--enable-sysvshm' '-enable-sysvsem' '-enable-trans-sid' I have been running PHP 4.0.4pl1 with no problems for about 5 months and tried to move to PHP 4.0.6. The code below produced an undisplayable page in 4.0.6 but works fine in 4.0.4pl1: /// ob_start(); if (sessionResume() == false) { // some error handling code here include error.fre; return; } else { // some more logic here if($loginTo != '') // means would rather go to another page, probably from bookmark header(Location: . $loginTo . PHPSESS= . session_id()); else include member-home.fre; } ob_end_flush(); /// What happens when I run this code is IE gives me a Page cannot be displayed screen. I am positive this has something to do with 4.0.6 because I had 4.0.4pl1 installed, then upgraded to 4.0.6 and got the error, and then downgraded back to 4.0.4pl1 (where it worked properly again) without changing one line of code or anything in php.ini. Sorry I can't offer any suggestions, but let me know if I can help track this one down. -- Edit bug report at: http://bugs.php.net/?id=12952edit=1 -- 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] Bug #12954: imap_uid does not return the uid
From: [EMAIL PROTECTED] Operating system: Windows NT 4, SP6 PHP version: 4.0.6 PHP Bug Type: IMAP related Bug description: imap_uid does not return the uid This same bug was reported in bug#7486 and its current status is Bogus, that's why I'm reporting this problem again. Base on RFC1939 (Post Office Protocol - Version 3), a command UIDL can be used to retrieve the unique-id. According to RFC1939: The unique-id of a message is an arbitrary server-determined string, consisting of one to 70 characters in the range 0x21 to 0x7E, which uniquely identifies a message within a maildrop and which persists across sessions. This persistence is required even if a session ends without entering the UPDATE state. The server should never reuse an unique-id in a given maildrop, for as long as the entity using the unique-id exists. Although UIDL is an optional command, most POP3 server do support it. In fact most POP3 email clients expect it. The unique id supplied by UIDL is NOT a Message-ID in the message header. In fact, Message-ID uniqueness can not always be guranteed. Please do check into this again, because without imap_uid() funtioning properly, imap_ functions usefulness for POP3 are significantly limited. -- Edit bug report at: http://bugs.php.net/?id=12954edit=1 -- 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] Bug #12951 Updated: function: printer_open()
ID: 12951 Updated by: derick Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Output Control Operating System: Daniel PHP Version: 4.0.6 New Comment: You use the print_open in a wrong way, and that function thus fails. You should ask support questions on the [EMAIL PROTECTED] mailing list. Derick Previous Comments: [2001-08-24 16:29:12] [EMAIL PROTECTED] I am working with PHP 4.0.6, and I do not obtain to send given of the page for the printer. I use function PRINTER_OPEN() , I make the manual in accordance with, exactly thus it gives an error to me of indefinite function. What it can be? Fatal error: Call you undefined function:printer_open() $print = printer_open(); $print = printer_open(LPT1 ); printer_write($print, Test of printer ); printer_write($print, Test of printer ); printer_write($print, Test of printer ); $print = printer_close(); e this error it even gives to me with function PRINTER_WRITE() , could give tips of that he can be happening. Yours truly. Daniel Edit this bug report at http://bugs.php.net/?id=12951edit=1 -- 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] concatenating strings
On 25 Aug 2001 00:18:10 +0300, Zeev Suraski wrote: At 00:06 25-08-01, Peter Bowen wrote: I am getting a SIGSEGV with this function. I am probably just missing something. I was hoping for a function with the prototype (snip) What am I missing? Nothing I can see off hand. Where is it crashing? BTW, apparently add_string_to_string() will crash if the first string is empty (in the places it's being used in right now, the first string cannot be empty so this case is not checked). Any chance your first string is empty? Zeev Why yes, actually it is always going to be empty at least once. It is used inside of a loop, and just before the loop starts, the string is empty. The only way the string gets data is through add_string_to_string. Thanks. Peter -- 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] vim600
In nearly all files in CVS, there is a vim600: modeline. AFAIK, Vim versions until version 6 _ignore_ vim600:, since they don't recognize the syntax: they only recognize vim:, vi: and ex:, and nothing else. Then why is that modeline there? Jeroen -- 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] Bug #12941 Updated: PHPSESSID appended to links causes invalud html.
ID: 12941 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: Session related Operating System: Windows 2000 Adv Server PHP Version: 4.0.5 New Comment: I tried doing that, but it does the same thing still. Copied out of c:\winnt\php.ini: arg_separator.output = amp; Previous Comments: [2001-08-24 06:02:48] [EMAIL PROTECTED] Use this php.ini directive: arg_separator.output = amp; [2001-08-24 04:43:17] [EMAIL PROTECTED] URI: http://loopy.2y.net/main.php Server: Microsoft-IIS/5.0 Character encoding: unknown Document type: HTML 4.01 Transitional Below are the results of attempting to parse this document with an SGML parser. Line 24, column 154: ... *a href=/programming/projects.asp?type=currentPHPSESSID=64076887e5 ... ^ Error: unknown entity PHPSESSID (explanation...) All you need to do is make PHPSESSID be amp;PHPSESSID (that is the html entity for in the changed one, if it doesn't show up.) Thanks. -Harlan Edit this bug report at http://bugs.php.net/?id=12941edit=1 -- 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] Bug #12954 Updated: imap_uid does not return the uid
ID: 12954 Updated by: joey Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: IMAP related Operating System: Windows NT 4, SP6 PHP Version: 4.0.6 New Comment: I'm not sure what's going on in #7486, but if you look in the documentation for the IMAP c-client library, you'll see the following entry in bugs.txt: No POP3 UID support At least, that's the word up until imap-200a's c-client, which is the latest I have been able to find... Not a PHP bug. Previous Comments: [2001-08-24 21:48:21] [EMAIL PROTECTED] This same bug was reported in bug#7486 and its current status is Bogus, that's why I'm reporting this problem again. Base on RFC1939 (Post Office Protocol - Version 3), a command UIDL can be used to retrieve the unique-id. According to RFC1939: The unique-id of a message is an arbitrary server-determined string, consisting of one to 70 characters in the range 0x21 to 0x7E, which uniquely identifies a message within a maildrop and which persists across sessions. This persistence is required even if a session ends without entering the UPDATE state. The server should never reuse an unique-id in a given maildrop, for as long as the entity using the unique-id exists. Although UIDL is an optional command, most POP3 server do support it. In fact most POP3 email clients expect it. The unique id supplied by UIDL is NOT a Message-ID in the message header. In fact, Message-ID uniqueness can not always be guranteed. Please do check into this again, because without imap_uid() funtioning properly, imap_ functions usefulness for POP3 are significantly limited. Edit this bug report at http://bugs.php.net/?id=12954edit=1 -- 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] for the php-gtk people
On Fri, 24 Aug 2001, Andrei Zmievski wrote: On Fri, 24 Aug 2001, Sterling Hughes wrote: Some people prefer having all applications on the same platform look the same. ie, GTK programs look a bit odd, compared to your normal win32 apps (or on KDE for example). You are right, but look at it from this perspective. An application that looks the same on all platforms is easier to document and support, since there are no discrepancies between the GUI elements and general behavior. yeah -- it's a trade-off. Personally I think everything should just look like NeXt.. but hey, what do i know :) -Sterling -- 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] Bug #12951: function: printer_open()
From: [EMAIL PROTECTED] Operating system: Daniel PHP version: 4.0.6 PHP Bug Type: Output Control Bug description: function: printer_open() I am working with PHP 4.0.6, and I do not obtain to send given of the page for the printer. I use function PRINTER_OPEN() , I make the manual in accordance with, exactly thus it gives an error to me of indefinite function. What it can be? Fatal error: Call you undefined function:printer_open() $print = printer_open(); $print = printer_open(LPT1 ); printer_write($print, Test of printer ); printer_write($print, Test of printer ); printer_write($print, Test of printer ); $print = printer_close(); e this error it even gives to me with function PRINTER_WRITE() , could give tips of that he can be happening. Yours truly. Daniel -- Edit bug report at: http://bugs.php.net/?id=12951edit=1 -- 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] concatenating strings
I am getting a SIGSEGV with this function. I am probably just missing something. I was hoping for a function with the prototype strcatl(zval **z, char *s, int l); strcat(zval **z, char *s); Lacking those, I tried zval **data; /* call to zend_hash_find to set data */ zval *tmp; MAKE_STD_ZVAL(tmp); ZVAL_STRINGL(tmp, s, l, 1); add_string_to_string(*data, *data, tmp); What am I missing? Thanks. Peter On 24 Aug 2001 11:02:51 +0300, Zeev Suraski wrote: Look at add_string_to_string(). At 04:14 24-08-01, Peter Bowen wrote: I am writing an extension, and trying to figure out how to append to an existing string. I have a pointer to a zval that is a string, and a pointer to another string, along with the other string's length. I have looked for a ZEND_STRCAT macro, or something similar, but don't see anything. What is the proper/best way to handle this? Thanks. Peter -- 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] concatenating strings
On 25 Aug 2001 00:32:59 +0300, Zeev Suraski wrote: Ok, I can improve add_string_to_string() to support empty strings. Zeev I have managed to avoid the problem, now that I know that I can't have an empty string as the first op, so it works. Once I release the extension, I am sure that people will find ways optimize it, and having an add_string_to_string with will accept a null string will be one of them. Thanks. Peter -- 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] Bug #12955: Pal Pilot Docs problems
From: [EMAIL PROTECTED] Operating system: W2k, Red Hat 7.1 PHP version: 4.0.6 PHP Bug Type: Documentation problem Bug description: Pal Pilot Docs problems Hello! Where and why I can see the PHP Docs for Palm Pilot? I have installed and I can't found it on my Palm, I'd like to read it while I'm cheking some stuff traveling Best regards fachtopia -- Edit bug report at: http://bugs.php.net/?id=12955edit=1 -- 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] concatenating strings
At 00:06 25-08-01, Peter Bowen wrote: I am getting a SIGSEGV with this function. I am probably just missing something. I was hoping for a function with the prototype strcatl(zval **z, char *s, int l); strcat(zval **z, char *s); Lacking those, I tried zval **data; /* call to zend_hash_find to set data */ zval *tmp; MAKE_STD_ZVAL(tmp); ZVAL_STRINGL(tmp, s, l, 1); add_string_to_string(*data, *data, tmp); What am I missing? Nothing I can see off hand. Where is it crashing? BTW, apparently add_string_to_string() will crash if the first string is empty (in the places it's being used in right now, the first string cannot be empty so this case is not checked). Any chance your first string is empty? Zeev -- 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] Re: Re: sysvsem extention question
Chris Chabot [EMAIL PROTECTED] writes: Hey Jason, i do see your point. However, something still illudes me in my reasoning i think.. In a web envirioment, you are most likely to be in one of two situations when using semaphores. - Plain standard lock (with ability of doing resource count) - All web servers connect to a external process that handles a service (like printer) - The web processes them selves are the 'external resource' which handle the decreasing of lock-count The notes in the original source code of the php extention explained that the second+third lock were used for: - Resource count - Be able to set initial max-resource count However, when i follow this reasoning, two things come to mind - Resource count is a API provided by the sysvsem implimentation via semctl (# waiting, etc) - if you try to set the semaphore's resource count, and it fails (other process connected to it and locked it?) then wouldnt it be safe to assume that that 'other process' is another web process, which sets the same resource counters... so we end up with an good situation anyways... So if you would do a semget with IPC_CREATE + IPC_EXCL. If this succeeds, do the SETALL/SETVAL routine via semctl, if it fails on EEXISTS, do a second semget without create+excl and attach to it.. I haven't looked at the code for years, but I may have been thinking that the semaphore lives on after all the processes using it have died. So, if you change the allowed resource usage in your php code and restart the server, you want the new value to take effect and not be stuck with the old value from the last run. Donno if it would work, or how-much overhead it would add, but it sounds like it could ;-) -- Chris Jason Greene wrote: - Original Message - From: Sascha Schumann [EMAIL PROTECTED] To: Jason T.Greene [EMAIL PROTECTED] Cc: Tom May [EMAIL PROTECTED]; Chris Chabot [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, August 24, 2001 1:49 AM Subject: Re: [PHP-DEV] Re: Re: sysvsem extention question parent process right before fork. There is no parent initializer for a php module author MINIT() is called from the parent process in forking servers. The mm storage handler uses this hook to instantiate a shared memory segment and propagate the handle to all child processes. Sascha is right... Allow me to reword.. There is no way to allow a php file author the ability to execute php source during module startup of a forking web server. The module would have to allocate and initialize all semaphores before the php source is parsed. This defeats the purpose of a semaphore extension in a forking webserver environment, becuase the php source author would be limited to just the semaphors allocated by the php module. -Jason - Sascha Experience IRCG http://schumann.cx/http://schumann.cx/ircg Tom. -- 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] Re: Re: sysvsem extention question
parent process right before fork. There is no parent initializer for a php module author MINIT() is called from the parent process in forking servers. The mm storage handler uses this hook to instantiate a shared memory segment and propagate the handle to all child processes. - Sascha Experience IRCG http://schumann.cx/http://schumann.cx/ircg -- 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] Re: Re: sysvsem extention question
- Original Message - From: Chris Chabot [EMAIL PROTECTED] To: Jason Greene [EMAIL PROTECTED] Cc: Sascha Schumann [EMAIL PROTECTED]; Tom May [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, August 24, 2001 11:30 AM Subject: Re: [PHP-DEV] Re: Re: sysvsem extention question Hey Jason, i do see your point. However, something still illudes me in my reasoning i think.. In a web envirioment, you are most likely to be in one of two situations when using semaphores. - Plain standard lock (with ability of doing resource count) - All web servers connect to a external process that handles a service (like printer) - The web processes them selves are the 'external resource' which handle the decreasing of lock-count The notes in the original source code of the php extention explained that the second+third lock were used for: - Resource count - Be able to set initial max-resource count However, when i follow this reasoning, two things come to mind - Resource count is a API provided by the sysvsem implimentation via semctl (# waiting, etc) - if you try to set the semaphore's resource count, and it fails (other process connected to it and locked it?) then wouldnt it be safe to assume that that 'other process' is another web process, which sets the same resource counters... so we end up with an good situation anyways... So if you would do a semget with IPC_CREATE + IPC_EXCL. If this succeeds, do the SETALL/SETVAL routine via semctl, if it fails on EEXISTS, do a second semget without create+excl and attach to it.. That should work the same as the 3 semaphore method. The thing I wonder is if the module should do this, or if this should be left up to the php programmer. I would suggest getting as close to the C API as possible, with the possibility of adding some easier to use functions. I am starting to think that any other method would be very unflexable. -Jason Donno if it would work, or how-much overhead it would add, but it sounds like it could ;-) -- Chris Jason Greene wrote: - Original Message - From: Sascha Schumann [EMAIL PROTECTED] To: Jason T.Greene [EMAIL PROTECTED] Cc: Tom May [EMAIL PROTECTED]; Chris Chabot [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, August 24, 2001 1:49 AM Subject: Re: [PHP-DEV] Re: Re: sysvsem extention question parent process right before fork. There is no parent initializer for a php module author MINIT() is called from the parent process in forking servers. The mm storage handler uses this hook to instantiate a shared memory segment and propagate the handle to all child processes. Sascha is right... Allow me to reword.. There is no way to allow a php file author the ability to execute php source during module startup of a forking web server. The module would have to allocate and initialize all semaphores before the php source is parsed. This defeats the purpose of a semaphore extension in a forking webserver environment, becuase the php source author would be limited to just the semaphors allocated by the php module. -Jason - Sascha Experience IRCG http://schumann.cx/http://schumann.cx/ircg -- 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]