php-groups.com | Post Question | Search | About | Groups | Contact | Register | Login



php notes (593)

php bugs (293)

php cvs (289)

php doc cvs (213)

php qa reports (199)

php doc fr (184)

php doc de (159)

php doc bg (157)

php webmaster (152)

php general (150)


php.dev Post New
Items(34)
Subject Posted Replies From
[PATCH] fix mbregex for VPATH builds

Hi, mbregex breaks a VPATH build in the 4.3 branch currently, here is a fix: Index: ext/mbstring/config.m4 =================================================================== RCS file: /repository/php-src/ext/mbstring/config.m4,v retrieving revision 1.28.2.4 diff -u -r1.28.2.4 config.m4 --- ext/mbstring/config.m4 26 Oct 2003 03:42:27 -0000 1.28.2.4 +++ ext/mbstring/config.m4 27 Oct 2003 11:47:40 -0000 @@ -53,6 +53,7 @@ AC_DEFINE([HAVE_MBREGEX], 1, [whether to have multibyte regex support]) PHP_MBSTRING_ADD_INCLUDE([mbregex]) + PHP_MBSTRING_ADD_BUILD_DIR([mbregex])

10/27/2003 11:56:25 AM 0 jor...@redhat.com (Joe Orton)
Is this a bug?

Are there instances you all can think of where doing a header('location: $url'); causes a loss of all session data? I have a case I can reproduce consistently where doing a header() refresh or echoing out an HTML page with a meta refresh both cause resulting page to lose session. My hunch is that I may not be accounting for some ingrained PHP handling and that this isn't a bug but I can't be sure. If required, I can submit the offending code but I'll hold off in case there is an obvious answer. -- Tony Bibbs "I guess you have to remember that those who don't t

3/25/2003 10:14:04 PM 0 t...@tonybibbs.com (Tony Bibbs)
Question for Zeev, Zak or Georg - mysql_query and possible integer overflow?

Hi, I have a question for the authors of the mysql extension. I'm sure you gentlemen are very busy, but I'd appreciate your insight if you can spare a moment. I'm developing a stand-alone php application running in an infinite loop from the command line interface. A mysql database is polled continually for new rows to deal with. The same query is executed several times in one second. I've noticed that whether or not a query resource is freed the next query identifier returned from mysql_query() is ++ the last one. I'm sure this is by design and governed by the mysql driver. Naturall

3/25/2003 1:50:17 PM 0 m...@boltbluecorp.com (Matt Flaherty)
locale bug from php4.3.0

--------------ms010405060301050901020708 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, just porting big 4.2.3 application to 4.3.2rc, I see something changed from 4.3.0 about locale settings. Before 4.3.0 locale was used to print out numbers in string format and to read numbers from string formats. I mean php uses the decimal delimiter definied in the locale settings. From 4.3.0 on, php uses the decimal delimiter from locale only to output numbers to strings, not when read numbers from strings. Why ? Every other languag

3/24/2003 3:02:40 PM 0 g.tanzi...@gruppocsf.com (Giuseppe Tanzilli - CSF)
PHP 4 Bug Summary Report

PHP 4 Bug Database summary - http://bugs.php.net Num Status Summary (904 total including feature requests) ===============================================[*Configuration Issues]======== 20490 Analyzed enable versioning not supported on OSX 21195 Verified Configure warnings/errors 21973 Open 'configure' script can't find libpng.(a|so), openldap, libjava... 22189 Open Configuration file is not loaded, though PHP reports it is ===============================================[*Database Functions]========== 20946 Suspended php_ingres.dll missing in the php 4 zip!!!

3/22/2003 3:00:03 PM 0 php-...@lists.php.net
ze2 segfault #2

