[PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/mysql php_mysql.c

2003-01-06 Thread Sebastian Bergmann
Georg Richter wrote: georg Sun Jan 5 15:53:06 2003 EDT Modified files: /php4/ext/mysql php_mysql.c Log: fixed bug #21435 php_mysql.c(1004): warning C4047: 'function': Anzahl der Dereferenzierungen bei 'struct _zval_struct ** ' und 'struct _zval_struct *'

[PHP-DEV] add_property_*, set_constructor and more ...

2003-01-06 Thread Stefano Corsi
Hello. I have managed porting my Zend1 objects to the new object structure and I have some ideas or doubts I want to share: Properties --- The add_property_* function pool updates zval-value-obj-properties (Z_OBJPROP_P), while now the correct HastTable to update is in

Re: [PHP-DEV] Using PHP for search and replace

2003-01-06 Thread Paul Gregg
In mail.php.internals, Jean-Michel Dault [EMAIL PROTECTED] wrote: Hello all, Currently, both Mandrake and RedHat use the following trick: perl -pi -e s|^;extension=mysql.so|extension=mysql.so| /etc/php.ini This sucks, because you then need perl to install a PHP extension. We sure could

Re: [PHP-DEV] CGI and CLI [packaging issues]

2003-01-06 Thread Marcus Börger
At 06:55 06.01.2003, Jean-Michel Dault wrote: Le sam 04/01/2003 à 18:13, Marcus Börger a écrit : What might happen is that CLI becomes widely accepted and scripts calling php from shebang lines. Id so your above solution is a bad idea and i hope CLI will be... I'm CC'ing the maintainers of

Re: [PHP-DEV] PHP building on Linux: A question on configurescript!

2003-01-06 Thread Ananth Kesari
Hi, Please refer to the mail given below that I sent you earlier. You had told us that --with-apxs is the way to go. But we still have the same issue. Let me explain: We currently use apxs to build a PHP DSO for Apache 1.3. We haven't gotten around to trying it for Apache 2.0 yet. The problem

Re: [PHP-DEV] CLI behavior with -q switch

2003-01-06 Thread Roberto Biancardi
Jean-Michel Dault ha scritto: The problem is that the -q switch is still in the CLI for backward compatibility, but it breaks scripts because it does not change directories. I would strongly suggest that the -q switch would imply changing the working directory to that of the script, unless

Re: [PHP-DEV] Using PHP for search and replace

2003-01-06 Thread Jean-Michel Dault
Le lun 06/01/2003 à 06:35, Paul Gregg a écrit : perl -pi -e s|^;extension=mysql.so|extension=mysql.so| /etc/php.ini Is there a quick and easy way to do this kind of thing in PHP? Or would I was about to say Ask the RPM makers until I saw who was asking :-) Everyone's doing that.. RedHat,

[PHP-DEV] OSX Project Builder and PHP Developement

2003-01-06 Thread Christian Stocker
Hi Is anyone using Apple's Project Builder for developing PHP? Or did someone try and gave up, because it's not usable? It looks like a nice IDE, but targeted at Java and Obj-C.. If anonye uses it, could you publish the .pbproj file, so I don't have to fiddle around with all those settings ;)

Re: [PHP-DEV] CLI behavior with -q switch

2003-01-06 Thread Roberto Biancardi
Roberto Biancardi ha scritto: another compatibility issue beetween cgi and cli is the fact that the cli version does not send error messages to stderr as the cgi version did. is this the intended behaviour ? not true. i had some mess with .ini files. sorry. -- -- Roberto Biancardi --

RE: [PHP-DEV] Generic expressions interpolation in strings

2003-01-06 Thread John Coggeshall
In order for such a feature to exist the your statement would have to be (ignoring the ++ operator for now): $foo = The count is: {$count = $count + 1}; Which means that you'd actually have to evaluate everything inside of { } as PHP code.. Although the language should be able to accomidate

Re: [PHP-DEV] What headers/libs does Win32 Snaps build use?

