Re: [PHP-DEV] Versioning, again (was: RE: [Zend Engine 2] Re: PHPis not case sensitive?)
On Mon, 10 Sep 2001, Jani Taskinen wrote: Proposals: My proposal is that first we come up with a versioning scheme with which everybody can agree on. Then we can release this scheme to 'public' and hopefully not have to discuss/fight about this again. Examples: http://java.sun.com/products/jdk/1.2/docs/guide/versioning/spec/VersioningSpecification.html http://java.sun.com/j2se/1.3/docs/guide/extensions/versioning.html http://www.zenspider.com/ZSS/Definitions/Versions.html (the last one is something that I'd like to see for PHP) +1 on that last one for me too Also, to make NEWS file more useful than it is now I (again) propose that it is reorganized like this: Categories: ! Important note * Changed + Added - Removed This sounds like a good idea too. Derick - PHP: Scripting the Web - www.php.net - [EMAIL PROTECTED] SRM: Site Resource Manager - www.vl-srm.net - JDI Media Solutions - www.jdimedia.nl - [EMAIL PROTECTED] Boulevard Heuvelink 102 - 6828 KT Arnhem - The Netherlands - -- 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 #13224 Updated: pb with exec function
ID: 13224 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Open Bug Type: Program Execution Operating System: win98 PHP Version: 4.0.5 Previous Comments: [2001-09-10 04:04:26] [EMAIL PROTECTED] sorry, i worked with easy php 1.4 [2001-09-10 04:02:35] [EMAIL PROTECTED] i use easy php 1.5 and when i try to execute this code ? exec(pkunzip -o *.zip); ?, i obtain Warning: Unable to fork [cd ftp] in c:\program files\easyphp\www\toto.php on line .. this code worked with easy php 1.5 ( php 4.0.5 ). Edit this bug report at http://bugs.php.net/?id=13224edit=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 #13224 Updated: pb with exec function
ID: 13224 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Program Execution Operating System: win98 PHP Version: 4.0.5 New Comment: i've found a workaround by using a .bat file i've create a file called lirezip.bat where i put the following code @pkunzip -o *.zip @del *.zip and inside a php script i wrote exec(lirezip.bat) and everything worked fine Previous Comments: [2001-09-10 17:19:38] [EMAIL PROTECTED] Does a development build from http://www.php4win.com/ work? --Jani [2001-09-10 04:04:26] [EMAIL PROTECTED] sorry, i worked with easy php 1.4 [2001-09-10 04:02:35] [EMAIL PROTECTED] i use easy php 1.5 and when i try to execute this code ? exec(pkunzip -o *.zip); ?, i obtain Warning: Unable to fork [cd ftp] in c:\program files\easyphp\www\toto.php on line .. this code worked with easy php 1.5 ( php 4.0.5 ). Edit this bug report at http://bugs.php.net/?id=13224edit=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: [PHP-QA] Re: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV]RC2
On Tue, 11 Sep 2001, Jani Taskinen wrote: After adding the JAVA_LIBPATH line also for the kaffe part, I'm able to compile latest CVS without problems. Another story is that no php binary is created.. :) But this is just because I'm using the latest versions of automake/libtool/autoconf Works for me now. - 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]
[PHP-DEV] autoconf/libtool
It should be noted that autoconf-2.13/libtool 1.4 (not any later version) are still recommened. Autoconf 2.50+ takes ages to generate the configure files while libtool 1.4b+ has some possibly broken code merged into it from libtool's multi-language branch. - 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]
[PHP-DEV] New openssl cert api - please review
Hey guys, I added the first bash at some new cert generating functions for the openssl extension late last night. I would be grateful if anyone that's interested could comment on the API; thanks! --Wez. New funcs: resource openssl_pkey_new([array configargs]) Generate a new private key resource. Configargs is the standard configuration hash (described below). bool openssl_pkey_export_to_file(mixed key, string filename, [string passphrase[, array configargs]]) Export private key to a file. If passphrase is specified, or not null, then the key will be encrypted. Configargs is the standard configuration hash. bool openssl_pkey_export(mixed key, string output, [string passphrase[, array configargs]]) Export private key and place it in output. If passphrase is specified, or not null, then the key will be encrypted. Configargs is the standard configuration hash. resource openssl_csr_new(array dn, resource privkey[, array extraattribs][, array configargs]) Generate a new certificate signing request resource. If privkey is null, a new private key will be generated and returned via that parameter; otherwise it is the private key to use for the CSR. dn specifies name/value pairs for use in the distinguished name of the cert. Any valid names/values are allowed. Extraattribs specifies extra attributes in the same way. Configargs is the standard configuration hash. bool openssl_csr_export(resource csr, string output[, bool notext=true]) Sets output to the exportable form of the given CSR (PEM encoded). If notext is true (the default), additional human readable text is suppressed from the output. bool openssl_csr_export_to_file(resource csr, string filename [, bool notext=true]) As above, except that the cert is saved into the file named by the filename parameter. resource openssl_csr_sign(mixed csr, mixed cert, mixed priv_key, long days [, array configargs]) Generate a new certificate using the fields from the supplied CSR and sign it using the supplied cert and private key. The private must correspond to the supplied cert. cert may be null, in which case the newly generated cert will be self-signed. Days specifies how many days the cert will be valid for. configargs is the standard configuration hash. bool openssl_x509_check_private_key(mixed cert, mixed key) Returns true if the private key belongs to the cert. bool openssl_x509_export(mixed cert, string output[, bool notext=true]) Sets output to the exportable form of the given cert (PEM encoded). If notext is true (the default), additional human readable text is suppressed from the output. Useful for storing certs in eg: a database. bool openssl_x509_export_to_file(mixed cert, string filename [, bool notext=true]) As above, except that the cert is saved into the file named by the filename parameter. Configargs works like this: array( config = name of openssl.cnf file to use config_section_name = default section of config file to use digest_alg = name of digest algorithm to use x509_extensions = name of section describing extensions to add to generated certs req_extensions = name of section describing extensions to add to generated CSRs private_key_bits = the number of bits to use when generating a private key private_key_type = One of OPENSSL_KEYTYPE_RSA, OPENSSL_KEYTYPE_DSA, OPENSSL_KEYTYPE_DH. Only RSA keys are supported at this time. ); Any of these values may be left out, including the array itself, which may be also be null. If anything is not specified, the default configuration file is located and used. Putting it to use: == This script generates a new CSR and a self-signed cert, with the intention of it being used as an SSL certificate // Distinguished name $dn = array( countryName = UK, stateOrProvinceName = Somerset, localityName = Glastonbury, organizationName = The Brain Room Limited, organizationalUnitName = PHP Dev, commonName = secure.thebrainroom.com, emailAddress = [EMAIL PROTECTED] ); // Privkey will be set to a new key $csr = openssl_csr_new($dn, $privkey); // Now get a self-signed cert that lasts for 1 year $sscert = openssl_csr_sign($csr, null, $privkey, 365); // Display the CSR, cert and privkey in the web page for // cutting/pasting. NB: displaying the privkey may not be // safe unless over SSL. openssl_x509_export($sscert, $cert_dump); openssl_csr_export($csr, $csr_dump); openssl_pkey_export($privkey, $privkey_dump, mypassphrase); echo PREKey:\n$privkey_dump\nCert:\n$cert_dump\nCSR:\n$csr_dump\n/PRE; -- 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: [Zend Engine 2] Right/Left Shift Zero Fill operator
+1 for -- Phil Driscoll -- 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] Woah
On 11/09/01, Chuck Hagenbuch [EMAIL PROTECTED] wrote: would be even happier if calling alias_function('gettext', '_') would simply do nothing if _() already pointed to gettext(), but I won't quibble about the function_exists() check. What about a language construct: function _ = gettext; If we had this implemented during the compile phase of the engine, wouldn't it shave a few cycles off the execution time? OK, it looks a bit funny that way, so how about making alias_function(_, gettext); a language constuct (or with quotes around the args if you must). Just wondering... --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] Woah
Egon Schmid wrote: Wez Furlong wrote: So it's never going to collide with anything else You say that if you come across it and wonder what it does, the manual doesn't tell you what it is. Lets solve that by putting it in the manual. It is mentioned in the PHP manual. See http://php.net/gettext. yes, but if you know what _(...) is you don't have to read the gettext page, and if you don't know you won't figure it out from the manual unless you've read it al the way through and remember every single word in it. even searching for 'underscore' won't give you a clue ... We have a convention, not to document aliases as a function. This means _() is mentioned within the gettext() function. i thing we should at least, while not putting in extra pages for aliases, find a way to have them listed somehow and to make the URL shortcuts like http://php.net/_ work for them -- Hartmut Holzgraefe [EMAIL PROTECTED] http://www.six.de +49-711-99091-77 -- 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] Woah
Joey Smith wrote: I would rather see something to the effect of use strict; (as in perl) that can be defined (per site/directory/namespace/SOMETHING...) to mean use gettext on all calls to print than to see _() stay. now tell me how *that* isn't obscure if you happen to be looking at some piece of code (maybe due to an error message with line number) without recognising this statement at the top ... -- Hartmut Holzgraefe [EMAIL PROTECTED] http://www.six.de +49-711-99091-77 -- 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 #13244: crash on animated gif creation
From: [EMAIL PROTECTED] Operating system: PHP version: 4.0.6 PHP Bug Type: GD related Bug description: crash on animated gif creation Using GD 1.6.2 or higher with GIF patch i've encountered a PHP crash when trying to create an animated GIF from another (for resizing). A bug or a feature? -- Edit bug report at: http://bugs.php.net/?id=13244edit=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 #13244 Updated: crash on animated gif creation
ID: 13244 Updated by: derick Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: GD related Operating System: PHP Version: 4.0.6 New Comment: Bug in GD I would say, please report it to the GD guys. Derick Previous Comments: [2001-09-11 04:51:37] [EMAIL PROTECTED] Using GD 1.6.2 or higher with GIF patch i've encountered a PHP crash when trying to create an animated GIF from another (for resizing). A bug or a feature? Edit this bug report at http://bugs.php.net/?id=13244edit=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 #13243 Updated: Error when using 2D array
This is not related to arrays. if(!isset($pokoj[1][COLL]){$pokoj[1][COLL] = 3;; This line contains two syntax errors. Firstly, there is a missing ')' closing the if() evaluation and there is a stray '{' after this. Syntactically correct code would be as follows: if(!isset($pokoj[1][COLL])) $pokoj[1][COLL] = 3; In the future, please check your code thoroughly before submitting a bug report. Also, when submitting an example script, please make them small, dealing only with the problem you have. Gavin On Tue, 11 Sep 2001, Jiri.Vaja wrote: problem is on line 199 --- Pùvodní dopis -- Datum: 11.09.2001 08:12 Od: Bug Database [EMAIL PROTECTED] Pro: [EMAIL PROTECTED] Vìc: Bug #13243 Updated: Error when using 2D array ID: 13243 Updated by: swm Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Arrays related Operating System: Windows 98 SE PHP Version: 4.0.6 New Comment: I cannot recreate this on Unix systems. Could you please give a short script, illustrating how the 2d array is being manipulated. Previous Comments: [2001-09-11 01:51:58] [EMAIL PROTECTED] if (empty($pokoj[1][9])): ... this part of 2D array is realy empty. If I use 1D array, everything is OK, but i need 2D array. When Apache runing script with this row, Windows show error in module PHP4TS.DLL. P.S. I'm sorry, but my english is not good. ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=13243edit=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 #13243 Updated: Error when using 2D array
ID: 13243 Updated by: swm Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Closed Bug Type: Arrays related Operating System: Windows 98 SE PHP Version: 4.0.6 New Comment: Bogus. Previous Comments: [2001-09-11 02:01:33] [EMAIL PROTECTED] I cannot recreate this on Unix systems. Could you please give a short script, illustrating how the 2d array is being manipulated. [2001-09-11 01:51:58] [EMAIL PROTECTED] if (empty($pokoj[1][9])): ... this part of 2D array is realy empty. If I use 1D array, everything is OK, but i need 2D array. When Apache runing script with this row, Windows show error in module PHP4TS.DLL. P.S. I'm sorry, but my english is not good. Edit this bug report at http://bugs.php.net/?id=13243edit=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] SID without cookies - why sometimes automatic?
I'm using PHP4's sessions but am having a problem when cookies are disabled. On my development machine (Win ME, Apache, PHP4.0.6) SID (i.e. PHPSESSID=980324) is automatically apended to all links on the PHP pages, however on my hostrocket.com web server account (Linux, Apache, running PHP4.0.5 if this has any bearing) it's not. I checked phpinfo() and all session variables are the same on both servers. Do you have any idea why this is happening? I know I can append . SID . to each link, but doing so causes SID to appear twice on each link on development machine, and just the once on your web server. Is there perhaps some configuration I can change on the web server? I obviously prefer the way the development machine works because it saves me having to go through every link adding SID, but my main priority is just to get both machines to work the same. Jake - [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] SID without cookies - why sometimes automatic?
Hi, Is there perhaps some configuration I can change on the web server? I obviously prefer the way the development machine works because it saves me having to go through every link adding SID, but my main priority is just to get both machines to work the same. I'm not sure wether this topic belongs to the php-dev list ... Anyways, there is a configuration directive in php.ini: session.use_trans_sid = 1 ; use transient sid support if enabled ; by compiling with --enable-trans-sid If use_trans_sid is active, the session id is appended to links automatically. Caution: It has a remarkable impact on speed if the processed page has a lot of links. Greets, Andre -- 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: SID without cookies - why sometimes automatic?
Jake wrote: Is there perhaps some configuration I can change on the web server? check for trans_sid_id related settings -- Hartmut Holzgraefe [EMAIL PROTECTED] http://www.six.de +49-711-99091-77 -- 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] Woah
I agree. I think this two pronged appoach is the best way to satisfy everyone. Let's do this alias thing, but lets also document _() for the sake of those people that have never heard of gettext but need to maintain the code. --Wez. The world needs more engineers BEGIN:VCARD VERSION:2.1 N:Daniluk;Cristopher FN:Cristopher Daniluk ORG:Digital Services Network, Inc.;Executive Management TITLE:President CEO NOTE;ENCODING=QUOTED-PRINTABLE:=0D=0A TEL;WORK;VOICE:(330) 530-2373 TEL;WORK;VOICE:(800) 845-4822 TEL;CELL;VOICE:(330) 219-4819 TEL;WORK;FAX:(208) 723-6782 ADR;WORK;ENCODING=QUOTED-PRINTABLE:;President;89 West Marshall Avenue=0D=0ASuite A;McDonald;Ohio;44437;United S= tates of America LABEL;WORK;ENCODING=QUOTED-PRINTABLE:President=0D=0A89 West Marshall Avenue=0D=0ASuite A=0D=0AMcDonald, Ohio 4443= 7=0D=0AUnited States of America URL;WORK:http://www.dsnet.net/~cris EMAIL;PREF;INTERNET:[EMAIL PROTECTED] REV:20010528T230445Z END:VCARD -- 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 #13246: Arrancar con apache
From: [EMAIL PROTECTED] Operating system: Linux rh 6.0 PHP version: 4.0.6 PHP Bug Type: Apache related Bug description: Arrancar con apache Hola. Tengo instalado apache y mysql, cuando quiero arrancar aache con php 4 se cae, al no poder levantar el libphp4.so indicando indefinido uncompress -- Edit bug report at: http://bugs.php.net/?id=13246edit=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] Versioning, again (was: RE: [Zend Engine 2] Re: PHP is not case sensitive?)
[Jani Taskinen [EMAIL PROTECTED]] [this is more php-dev stuff, thus moved there] Warning: This is yet another beaten up issue but as it still hasn't been fixed, we need to find a solution to fix it. Problems: Viability, BBC, WTFF, old extensions used with new PHP version. Proposals: My proposal is that first we come up with a versioning scheme with which everybody can agree on. Then we can release this scheme to 'public' and hopefully not have to discuss/fight about this again. Examples: http://java.sun.com/products/jdk/1.2/docs/guide/versioning/spec/VersioningSpecification.html http://java.sun.com/j2se/1.3/docs/guide/extensions/versioning.html http://www.zenspider.com/ZSS/Definitions/Versions.html (the last one is something that I'd like to see for PHP) Also, to make NEWS file more useful than it is now I (again) propose that it is reorganized like this: Categories: ! Important note * Changed + Added - Removed Reasoning: There has to be clear document that describes when and why a version number changes. If someone doesn't understand WHY this document is needed they should read the rest of this email. :) --Jani p.s. Rest can be safely ignored. It is just there to show what happens everytime this issue raises it's ugly head and shouts: BOO!.. Take a look at http://cvs.php.net/co.php/pearweb/sql/design.txt. There's a versioning section at the end there, intended for PEAR. Anything we can use? - Stig -- Stig Sæther Bakken [EMAIL PROTECTED] Fast Search Transfer ASA, Trondheim, Norway -- 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 #13247: Move_uploaded_file set wrong user and wrong group
From: [EMAIL PROTECTED] Operating system: Cobalt OS PHP version: 4.0.4pl1 PHP Bug Type: Unknown/Other Function Bug description: Move_uploaded_file set wrong user and wrong group Here is my configure line : './configure' '--with-mysql' '--with-gd' '--with-ttf' '--enable-bcmath' '--enable-calendar' '--enable-memory-limit' '--enable-safe-mode' '--with-imap' '--enable-ftp' '--enable-sockets' '--with-apxs' The script that is used is as simple as : ? @move_uploaded_file($file, /path/to/my/directory/filename); ? My Apache webserver runs as user and group httpd. Now the really annoying thing is that whenever my customer or myself upload a file, the uploaded file is correctly moved but the ownership is set to httpd.root ( user httpd and group root ) Now this is a real big problem for my ( even without considering the security hole it represents ) because my customers cannot manage to erase these files anymore afterwards via FTP, because their uid will not let them touch these files. -- Edit bug report at: http://bugs.php.net/?id=13247edit=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] can't connect to LDAP Server
Hi, I compiled PHP-4.06 with LDAP support (openldap-2.0.12) without any problems, but I can't connect to my locally running LDAP server. slapd and apache (apache_1.3.20) (with statically compiled PHP-Module) are running on a HP-UX 11 box. Here are my very simple two lines of code: $ds=ldap_connect (localhost); print connect result is .$ds.BR; If I try to show the results I got an error popup with 'Documents contained no data. Try again later, or contact the server's administrator.' If I comment out the 'connect' line the browser shows the line 'connect result is' I started slapd with debugging level 65535 and I can see that there are no connection requests from PHP. Any idea? Andre -- 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 #13248: Problems with running methods.
From: [EMAIL PROTECTED] Operating system: Linux Mandrake 8.0 PHP version: 4.0.6 PHP Bug Type: YAZ related Bug description: Problems with running methods. I have installed PHP 4.0.6 (downloaded from the current site) as a CGI, --with-yaz=[DIR] over the linux Mandrake 8.0. Durind the installation there was no problems but when i tried to run PHP/YAZ functions, such as yaz_connect(), the following error ocured: Fatal error: Call to undefined function: yaz_connect() in /var/www/html/.../2.phtml on line 22 I can't define the problem. Maybe somebody khows what to do. -- Edit bug report at: http://bugs.php.net/?id=13248edit=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 #13248 Updated: Problems with running methods.
ID: 13248 Updated by: sander Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: YAZ related Operating System: Linux Mandrake 8.0 PHP Version: 4.0.6 New Comment: Can you post the complete configure line? Previous Comments: [2001-09-11 10:15:06] [EMAIL PROTECTED] I have installed PHP 4.0.6 (downloaded from the current site) as a CGI, --with-yaz=[DIR] over the linux Mandrake 8.0. Durind the installation there was no problems but when i tried to run PHP/YAZ functions, such as yaz_connect(), the following error ocured: Fatal error: Call to undefined function: yaz_connect() in /var/www/html/.../2.phtml on line 22 I can't define the problem. Maybe somebody khows what to do. Edit this bug report at http://bugs.php.net/?id=13248edit=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 #13247 Updated: Move_uploaded_file set wrong user and wrong group
ID: 13247 Updated by: hholzgra Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Unknown/Other Function Operating System: Cobalt OS PHP Version: 4.0.4pl1 New Comment: i'm pretty sure php doesn't touch your file ownerships more likely you have either root as primary group for user apache in /etc/passwd or sicky bits set for the directory ... ? Previous Comments: [2001-09-11 09:23:06] [EMAIL PROTECTED] Here is my configure line : './configure' '--with-mysql' '--with-gd' '--with-ttf' '--enable-bcmath' '--enable-calendar' '--enable-memory-limit' '--enable-safe-mode' '--with-imap' '--enable-ftp' '--enable-sockets' '--with-apxs' The script that is used is as simple as : ? @move_uploaded_file($file, /path/to/my/directory/filename); ? My Apache webserver runs as user and group httpd. Now the really annoying thing is that whenever my customer or myself upload a file, the uploaded file is correctly moved but the ownership is set to httpd.root ( user httpd and group root ) Now this is a real big problem for my ( even without considering the security hole it represents ) because my customers cannot manage to erase these files anymore afterwards via FTP, because their uid will not let them touch these files. Edit this bug report at http://bugs.php.net/?id=13247edit=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 #13249: ODBC connaect sometimes fail
From: [EMAIL PROTECTED] Operating system: Windows 2000 PHP version: 4.0.6 PHP Bug Type: ODBC related Bug description: ODBC connaect sometimes fail I developped a PHP application with multi-frame presentation. This application worked well under NT4/IIS/PHP4.0.2. Since I migrate it under W2000/IIS/PHP4.0.6/ODBC for MS-Access, I sometimes encounter problems while connecting to the database in one of the frame (odbc_connect). The error reported is 'database already in use'. The configuration of ODBC is not set to exclusive mode. It look like the different frames attempt to access simulatneously to the DataBase in exclusive mode. -- Edit bug report at: http://bugs.php.net/?id=13249edit=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 #13250: OCISessionBegin: ORA-03120: two-task conversion
From: [EMAIL PROTECTED] Operating system: Solaris 8 x86 PHP version: 4.0.6 PHP Bug Type: OCI8 related Bug description: OCISessionBegin: ORA-03120: two-task conversion When trying to connect to Oracle database from Solaris 8 on x86 station to Solaris 8 on SPARC station, OCILogon fails with message: ORA-03120: two-task conversion routine: integer overflow It seems that this bug was already reported under http://www.php.net/bugs.php?id=6456, but was close 'cause of missing feedback. Code works fine when connecting to local database, also to remote database on same platform x86, and it works also fine to connect to nrst.world database from sqlplus and tnsping works. Solaris 8 (x86) Apache 1.3.12 Oracle 8.1.5.0.0 PHP 4.0.2 code: this-conn = ocilogon(xxx,xxx,nrst.world); error message: OCIDebug: _oci_open_server new conn=0 dname=nrst.world Warning: OCISessionBegin: ORA-03120: two-task conversion routine: integer overflow in /opt/nrs/customerall.class on line 54 OCIDebug: _oci_open_session: FAILURE - CLEANUP called OCIDebug: START _oci_close_session: logging-off sess=0 OCIDebug: _oci_close_session: logging-off DEAD session OCIDebug: oci_do_connect: FAILURE - CLEANUP called OCIDebug: START _oci_conn_list_dtor: id=0 OCIDebug: END _oci_conn_list_dtor: id=0 -- Edit bug report at: http://bugs.php.net/?id=13250edit=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 #13248 Updated: Problems with running methods.
I did the following: ./configure --with-mysql --with-yaz=/usr/local/bin make make install that is only options which was appointed by me in a process of compilation. - Original Message - From: Bug Database [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 11, 2001 5:25 PM Subject: Bug #13248 Updated: Problems with running methods. ID: 13248 Updated by: sander Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: YAZ related Operating System: Linux Mandrake 8.0 PHP Version: 4.0.6 New Comment: Can you post the complete configure line? Previous Comments: [2001-09-11 10:15:06] [EMAIL PROTECTED] I have installed PHP 4.0.6 (downloaded from the current site) as a GI, --with-yaz=[DIR] over the linux Mandrake 8.0. Durind the installation there was no problems but when i tried to run PHP/YAZ functions, such as yaz_connect(), the following error ocured: Fatal error: Call to undefined function: yaz_connect() in /var/www/html/.../2.phtml on line 22 I can't define the problem. Maybe somebody khows what to do. ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=13248edit=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 #13248 Updated: Problems with running methods.
ID: 13248 Updated by: sander Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Open Bug Type: YAZ related Operating System: Linux Mandrake 8.0 PHP Version: 4.0.6 New Comment: User input: --- I did the following: ./configure --with-mysql --with-yaz=/usr/local/bin make make install that is only options which was appointed by me in a process of compilation. --- Previous Comments: [2001-09-11 10:25:33] [EMAIL PROTECTED] Can you post the complete configure line? [2001-09-11 10:15:06] [EMAIL PROTECTED] I have installed PHP 4.0.6 (downloaded from the current site) as a CGI, --with-yaz=[DIR] over the linux Mandrake 8.0. Durind the installation there was no problems but when i tried to run PHP/YAZ functions, such as yaz_connect(), the following error ocured: Fatal error: Call to undefined function: yaz_connect() in /var/www/html/.../2.phtml on line 22 I can't define the problem. Maybe somebody khows what to do. Edit this bug report at http://bugs.php.net/?id=13248edit=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 #13245 Updated: Hard 8Mb limit on file uploads?
ID: 13245 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Old Bug Type: Website problem Bug Type: HTTP related Operating System: linux PHP Version: 4.0.6 New Comment: Try these settings instead: post_max_size = 16M upload_max_filesize = 16M memory_limit = 16M (memory_limit only affects this if you have configured php with --enable-memory-limit) --Jani Previous Comments: [2001-09-11 04:55:13] [EMAIL PROTECTED] When trying to upload files larger than 8Mb I get: POST Content-Length of 9470478 bytes exceeds the limit of 8388608 bytes in Unknown on line 0 On PHP.INI i've set: upload_max_filesize = 28388608 and just in case: memory_limit= 33554432 on the script side MAX_FILE_SIZE is set to 24117248 my poop or a bug? Edit this bug report at http://bugs.php.net/?id=13245edit=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 #13243 Updated: Error when using 2D array
ID: 13243 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Closed Status: Bogus Bug Type: Arrays related Operating System: Windows 98 SE PHP Version: 4.0.6 Previous Comments: [2001-09-11 02:01:33] [EMAIL PROTECTED] I cannot recreate this on Unix systems. Could you please give a short script, illustrating how the 2d array is being manipulated. [2001-09-11 01:51:58] [EMAIL PROTECTED] if (empty($pokoj[1][9])): ... this part of 2D array is realy empty. If I use 1D array, everything is OK, but i need 2D array. When Apache runing script with this row, Windows show error in module PHP4TS.DLL. P.S. I'm sorry, but my english is not good. Edit this bug report at http://bugs.php.net/?id=13243edit=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 #13246 Updated: Arrancar con apache
ID: 13246 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Apache related Operating System: Linux rh 6.0 PHP Version: 4.0.6 New Comment: no habla. Previous Comments: [2001-09-11 09:01:43] [EMAIL PROTECTED] Hola. Tengo instalado apache y mysql, cuando quiero arrancar aache con php 4 se cae, al no poder levantar el libphp4.so indicando indefinido uncompress Edit this bug report at http://bugs.php.net/?id=13246edit=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 #13248 Updated: Problems with running methods.
ID: 13248 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: YAZ related Operating System: Linux Mandrake 8.0 PHP Version: 4.0.6 New Comment: --with-yaz=/usr/local is the correct path. IF you have yaz-config in /usr/local/bin If it's in /usr/bin then the path is /usr --Jani Previous Comments: [2001-09-11 11:49:51] [EMAIL PROTECTED] User input: --- I did the following: ./configure --with-mysql --with-yaz=/usr/local/bin make make install that is only options which was appointed by me in a process of compilation. --- [2001-09-11 10:25:33] [EMAIL PROTECTED] Can you post the complete configure line? [2001-09-11 10:15:06] [EMAIL PROTECTED] I have installed PHP 4.0.6 (downloaded from the current site) as a CGI, --with-yaz=[DIR] over the linux Mandrake 8.0. Durind the installation there was no problems but when i tried to run PHP/YAZ functions, such as yaz_connect(), the following error ocured: Fatal error: Call to undefined function: yaz_connect() in /var/www/html/.../2.phtml on line 22 I can't define the problem. Maybe somebody khows what to do. Edit this bug report at http://bugs.php.net/?id=13248edit=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] Bug #13246: Arrancar con apache
On 11 Sep 2001 [EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] Operating system: Linux rh 6.0 PHP version: 4.0.6 PHP Bug Type: Apache related Bug description: Arrancar con apache Hola. Tengo instalado apache y mysql, cuando quiero arrancar aache con php 4 se cae, al no poder levantar el libphp4.so indicando indefinido uncompress User reports: I have apache and mysql installed, when I try to start apache with php4 it crashes because it can't load libphp4.so, reporting 'uncompress not defined' (undefined symbol). Steve Langasek postmodern programmer -- 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 #13224 Updated: pb with exec function
ID: 13224 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Program Execution Operating System: win98 PHP Version: 4.0.5 New Comment: Again, does the development build from http://www.php4win.com/ work without this workaround or not? --Jani Previous Comments: [2001-09-11 02:46:51] [EMAIL PROTECTED] i've found a workaround by using a .bat file i've create a file called lirezip.bat where i put the following code @pkunzip -o *.zip @del *.zip and inside a php script i wrote exec(lirezip.bat) and everything worked fine [2001-09-10 17:19:38] [EMAIL PROTECTED] Does a development build from http://www.php4win.com/ work? --Jani [2001-09-10 04:04:26] [EMAIL PROTECTED] sorry, i worked with easy php 1.4 [2001-09-10 04:02:35] [EMAIL PROTECTED] i use easy php 1.5 and when i try to execute this code ? exec(pkunzip -o *.zip); ?, i obtain Warning: Unable to fork [cd ftp] in c:\program files\easyphp\www\toto.php on line .. this code worked with easy php 1.5 ( php 4.0.5 ). Edit this bug report at http://bugs.php.net/?id=13224edit=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 #13242 Updated: Issues compiling with IMAP support
ID: 13242 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Compile Failure Operating System: Redhat Linux 7.0 PHP Version: 4.0.6 New Comment: This should be fixed in CVS. Please try the latest snapshot http://snaps.php.net/ Previous Comments: [2001-09-10 20:12:56] [EMAIL PROTECTED] Having issues compiling PHP with IMAP 4.7 with Redhat 7.0 When I use the --with-imap=/usr/lib I get the same problem as in bug 8485 (Compiles fine, but get an SSL Error when restarting apache) When I add the --with-imap-ssl=/usr/lib, php compiles, apache works, but the imap module does not function correctly, whereas the postgres module works. When I use BOTH --with-imap=/usr/lib and --with-imap-ssl=/usr/lib i get an error with the ./configure script replies that the imap program does not support SSL. (configure: error: This c-client library does not support SSL. Recompile or remove --with-imap-ssl from configure line) System Configuration: Redhat 7.0 IMAP 4.7 RPM with Dev Packages OpenSSH RPM with Dev Packages Apache RPM with Dev Packages Configure script: ./configure --with-pgsql --with-apxs=/usr/sbin/apxs --enable-track-vars --with-imap=/usr/lib/ --with-kerberos (Using with Kerberos support as mentioned in bug database when compiling with RedHat.) Upgrading Redhat to support another version imap or imap2000 is not an option as I have software that relies on RH7.0 and is not supported by 7.1 :( If you require more information, please let me know. Please Help? Cheers, Shane. Edit this bug report at http://bugs.php.net/?id=13242edit=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] RISC OS port
James Moore [EMAIL PROTECTED] wrote: There's only a handful of small patches to various files, and a new SAPI module. Should I post the changes to this list, mail them to someone, or apply for a CVS account? I don't envisage too many more changes, but there might be the odd thing now and again if other peoples changes cause things to break. Post them to the list for review then if they are to be incorporated then you need to apply for a CVS account and you will be given access to the relevant parts of the code. OK, here they are. In some places I've used #ifdef riscos as this is defined by the compiler. It looks a bit odd though as it is not upper case. Alex -- Alex Waugh [EMAIL PROTECTED] RISC OS software from http://www.alexwaugh.com/ Index: ext/ftp/ftp.c === RCS file: /repository/php4/ext/ftp/ftp.c,v retrieving revision 1.37 diff -u -r1.37 ftp.c --- ext/ftp/ftp.c 9 Sep 2001 13:28:49 - 1.37 +++ ext/ftp/ftp.c 10 Sep 2001 20:00:16 - @@ -44,6 +44,10 @@ #include sys/time.h #endif +#ifdef HAVE_SYS_SELECT_H +#include sys/select.h +#endif + #include ftp.h #include ext/standard/fsock.h Index: ext/mysql/libmysql/global.h === RCS file: /repository/php4/ext/mysql/libmysql/global.h,v retrieving revision 1.8 diff -u -r1.8 global.h --- ext/mysql/libmysql/global.h 1 Jun 2001 20:07:26 - 1.8 +++ ext/mysql/libmysql/global.h 10 Sep 2001 20:00:22 - @@ -250,6 +250,8 @@ #endif #if defined(__EMX__) || !defined(HAVE_UINT) +#undef uint +#undef ushort typedef unsigned int uint; typedef unsigned short ushort; #endif Index: ext/standard/fsock.c === RCS file: /repository/php4/ext/standard/fsock.c,v retrieving revision 1.80 diff -u -r1.80 fsock.c --- ext/standard/fsock.c9 Sep 2001 13:29:18 - 1.80 +++ ext/standard/fsock.c10 Sep 2001 20:00:39 - @@ -52,7 +52,7 @@ #include arpa/inet.h #endif #endif -#ifdef PHP_WIN32 +#if defined(PHP_WIN32) || defined(riscos) #undef AF_UNIX #endif #if defined(AF_UNIX) Index: main/network.c === RCS file: /repository/php4/main/network.c,v retrieving revision 1.21 diff -u -r1.21 network.c --- main/network.c 9 Sep 2001 13:29:28 - 1.21 +++ main/network.c 10 Sep 2001 20:00:43 - @@ -37,6 +37,10 @@ #include fcntl.h #endif +#ifdef HAVE_SYS_SELECT_H +#include sys/select.h +#endif + #ifndef PHP_WIN32 #include netinet/in.h #include netdb.h Index: cgi_main.c === RCS file: /repository/php4/sapi/cgi/cgi_main.c,v retrieving revision 1.134 diff -u -r1.134 cgi_main.c --- cgi_main.c 9 Sep 2001 13:29:30 - 1.134 +++ cgi_main.c 10 Sep 2001 21:32:59 - @@ -64,6 +64,10 @@ #include signal.h #endif +#ifdef riscos +#include unixlib/local.h +#endif + #include zend_compile.h #include zend_execute.h #include zend_highlight.h @@ -703,6 +707,11 @@ env_path_translated = getenv(PATH_TRANSLATED); #endif if(env_path_translated) { +#ifdef riscos + /* Convert path to unix format*/ + __riscosify_control|=__RISCOSIFY_DONT_CHECK_DIR; + +env_path_translated=__unixify(env_path_translated,0,NULL,1,0); +#endif SG(request_info).path_translated = estrdup(env_path_translated); } } Index: TSRM/tsrm_virtual_cwd.h === RCS file: /repository/TSRM/tsrm_virtual_cwd.h,v retrieving revision 1.15 diff -u -r1.15 tsrm_virtual_cwd.h --- TSRM/tsrm_virtual_cwd.h 2001/08/05 01:34:40 1.15 +++ TSRM/tsrm_virtual_cwd.h 2001/09/10 20:03:28 @@ -62,7 +62,11 @@ #endif #define DEFAULT_SLASH '/' -#define DEFAULT_DIR_SEPARATOR ':' +#ifdef riscos +# define DEFAULT_DIR_SEPARATOR ';' +#else +# define DEFAULT_DIR_SEPARATOR ':' +#endif #define IS_SLASH(c)((c) == '/') #endif Index: Zend/zend.h === RCS file: /repository/Zend/zend.h,v retrieving revision 1.139 diff -u -r1.139 zend.h --- Zend/zend.h 2001/08/26 15:28:05 1.139 +++ Zend/zend.h 2001/09/10 20:03:36 @@ -40,6 +40,9 @@ #ifdef ZEND_WIN32 # include zend_config.w32.h # define ZEND_PATHS_SEPARATOR ';' +#elif defined(riscos) +# include zend_config.h +# define ZEND_PATHS_SEPARATOR ';' #else # include zend_config.h # define ZEND_PATHS_SEPARATOR ':' sapi.tar.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
[PHP-DEV] Bug #13251: Invalid calculation in argument to php_srand
From: [EMAIL PROTECTED] Operating system: Linux / Cobalt Mips PHP version: 4.0.6 PHP Bug Type: *Compile Issues Bug description: Invalid calculation in argument to php_srand At line 113 in ext/standard/crypt.c a calculation is made for the argument to php_srand() that creates an invalid result with gcc 2.7.2 on a Cobalt Mips system. httpd exits with a floating point exception when PHP is invoked. Changed php_srand(time(0) * getpid() * (php_combined_lcg() * 1.0)); to php_srand(time(0) * getpid() * (unsigned long) (php_combined_lcg() * 1.0)); -- Edit bug report at: http://bugs.php.net/?id=13251edit=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] Woah
It is no more obscure than a #define in a C file, which is the way this construct is most commonly implemented...but, as I said, I would rather see [this]...than to see _() stay. I don't like it. But it is less offensive to me than _() is... On Tue, 11 Sep 2001, Hartmut Holzgraefe wrote the following to Joey Smith : Joey Smith wrote: I would rather see something to the effect of use strict; (as in perl) that can be defined (per site/directory/namespace/SOMETHING...) to mean use gettext on all calls to print than to see _() stay. now tell me how *that* isn't obscure if you happen to be looking at some piece of code (maybe due to an error message with line number) without recognising this statement at the top ... -- 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 #13252: download link broken for 2 days!
From: [EMAIL PROTECTED] Operating system: PHP version: 4.0.6 PHP Bug Type: *General Issues Bug description: download link broken for 2 days! i tried yesterday... nada... i tried today... nada -- Edit bug report at: http://bugs.php.net/?id=13252edit=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 #13253: COM() generates NULL pointer exception
From: [EMAIL PROTECTED] Operating system: Windows 2000 PHP version: 4.0.6 PHP Bug Type: COM related Bug description: COM() generates NULL pointer exception I found that COM was giving NULL pointer exceptions for some programs and not others. I tried the following script: ? $quota = new COM(Microsoft.DiskQuota.1); $wordpad = new COM(Wordpad.Document.1); ? and got: Fatal error: NULL pointer exception in D:\Inetpub\polytranslive\comtest.php on line 3 I even found that sometimes one instance would work, and another wouldn't, both on the same COM server. -- Edit bug report at: http://bugs.php.net/?id=13253edit=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] Zend 2 and Exceptions
i meant to post the following link a while back, but i lost track of it http://users.footprints.net/~kaz/kazlib_doc/docs.html look near the bottom. i havent tried this personally, but he seems to have a portable (Ansi C) exception handling mechanism which appears well though out and documented. the license is BSDish, which is a plus. BTW, how does one subscribe to the ZE2 list ? ive been trying for a few days... -- 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 #13254: Canceld downloaded will end up in browserwindow
From: [EMAIL PROTECTED] Operating system: Slackware 8.0 PHP version: 4.0.6 PHP Bug Type: Output Control Bug description: Canceld downloaded will end up in browserwindow I made a script to start a download of a picture, when u cancel the download and refresh the parent the binary data of the download is displayed in the browser window. How to reproduce: - call the script below from a simple HTML page. - Cancel the download - refresh the HTML page Then you will see the binary data of the image ($file). So the $file must be a valid image. http://lucard.no-ip.com/hety/1.php -- for demo 1.php is the simple html file ? $file=images/dscf0009.jpg; $fp=@fopen($file,r); header(Content-Type: application/force-download); header(Content-Length: .filesize($file)); if(preg_match(/MSIE 5.5/, $HTTP_USER_AGENT)) { header(Content-Disposition: filename=\.$file .\); } else { header(Content-Disposition: attachment; filename=\.$file .\); } header(Content-Transfer-Encoding: binary); fpassthru($fp); die(); ? -- Edit bug report at: http://bugs.php.net/?id=13254edit=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] Panda Software Report: 100% Virus Free Companies
Title: Panda Antivirus PYME Èç²»ÄÜÕý³£ä¯ÀÀweb·½Ê½µÄEmail, Çëµ¥»÷ ´Ë´¦. 100% Virus Free Companies: A Stitch in Time ... ÈçºÎʵÏÖ£±£°£°£¥ÎÞ¶¾»·¾³£º¼°Ê±·ÀÖÎ... ... saves nine. ÏÖÔÚÒ»ÌõÓÐÒæµÄ½¨ÒéÄܹ»Ê¹ÄãµÄ¹«Ë¾ÔÚ½«À´ÃâÊܸ÷ÖÖDZÔÚ¼ÆËã»ú²¡¶¾µÄÇÖº¦¡£ÐÜèÈí¼þÒѾÔÚеģ±£°£°£¥ÎÞ¶¾»·¾³Ö¸ÄÏÖлã±àÁËËùÓеÄ×îºÃµÄ½¨Òé¡£ ¡¡±£»¤ËùÓÐ×î¸ß»úÃÜ£¬ÎªÄãµÄ¹«Ë¾´´½¨ÎÞ¶¾µÄ»·¾³£¡ ´Ó¸ù±¾ÉÏÁ˽ⲡ¶¾ÈëÇÖÄú¼ÆËã»úʱµÄËùÓÐÕæÏࣺ ËüÃÇϲºÃµÄÈëÇÖ·½Ê½£¬»á²úÉúµÄΣº¦£¬×îºÃµÄ´¦Àí½â¾ö·½°¸... ËùÓеÄÖîÈç´ËÀàµÄÏà¹ØÐÅÏ¢£¬Äú¶¼¿ÉÒÔ´Ó£±£°£°£¥ÎÞ¶¾»·¾³Ö¸ÄÏÖÐÃâ·Ñ»ñµÃ£¡ ÐÜèÈí¼þ×ðÖØÄúµÄÒþ˽¡£ Èç²»ÏëÔÙÊÕµ½ÎÒÃÇÌṩµÄÐÅÏ¢Çëµ¥»÷ ´Ë´¦ . -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Fw: [PHP-CVS] cvs: php4 /ext/standard php_string.h string.c
no response, so i noticed that i forgot to cc: the dev list. b. - Original Message - From: Boian Bonev [EMAIL PROTECTED] To: Derick Rethans [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Sunday, September 09, 2001 10:29 PM Subject: Re: [PHP-CVS] cvs: php4 /ext/standard php_string.h string.c hi, IMHO this is incorrect again :)) you should not return when there are some translations, because it is a common practice to have code with mixed line endings [most commonly win/unix]. the perfect solution [only like algorithm] is: ereg_replace('\n\r?|\r','br //') talking for speed - as far as i know boyer-moore algorithm is not good with short strings :)) so instead of three times calling boyer_str_to_str, it will be better to scan the string once and code the above regexp in two ifs ;) anyway not be only speaking, if it will be helpful, i can send a patch on this... b. - Original Message - From: Derick Rethans [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, September 09, 2001 3:55 PM Subject: [PHP-CVS] cvs: php4 /ext/standard php_string.h string.c derick Sun Sep 9 08:55:48 2001 EDT Modified files: /php4/ext/standard php_string.h string.c Log: - Really fix nl2br now... it's actaulyl faster now Index: php4/ext/standard/php_string.h diff -u php4/ext/standard/php_string.h:1.51 php4/ext/standard/php_string.h:1.52 --- php4/ext/standard/php_string.h:1.51 Tue Sep 4 05:35:53 2001 +++ php4/ext/standard/php_string.h Sun Sep 9 08:55:48 2001 @@ -17,7 +17,7 @@ +--+ */ -/* $Id: php_string.h,v 1.51 2001/09/04 09:35:53 sterling Exp $ */ +/* $Id: php_string.h,v 1.52 2001/09/09 12:55:48 derick Exp $ */ /* Synced with php 3.0 revision 1.43 1999-06-16 [ssb] */ @@ -117,7 +117,7 @@ PHPAPI void php_trim2(zval **str, zval **what, zval *return_value, int mode TSRMLS_DC); PHPAPI void php_strip_tags(char *rbuf, int len, int state, char *allow, int allow_len); -PHPAPI void php_char_to_str(char *str, uint len, char from, char *to, int to_len, pval *result); +PHPAPI int php_char_to_str(char *str, uint len, char from, char *to, int to_len, pval *result); PHPAPI void php_implode(zval *delim, zval *arr, zval *return_value); PHPAPI void php_explode(zval *delim, zval *str, zval *return_value, int limit); Index: php4/ext/standard/string.c diff -u php4/ext/standard/string.c:1.238 php4/ext/standard/string.c:1.239 --- php4/ext/standard/string.c:1.238 Sun Sep 9 07:42:36 2001 +++ php4/ext/standard/string.c Sun Sep 9 08:55:48 2001 @@ -18,7 +18,7 @@ +--+ */ -/* $Id: string.c,v 1.238 2001/09/09 11:42:36 derick Exp $ */ +/* $Id: string.c,v 1.239 2001/09/09 12:55:48 derick Exp $ */ /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */ @@ -2473,10 +2473,11 @@ /* {{{ php_char_to_str */ -PHPAPI void php_char_to_str(char *str, uint len, char from, char *to, int to_len, zval *result) +PHPAPI int php_char_to_str(char *str, uint len, char from, char *to, int to_len, zval *result) { - int char_count=0; - char *source, *target, *tmp, *source_end=str+len, *tmp_end=NULL; + int char_count = 0; + int replaced = 0; + char *source, *target, *tmp, *source_end=str+len, *tmp_end = NULL; for (source=str; sourcesource_end; source++) { if (*source==from) { @@ -2486,7 +2487,7 @@ if (char_count==0) { ZVAL_STRINGL(result, str, len, 1); - return; + return 0; } Z_STRLEN_P(result) = len + (char_count * (to_len - 1)); @@ -2495,6 +2496,7 @@ for (source = str; source source_end; source++) { if (*source == from) { + replaced = 1; for (tmp = to, tmp_end = tmp+to_len; tmp tmp_end; tmp++) { *target = *tmp; target++; @@ -2505,6 +2507,7 @@ } } *target = 0; + return replaced; } /* }}} */ @@ -2992,13 +2995,12 @@ if (new_length != (*str)-value.str.len) RETURN_STRINGL (tmp, new_length, 0); efree (tmp); - /* Mac style line-endings */ - tmp = boyer_str_to_str((*str)-value.str.val, (*str)-value.str.len, \n\r, 2, br /\n\r, 8, new_length); - if (new_length != (*str)-value.str.len) - RETURN_STRINGL (tmp, new_length, 0); - efree (tmp); - /* Unix style line-endings */ - php_char_to_str((*str)-value.str.val,(*str)-value.str.len, '\n',br /\n, 7, return_value); + + /* Mac / Unix style line-endings */ + if (php_char_to_str((*str)-value.str.val,(*str)-value.str.len, '\n',br /\n, 7, return_value)) + return; + efree (Z_STRVAL_P(return_value)); + php_char_to_str((*str)-value.str.val,(*str)-value.str.len, '\r',br /\r, 7, return_value); } /* }}} */ @@ -3786,6 +3788,6 @@ * tab-width: 4 * c-basic-offset: 4 * End: - * vim600: noet sw=4 ts=4 tw=78 fdm=marker - * vim600: noet sw=4 ts=4 tw=78 + * vim600: noet sw=4 ts=4 fdm=marker +
[PHP-DEV] Bug #13255: build has no mcrypt
From: [EMAIL PROTECTED] Operating system: win98 PHP version: 4.0.6 PHP Bug Type: mcrypt related Bug description: build has no mcrypt I cannot find the php_mcrypt.dll function in the 4.0.6 build. It is not contained in any of the downloads. Is there any way to have its installed? Thanks, Chris Scott -- Edit bug report at: http://bugs.php.net/?id=13255edit=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 #13256: Remote File Size / Attribute
From: [EMAIL PROTECTED] Operating system: Windows Linux PHP version: 4.0.6 PHP Bug Type: Filesystem function related Bug description: Remote File Size / Attribute I need to know the file size of remote file, but never be able to do it. One of the my example PHP Script: ?php $location = http://www.blockm.com/admin.gif;; $fp = fopen($location,w); //$fp = file_exists($location); if(!$fp) {$message = File not found;} else {$message = File Found; $temp = fstat($location); $image = GetImageSize ($location); } echo $messagebr; echo File Size: . $temp[7] . br; echo Image Size: $image[3]br; fclose($fp); ? The above script can working properly for reading local file. NB: I am doing project for Banner exchange. I want to put all the banner immage on remote Server. Regards Eko -- Edit bug report at: http://bugs.php.net/?id=13256edit=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 #13257: Crashing Apache 1.3
From: [EMAIL PROTECTED] Operating system: Windows 98 PHP version: 4.0.6 PHP Bug Type: Program Execution Bug description: Crashing Apache 1.3 I'm running phpgroupware. When I'm visit some page pop-up a screen saying there's a fault on php4ts.dll. It works fine but some times appears that error. I'm using php4.0.6 as a apache module because the php.exe never works in this pc, the apache error log says: [Wed Sep 12 00:09:22 2001] [error] [client 127.0.0.1] Premature end of script headers: c:/php/php.exe Thanks for your time... -- Edit bug report at: http://bugs.php.net/?id=13257edit=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 #13258: pdf_place_image dies when image file is not accessible
From: [EMAIL PROTECTED] Operating system: Linux 2.4 PHP version: 4.0.6 PHP Bug Type: PDF related Bug description: pdf_place_image dies when image file is not accessible The following code causes a script to silently die on the call to pdf_place_image when the file in pdf_open_image_file is not accessible (exists but file permissions deny access). $image=pdf_open_image_file($pdf,png,/usr/local/apache/htdocs/images/timesheet.png); pdf_place_image($pdf, $image, 1, 1,.48); -- Edit bug report at: http://bugs.php.net/?id=13258edit=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 #13256 Updated: Remote File Size / Attribute
ID: 13256 Updated by: derick Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Filesystem function related Operating System: Windows Linux PHP Version: 4.0.6 New Comment: Ask for support questions on the [EMAIL PROTECTED] mailing list. Derick Previous Comments: [2001-09-11 21:01:09] [EMAIL PROTECTED] I need to know the file size of remote file, but never be able to do it. One of the my example PHP Script: ?php $location = http://www.blockm.com/admin.gif;; $fp = fopen($location,w); //$fp = file_exists($location); if(!$fp) {$message = File not found;} else {$message = File Found; $temp = fstat($location); $image = GetImageSize ($location); } echo $messagebr; echo File Size: . $temp[7] . br; echo Image Size: $image[3]br; fclose($fp); ? The above script can working properly for reading local file. NB: I am doing project for Banner exchange. I want to put all the banner immage on remote Server. Regards Eko Edit this bug report at http://bugs.php.net/?id=13256edit=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 #13259: Unsetting a global var inside a function not working (can crash)
From: [EMAIL PROTECTED] Operating system: Linux (Redhat 7.1 6.2) PHP version: 4.0.6 PHP Bug Type: Reproducible crash Bug description: Unsetting a global var inside a function not working (can crash) In a (bad) block of code I found the HTTP process to crash every time with the Zend Optimizer (v1.1.0) enabled in PHP 4.0.6. The same version of Zend Optimizer does not crash in 4.0.5, however I think this is more a PHP issue than the Optimizer's. Code sample: ?php $globalVar = Hello world; clearGlobal(); echo After clear = $globalVar; function clearGlobal() { global $globalVar; unset ($GLOBALS['globalVar']); } ? With or without the Zend Optimizer enabled, the 'echo' statement displays crap (in both 4.0.5 4.0.6), rather than an empty value. However, with the Zend Optimizer enabled it actually causes the HTTP process to crash in 4.0.6. My build command for PHP is currently: ./configure --with-mysql=/usr/local/mysql --enable-track-vars --with-apxs=/usr/local/apache/bin/apxs --with-config-file-path=/usr/local/apache/conf --with-zlib (I have rebuilt PHP without the zlib extension and it makes no difference) --- GDB Backtrace: Starting program: /usr/local/apache-1.3.12/bin/httpd -X Program received signal SIGSEGV, Segmentation fault. 0x4025dee5 in zend_reverse_table () from /usr/local/apache/libexec/ZendOptimizer.so (gdb) bt #0 0x4025dee5 in zend_reverse_table () from /usr/local/apache/libexec/ZendOptimizer.so #1 0x40264513 in zend_reverse_table () from /usr/local/apache/libexec/ZendOptimizer.so #2 0x40271b35 in zend_reverse_table () from /usr/local/apache/libexec/ZendOptimizer.so #3 0x4027501d in zend_oe () from /usr/local/apache/libexec/ZendOptimizer.so #4 0x403b7130 in zend_execute_scripts (type=8, file_count=3) at zend.c:752 #5 0x403c85db in php_execute_script (primary_file=0xb818) at main.c:1206 #6 0x403c4e86 in apache_php_module_main (r=0x80ef48c, display_source_mode=0) at sapi_apache.c:89 #7 0x403c5811 in send_php (r=0x80ef48c, display_source_mode=0, filename=0x0) at mod_php4.c:536 #8 0x403c583a in send_parsed_php (r=0x80ef48c) at mod_php4.c:547 #9 0x080542e3 in ap_invoke_handler () at eval.c:41 #10 0x08067819 in process_request_internal () at eval.c:41 #11 0x0806787c in ap_process_request () at eval.c:41 #12 0x0805f11e in child_main () at eval.c:41 #13 0x0805f2ac in make_child () at eval.c:41 #14 0x0805f409 in startup_children () at eval.c:41 #15 0x0805fa36 in standalone_main () at eval.c:41 #16 0x080601c3 in main () at eval.c:41 #17 0x4009a177 in __libc_start_main (main=0x805fe7c main, argc=2, ubp_av=0xba3c, init=0x804e864 _init, fini=0x809419c _fini, rtld_fini=0x4000e184 _dl_fini, stack_end=0xba34) at ../sysdeps/generic/libc-start.c:129 -- Edit bug report at: http://bugs.php.net/?id=13259edit=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]