When running the following example through pres2 (apache 1.3.27), I get a segfault.. Sample pres2 file. <slide> <title>Interfaces Suck</title> <blurb>They really do</blurb> <example filename="interface2.php" result="1" /> </slide> interface2.php:: <?php interface ISerializable { function sleep(); function wakeup(); }; class Person implements ISerializable { public $name; function sleep() { file_set_contents("serialized", serialize($this->name) ); } function wakeup() { $this->name = unserialize(

3/21/2003 9:53:58 PM 0 sterl...@bumblebury.com (Sterling Hughes)
segfault with ze2/php5-cvs

<?php class sheep { var $name; } $start = new sheep; $start->name = "Dolly"; $new = $start->__clone(); $new->name = "Molly"; var_dump($start); ?> BOOM! -Sterling -- Good judgement comes from experience, and experience comes from bad judgement. - Fred Brooks

3/21/2003 7:47:06 PM 0 sterl...@bumblebury.com (Sterling Hughes)
add SMTP authentication to php.mail() function

Hello, I'm interested to add SMTP authentication to the php.mail() function. Is this something that the PHP dev community would endorse? I'm told that as a newbie contributor I wouldn't have direct access to the CVS, that I'd have to post my diffs to this list or get an existing developer to sponsor my changes. I already did the digging around and know what needs to happen: a small number of lines of code in /win32/sendmail.c SendText() to add the necessary SMTP AUTH commands. Maybe this has come up before and been rejected. Let me know. I did a search in the list archives but didn't tu

3/18/2003 10:22:40 PM 0 vbhackatt...@hotmail.com ("John M. Calvert")
Pb : access control

Hi, I'm playing with PHP5 and have some trouble wtith access control, here's the code I run with last php5 from snaps.php.net under windows XP : <?php class pere { private $var3; public $var1; protected $var2; function __construct() { $this->var1 = "public"; $this->var2 = "protected"; $this->var3 = "private"; } function show() { echo "pere::show() \n"; echo "var1 : $this->var1\n"; echo "var2 : $this->var2\n"; echo "var3 : $this->var3\n"; echo "\n"; } } class fils exte

3/17/2003 4:37:50 PM 0 fabrice.le...@zedesk.com ("Fabrice Le Coz")
curl multi

Hiya, If someone has some spare time could he look at curl_multi_info_read() i'd like to use (test) the curl_multi functions, but without the curl_multi_info_read it isn't really usefull (and when i look at the source i thing it's almost finished) P.S. when i test them i'll report back to you guys when i find things Greetz and tnx in advance Wico

3/17/2003 3:31:13 PM 0 wico-php-...@newcorps.biz (Wico de Leeuw)
__call for the namespaces

This idea spawned from playing with ext/rpc and the ability to declare class types on the fly.... Since zend_namespaces is really _zend_class_entry I think it would be cool to implement __call at the namespace level. namespace java { function __call($classname) { // this will be called every time a new java::$classname() is called // and $classname isn't defined eval(" class $classname { } "); // and it can return the new class return new $classname(); } } This doesn't seem like it would be too hard to implement and it will allow me to do stuf

3/17/2003 1:42:37 PM 0 rodif...@yahoo.com (Brad LaFountain)
RPC Extension

I was just playing with the RPC extension. Don't you think that the rpc layer should pass along TSRMLS_CC to all of the callbacks? rpc_call(rpc_string, void *, zval *, int, zval *** TSRMLS_CC); - Brad __________________________________________________ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.yahoo.com

3/16/2003 10:06:46 PM 0 rodif...@yahoo.com (Brad LaFountain)
4.3.2RC1: patch to compile with libgd < 2

--- ext/gd/gdttf.c.orig Sat Mar 15 22:38:28 2003 +++ ext/gd/gdttf.c Sat Mar 15 22:42:42 2003 @@ -744,9 +744,13 @@ if (tweencolorkey.pixel > 0) { x3 = x2 + col; if (x3 >= im->sx || x3 < 0) continue; +#if HAVE_LIBGD20 if (im->trueColor) { pixel = &im->tpixels[y3][x3]; } else { +#else + { +#endif #if HAVE_LIBGD13 pixel

3/15/2003 10:50:46 PM 0 bianca...@xware.it (Roberto Biancardi)
php-4.3.2RC1 interbase/firebird config.m4 problem

Let's spend few words about Firebird first. Firebird it's a "fork" of Interbase 6.0 source code, and its development is managed by a team of independent developers, not from Borland itself. Only Interbase 6.0 has been released as open source code .... instead Firebird is an open source project ......... you can find more at http://firebird.sourceforge.net. Right now both Interbase and Firebird have same API calls and php interbase module it's working for Firebird too. (May be in the future they will have different development .....) Now, the problem with php-4.3.2RC1 (and current

3/15/2003 6:38:23 PM 0 marias...@libero.it ("Daniela Mariaschi")
Re: [PHP-DEV] 64bit PHP on solaris

For my own education, is there a reason they were passed as void* to begin with? On Fri, 2003-03-14 at 23:43, James Devenish wrote: > In message <Pine.LNX.4.53.0303141720530.27207@zaneeb.brainnet.i> > on Fri, Mar 14, 2003 at 05:22:11PM +0000, Wez Furlong wrote: > > Please coordinate with me on streams issues; if some 64bit oses > > declare descriptors as longs rather than ints, then we could have a > > bigger job on our hands (similar to the mess with socket types under > > win32). > > Regardless of any potential disasters with _php_stream_cast, there are > at least a few unsub

3/15/2003 4:49:42 PM 0 cfi...@affinitysolutions.com (Chris Field)
PHP 4 Bug Summary Report

PHP 4 Bug Database summary - http://bugs.php.net Num Status Summary (1030 total including feature requests) ===============================================[*Configuration Issues]======== 19282 Wont fix Place php4ts.dll into \sapi 20490 Analyzed enable versioning not supported on OSX 20689 Wont fix php_admin_value disable_functions not working as it should 21195 Verified Configure warnings/errors 21216 Wont fix phpize passes --no-verify to ltconfig without specifying host 21973 Open 'configure' script can't find libpng.(a|so), openldap, libjava... 22001 Wont fix

3/15/2003 3:00:03 PM 0 php-...@lists.php.net
Apache2 as service, php4.3.1 and Interbase 6.0

------=_NextPart_000_000A_01C2EB00.368553F0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi! I am trying to setup Apache2, php4.3.1 and Interbase 6.0 to work = together on a Windows 2000 Professional system. When I use Apache2 as a = console application, everything seems to work ok, but when I use it as a = service it does not see the the Interbase database anymore (php errror - = Warning: ibase_connect(): unavailable database in ...) I do not understand why the script works with Apache2 as console and do = not work with Apache2 as se

3/15/2003 1:36:06 PM 0 I.Schue...@t-plusplus.de ("Dr. I. Schueler")
Re: [PHP-DEV] 64bit PHP on solaris

> CRIPES, people! I posted patches in November 2002 (admittedly, it was a > large patch and probably no one got to check it all out). Then, I > reposted them (and sent then directly to you, Dave!) a few days ago. And I got all but the three files merged that are probably causing his problem too - sigh- Sorry but I don't commit what I don't understand, and the three streams files needed some more understanding on my part. In those areas the php5 head differs quite a bit from the 4_3 stream. And on top of that I got diverted by a bug in the session stuff too. Well as I always sa

3/14/2003 4:00:50 PM 0 David.H...@HP.com ("David Hill")
RE: [PHP-DEV] Possible problem in the parser

> -----Original Message----- > From: Andi Gutmans [mailto:andi@zend.com] > Sent: 14 March 2003 14:50 > > You are right that it doesn't behave the same as C. However, > personally > although it might have been better for it to work like C I > don't think it's > a good idea to change it now. First of all it would break backwards > compatibility in a way which would be hard for people to find > where the bug > is and how to fix it. Secondly, not meaning to insult anyone > here, but I > think people who write such code without using parentheses > should improve > their c

3/14/2003 3:35:38 PM 0 M.F...@lmu.ac.uk ("Ford, Mike [LSS]")
RE: [PHP-DEV] Possible problem in the parser

> -----Original Message----- > From: marcus.boerger@t-online.de [mailto:marcus.boerger@t-online.de] > Sent: 13 March 2003 19:33 > To: Ford, Mike [LSS] > Cc: 'Andrey Hristov'; php-dev@lists.php.net > Subject: RE: [PHP-DEV] Possible problem in the parser > > > At 14:58 13.03.2003, Ford, Mike [LSS] wrote: > > >Just to make this completely clear, in left-associative PHP > > > > b = a==1? 4:a==2? 5:6; > > > >is equivalent to > > > > b = (a==1? 4:a==2)? 5:6; > > > NO it is not equal. Either '==' has higher precedence OR '?:' has. > See one of my previous

3/14/2003 12:01:15 PM 0 M.F...@lmu.ac.uk ("Ford, Mike [LSS]")
RE: [PHP-DEV] Re: Segmentation violation

what is your platform ? > -----Original Message----- > From: Matt [mailto:m.setter@cqu.edu.au] > Sent: Wednesday, March 12, 2003 6:03 PM > To: php-dev@lists.php.net > Subject: [PHP-DEV] Re: Segmentation violation > > > J, I will post an issue, but as far as I can tell the error is very > intermittent. I don't have a consistent action that I do each > time to cause > the error. It is just randomly (as far as I can tell) throughout the > application. > > But If you like I'll send some through > > J Smith wrote: > > > > > How about providing a short example script

3/14/2003 4:21:55 AM 0 roshan.n...@hp.com ("NAIK,ROSHAN (HP-Cupertino,ex1)")
64bit PHP on solaris

--=-C1WbPnRCobMbqS43kJEn Content-Type: text/plain Content-Transfer-Encoding: quoted-printable We have been attempting to run php on a brand new sun v880, and have had a number of problems. =20 first file_get_contents & readfile both core dump with bus errors b/c the file descriptors are typed as int's when they should be longs (steams.c lines 1020/1156) second, and far stranger is when you open a file with the mode 'a' it opens it the does a seek using SEEK_CUR which leaves the file pointer at the beginning of the file, shouldn't that bee a SEEK_END? Altering that results in

3/13/2003 4:10:10 PM 0 cfi...@affinitysolutions.com (Chris Field)
CVS Account Request: jorton

Commit of autoconf code cleanups to php4 (4_3 branch) needed for systems which have system libraries in /usr/lib64 rather than /usr/lib.

3/13/2003 3:17:01 PM 0 jor...@redhat.com ("Joe Orton")
RE: [PHP-DEV] Possible problem in the parser

> -----Original Message----- > From: Andrey Hristov [mailto:andrey@webgate.bg] > Sent: 12 March 2003 17:26 > > > On Wed, 12 Mar 2003, Andrey Hristov wrote: > > > > > Few minutes ago I found the following behaviour somehow > wierd for me : > > > > Known bug, the associativity of the ternary operator has been > > broken since ages in the engine. It's on the "won't be > > fixed" sheet, because of BC concerns. That's a bit hard -- it's different from c, certainly (left associative instead of right), but that's a valid choice (even if it was originally accidental!) a

3/13/2003 1:58:04 PM 0 M.F...@lmu.ac.uk ("Ford, Mike [LSS]")
compiling PHP_4_3

Hi, I compiled CLI version of PHP_4_3 this morning and it gave the following: php4/main/main.c:225: undefined reference to `zend_disable_class' php4/main/main.c:239: undefined reference to `zend_disable_class' Is this right ? won't PHP_4_3 compile with Zend version 1 anymore ? Corne' !Exclude Disclaimer!

3/13/2003 7:29:26 AM 0 cor...@reach.co.za ("Corne' Cornelius")
Re: [PHP-DEV] Moderate PHP-DEV

I think, on web page is bad text. User's don't know if is it for PHP=20 developers or "about" _PHP_ developers.. Jan > On Wed, 12 Mar 2003, Jani Taskinen wrote: >=20 > > > > Of about 20 emails today, 6 were posted to wrong mailing > > list. And one of those generated a 5 email thread about not > > posting to wrong mailing list. (counting this one :) > > > > So I suggest we finally make this list MODERATED. >=20 > -1. >=20 > The list could be renamed so that it is less confusi

3/13/2003 7:11:50 AM 0 jan...@pobox.sk (=?iso-8859-2?Q?J=E1n_=A9u=F2avec?=)
Bug #22651 [Bgs]: mysql_errno/error failing to return a expected error after a failed connect

Hi all. This bug was marked as Bogus, but is a real concern for us at ABR, as we may use many different databases on different servers in the course of generating a page using php. The long and the short of it is, we can't get an error message if connecting to a database fails, after we have already connected to a different database. Obviously we can't pass the linkID to the second db to mysql_error, becuase on a connection failure, linkID is FALSE. The desired behavior would be that the mysql_error and mysql_errno functions would have knowledge of a mysql_connect() failu

3/13/2003 2:35:43 AM 0 step...@abr.com.au (Stephen Thorne)
Scope and namespace

Seeing as how we now have only one-level deep namespaces and classes (which is another topic), does it make sense to have both 'scope' and 'ns' fields in zend_op_array structure? I would think they can be merged into one. I still want to hear from Zeev about lack of nested classes/namespaces.. maybe in Montreal. :) -Andrei http://www.gravitonic.com/

3/12/2003 9:48:02 PM 0 and...@gravitonic.com (Andrei Zmievski)
Another one

The following : <?php $a = 1; $b = $a==1? 4,5:6; printf("a[%d]b[%d]\n", $a, $b); ?> gives Parse error: parse error, unexpected ',' in /home/storage/ternary.php on line 3 Similar C program compiles without problems. Is this also known? Andrey P.S. I obey I won't search for more such stuff today :)

3/12/2003 5:34:40 PM 0 and...@webgate.bg ("Andrey Hristov")
Possible problem in the parser

Few minutes ago I found the following behaviour somehow wierd for me : <?php $a = 1; $b = $a==1? 4:$a==2? 5:6; printf("a[%d]b[%d]\n", $a, $b); ?> Prints : a[1]b[5] Similar C program : main() { int a,b; a = 1; b = a==1? 4:a==2? 5:6; printf("a[%d]b[%d]\n", a, b); } Prints : a[1]b[4] -=-=-=-=-=- I think that the behavior of the C program is the right Andrey

3/12/2003 5:18:38 PM 0 and...@webgate.bg ("Andrey Hristov")
Moderate PHP-DEV

Of about 20 emails today, 6 were posted to wrong mailing list. And one of those generated a 5 email thread about not posting to wrong mailing list. (counting this one :) So I suggest we finally make this list MODERATED. --Jani

3/12/2003 4:59:43 PM 0 sni...@iki.fi (Jani Taskinen)
function to read fixed length text

Hi Devs, as this is the first time I post to this list, I hope I do the right = thing. I programmed a nice little function, that is not very nitty but might=20 be useful for other users as well. See the script below. Cheers! --=20 {Bis bald Frederic;} ____________ <? // function to read a 'fixed lenght' text file in an array =20 // delivers an array containg the values // // $string =3D string to read // $lengths =3D array containing the lenghts of the input fields =20 // $number =3D number of fields/columns // // Usage read_fl(string string, array lengths, int

3/12/2003 4:42:51 PM 0 Frederic.H...@postadress.de
[PHP-DEV] Need some ZE2 functions exported.

im trying to do some namespace related experimentation but im getting the following link errors : i18n_util.obj : error LNK2001: unresolved external symbol _zend_init_namespace i18n_util.obj : error LNK2001: unresolved external symbol _zend_initialize_class_data i18n_util.obj : error LNK2001: unresolved external symbol _zend_do_inheritance i18n_util.obj : error LNK2001: unresolved external symbol _zend_register_functions any chance of exporting the offenders here ? here's precisely the code im using (modified from marcus): /* {{{ register_interface */ /* You will have to allo

3/12/2003 2:54:32 PM 0 cshmo...@bellsouth.net ("l0t3k")
PHP -> PDF ...hmm is this the correct way??

Hi, BACKGROUND ============ I am looking to create a series of Certificates and Brouchures etc and then using the products Print/Acrobat Distiller option save the documents as PDF(with some pre-built in <<Name1>>, <<address1>>, <<address2>> variables that can be automatically resolved "on-the fly" using a PHP script using a PDF_REPACE(see below code) option or something similar. This then allows me to Create Nice looking Brouchures/Certificates etc with "variable <<abc>> markers" before converting to PDF so my online user can have "personalised stationary" without the need f

3/12/2003 1:00:46 PM 0 Janeburn...@btopenworld.com ("Bev")

Pages:









Newest Articles

#50656 [NEW]: Assign constant to var causes syntax error
1/4/2010 3:07:07 PM

#50655 [NEW]: fgets(): French translation error
1/4/2010 2:40:48 PM

note 95459 added to domnode.haschildnodes
1/4/2010 1:53:44 PM

note 95458 added to function.readdir
1/4/2010 1:36:41 PM

Hola
1/4/2010 1:29:49 PM