2003-01-06 Thread Michael Sisolak
As I was looking into my build of Win32 failing becuase it tried to link to a non-existant zlib.lib (the win32build.zip version is called zlibstat.lib), it occured to me that everything does build fine on the snapshot machine. Check out the zlib CVS module and place it in the same

Re: [PHP-DEV] Generic expressions interpolation in strings

2003-01-06 Thread Federico Giannici
I really cannot understand where is the danger of executing a system call! What is the difference between these two cases: 1) Evaluate an expression, assign it to a temporary variable and then print it into an heredoc string. 2) Evaluate the expression directly INSIDE the heredoc string.

Re: [PHP-DEV] Generic expressions interpolation in strings

2003-01-06 Thread Leon Atkinson
print END table trtdName:/tdtd{$= text2html($data['name']) }/td/tr trtdAddress:/tdtdinput type=text value={$= htmlspecialchars($data['address']) }/td/tr /table END; Federico, you can always do this: ? table trtdName:/tdtd?= text2html($data['name']) ?/td/tr trtdAddress:/tdtdinput type=text

Re: [PHP-DEV] Generic expressions interpolation in strings

2003-01-06 Thread Andrey Hristov
- Original Message - From: Leon Atkinson [EMAIL PROTECTED] To: Federico Giannici [EMAIL PROTECTED]; John Coggeshall [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, January 06, 2003 7:09 PM Subject: Re: [PHP-DEV] Generic expressions interpolation in strings print END table

RE: [PHP-DEV] Re: [PHP-WIN] PHP 4.3.0 no gif support?

2003-01-06 Thread Brian Weil
Thanks a million, Can you tell me which gif functions are available in this build? Thanks Again, Brian -Original Message- From: Edin Kadribasic [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 05, 2003 5:59 PM To: Brian Weil; Rasmus Lerdorf Cc: PHP developer list Subject: Re: [PHP-DEV]

RE: [PHP-DEV] Re: [PHP-WIN] PHP 4.3.0 no gif support?

2003-01-06 Thread Rasmus Lerdorf
It's gif read-only, so you only have imagecreatefromgif() On Mon, 6 Jan 2003, Brian Weil wrote: Thanks a million, Can you tell me which gif functions are available in this build? Thanks Again, Brian -Original Message- From: Edin Kadribasic [mailto:[EMAIL PROTECTED]] Sent:

Re: [PHP-DEV] PHP building on Linux: A question on configure script!

2003-01-06 Thread Jean-Michel Dault
Le lun 06/01/2003 à 07:24, Ananth Kesari a écrit : What we are looking for is to find out whether or not the current autotool input files of PHP support the ability to produce a spearate phplib.l and the appropriate main module - one for Apache 1.3, one for Apache 2.0, one for command line

Re: [PHP-DEV] PHP building on Linux: A question on configure script!

2003-01-06 Thread Jean-Michel Dault
Oops.. I forgot the files... Here they are! Le lun 06/01/2003 à 12:49, Jean-Michel Dault a écrit : Le lun 06/01/2003 à 07:24, Ananth Kesari a écrit : What we are looking for is to find out whether or not the current autotool input files of PHP support the ability to produce a spearate

[PHP-DEV] ZE2 dev snaps

2003-01-06 Thread Mark J. Hershenson
Hi all, I know there are Win32+ZE2 Package snapshots on snaps.php.net, but I don't believe I've read why there isn't a ZE2 source code snapshot for everyone else. Checking out the source with CVS may not be the world's most difficult practice, but automating that process likely isn't either. ;)

Re: [PHP-DEV] ZE2 dev snaps

2003-01-06 Thread Stephan Seidt
At least ./buildconf with --ZendEngine2 did never work for me. ;) I also did cvs co ZendEngine2 in php4 cvstree root. Mark J. Hershenson wrote: Hi all, I know there are Win32+ZE2 Package snapshots on snaps.php.net, but I don't believe I've read why there isn't a ZE2 source code snapshot for

[PHP-DEV] php 4.3.0 ext/oci8 -- OCI_SHARED patch

2003-01-06 Thread Levi Dixon
For review: I've modified the following files to allow for use of OCI_SHARED in ext/oci8 module if OCI8_VERSION = 8.1, which will provide memory savings by sharing connection and statement data (refer to http://www.csee.umbc.edu/help/oracle8/server.815/a67846/basics.htm; search for Shared Data

Re: [PHP-DEV] CGI and CLI [packaging issues]

2003-01-06 Thread Philip Olson
This goes with the PHP source approach: By default, configure/make/make install compiles the CGI interface, and then you have to make install-cli to get the CLI. We just replace the make install-cli by urpmi/apt-get php-cli. Just FYI, 'make install-cli' is not the only way to install the

[PHP-DEV] CVS Account Request: nmee

2003-01-06 Thread Nils Magnus Englund
I'd like to contribute to the PHP project by translating the manual (at least parts of it) to Norwegian. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] RE: [PATCH]apache_register_shutdown_function final version

2003-01-06 Thread Joseph Tate
Well, according to my highly technical methods of deduction (fprintf(stderr, Inside sapi_shutdown);) sapi_shutdown is never called when serving a PHP request when served using mod4_php under Apache. This is because the shutdown_wrapper never gets initialized as a cleanup function. This because

[PHP-DEV] Should I fix this?

2003-01-06 Thread Rickard Andersson
My only contribution to PHP thus far is the following bug report/feature request (#18052): getimagesize() blindly trusts the width and height specified in the header of gifs. You can just hexedit the file and set the width and height to any value and getimagesize() will believe that is the true

[PHP-DEV] Designing for PHP4 with PHP5 in mind...

2003-01-06 Thread John Wells
I'm preparing for a project in which I'll be porting and redesigning a large, ugly Visual Basic/Sql Server app to a PHP/Mysql or Postgresql based web application. I'd like to code in a way that will be at the same time easily ported to PHP5 and that will take advantage of PHP5's new object

Re: [PHP-DEV] Designing for PHP4 with PHP5 in mind...

2003-01-06 Thread Brian Moon
From what I understand, all OO code will have to be modified for PHP5. Constructors for example and no longer named the same as the class name. That alone means every class must be changed. I don't recall anyone saying it would be BC either, but I could be wrong. Brian Moon -

Re: [PHP-DEV] Designing for PHP4 with PHP5 in mind...

2003-01-06 Thread Sterling Hughes
On Monday, January 6, 2003, at 09:48 PM, Brian Moon wrote: From what I understand, all OO code will have to be modified for PHP5. Constructors for example and no longer named the same as the class name. That alone means every class must be changed. I don't recall anyone saying it

Re: [PHP-DEV] Designing for PHP4 with PHP5 in mind...

2003-01-06 Thread John Wells
So code should be backwards compatible? Very nice. Any good links you could throw my way describing proposed changes? Thanks guys. John Sterling Hughes said: On Monday, January 6, 2003, at 09:48 PM, Brian Moon wrote: From what I understand, all OO code will have to be modified for PHP5.

Re: [PHP-DEV] Designing for PHP4 with PHP5 in mind...

2003-01-06 Thread Leon Atkinson
Any good links you could throw my way describing proposed changes? There are archives of the Zend Engine 2 list at zend.com: http://www.zend.com/lists.php There is one big change with objects that will break BC. Objects pass by reference instead of value, both for function calls and

Re: [PHP-DEV] Designing for PHP4 with PHP5 in mind...

2003-01-06 Thread Brian Moon
| I don't recall anyone saying | it would be BC either, but I could be wrong. | | You're wrong. | | Of course, I could be too. | | but you're not. so its ok... | So current PHP4 classes will still work in ZE2? Brian. -- PHP Development Mailing List http://www.php.net/ To

Re: [PHP-DEV] PHP building on Linux: A question on configurescript!

2003-01-06 Thread Ananth Kesari
Hi Jean, Thanks for your elaborate reply with the work around. I also got the files you sent. We will try this and get back to you if we have any issues. Thanks, Ananth. Jean-Michel Dault [EMAIL PROTECTED] 01/06/03 10:19PM Le lun 06/01/2003 à 07:24, Ananth Kesari a écrit : What we are