Re: [PHP-DEV] shared extension linking
On Mon, 19 Aug 2002, Ron Lange wrote: Hello, I need to link some external libs statically into a shared php extension. If I compile this extension statically with php, all external libs also linked statically in, the extension can be used. I can't figure out how I have to modify the many configuration files to get the additional libs statically linked in if the extension is build seperately. I just insert '-L/pathtolibs -llibnames...' into the INCLUDES-var of config_vars.mk. Bad way, I know... But if I want the extension to be compiled as shared object the additional libs are not linked statically in. By the way, if I use phpize to prepare the extension, the proper php prefix isn't right set. I manually have to replace it in config_vars.mk. Unfortunately the self-contained-extension-readme doesn't cover this issue. Please help... Use PHP_ADD_LIBRARY_WITH_PATH or PHP_ADD_LIBRARY in your config.m4 -\- David Eriksson -/- I personally refuse to use inferior tools because of ideology. - Linus Torvalds -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] shared extension linking
On Mon, 19 Aug 2002, Ron Lange wrote: Hi David, David Eriksson wrote: Use PHP_ADD_LIBRARY_WITH_PATH or PHP_ADD_LIBRARY in your config.m4 Already done... My config.m4: Note: IndiComm, ndr and mmem have to be statically linked into this module! -- INDI_PROJECT_PATH=/home/ron/INDI PHP_ARG_ENABLE(indi, whether to enable indi support, [ --enable-indi Enable indi support]) if test $PHP_INDI != no; then Add this here: PHP_SUBST(INDI_SHARED_LIBADD) AC_ADD_INCLUDE($INDI_PROJECT_PATH/include) AC_ADD_INCLUDE($INDI_PROJECT_PATH/GUI/include) AC_ADD_INCLUDE($INDI_PROJECT_PATH/NDR/include) AC_ADD_INCLUDE($INDI_PROJECT_PATH/include/dacs) PHP_ADD_LIBRARY_WITH_PATH(IndiComm,$INDI_PROJECT_PATH/lib) PHP_ADD_LIBRARY_WITH_PATH(ndr,$INDI_PROJECT_PATH/lib) PHP_ADD_LIBRARY_WITH_PATH(mmem,$INDI_PROJECT_PATH/lib) Change the above like this: PHP_ADD_LIBRARY_WITH_PATH(IndiComm,$INDI_PROJECT_PATH/lib, INDI_SHARED_LIBADD) PHP_EXTENSION(indi, $ext_shared) fi -- My Makefile.in: -- # $Id$ LTLIBRARY_SOURCES = indi.c LTLIBRARY_SHARED_NAME = indi.la Add this: LTLIBRARY_SHARED_LIBADD = $(INDI_SHARED_LIBADD) Hope this helps! -\- David Eriksson -/- I personally refuse to use inferior tools because of ideology. - Linus Torvalds -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] APACHE_VERSION
Hi. With php-4.3.0-dev from CVS I allways get: checking for Apache 2.0 module support via DSO through APXS... ./configure: line 3107: syntax error near unexpected token `$APXS_HTTPD' ./configure: line 3107: ` PHP_AP_EXTRACT_VERSION($APXS_HTTPD)' The attached patch reverts back to a state where this worked as in the older php versions. Thanks. -- Regards // Oden Eriksson Deserve-IT Networks - http://d-srv.com --- configure 2002-07-24 10:44:20.0 +0200 +++ configure.oden 2002-07-24 10:47:31.0 +0200 -3104,7 +3104,7 done # Test that we're trying to configure with apache 2.x - PHP_AP_EXTRACT_VERSION($APXS_HTTPD) + APACHE_VERSION=`$APXS_HTTPD -v | head -1 | awk 'BEGIN { RS= ; } /Apache/ { print $1; }' | cut -f2 -d'/' | cut -f1 -d'-' | awk 'BEGIN { FS =.; } { printf %d, ($1 * 1000 + $2) * 1000 + $3;}'` if test $APACHE_VERSION -le 200; then { echo configure: error: You have enabled Apache 2 support while your server is Apache 1.3. Please use the appropiate switch --with-apxs (without the 2) 12; exit 1; } elif test $APACHE_VERSION -lt 240; then -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] ext/imap
Hi. With php-4.3.0-dev from CVS configure allways fails at: checking whether SSL libraries are needed for c-client... /usr/lib checking whether IMAP works... configure: error: build test failed. Please check the config.log for details. Reverting back to the old ext/imap/config.m4 fixes this as in the attached patch. Chears. -- Regards // Oden Eriksson Deserve-IT Networks - http://d-srv.com --- ext/imap/config.m4.old 2002-07-24 10:56:04.0 +0200 +++ ext/imap/config.m4 2002-07-13 02:46:59.0 +0200 -1,5 +1,5 dnl -dnl $Id: config.m4,v 1.44 2002/06/01 20:14:57 sr Exp $ +dnl $Id: config.m4,v 1.46 2002/07/12 22:11:54 sniper Exp $ dnl AC_DEFUN(IMAP_INC_CHK,[if test -r $i$1/c-client.h; then -21,6 +21,40 done ]) +dnl PHP_IMAP_TEST_BUILD(action-if-ok, action-if-not-ok [, extra-libs]) +AC_DEFUN(PHP_IMAP_TEST_BUILD, [ + old_LIBS=$LIBS + LIBS=$3 $LIBS + AC_TRY_RUN([ +void mm_log(void){} +void mm_dlog(void){} +void mm_flags(void){} +void mm_fatal(void){} +void mm_critical(void){} +void mm_nocritical(void){} +void mm_notify(void){} +void mm_login(void){} +void mm_diskerror(void){} +void mm_status(void){} +void mm_lsub(void){} +void mm_list(void){} +void mm_exists(void){} +void mm_searched(void){} +void mm_expunged(void){} +char mail_open(); +int main() { + mail_open(0,,0); + return 0; +} + ], [ +LIBS=$old_LIBS +$1 + ],[ +LIBS=$old_LIBS +$2 + ]) +]) + AC_DEFUN(PHP_IMAP_KRB_CHK, [ AC_ARG_WITH(kerberos, [ --with-kerberos[=DIR] IMAP: Include Kerberos support. DIR is the Kerberos install dir.],[ -34,6 +68,12 fi if test $PHP_KERBEROS != no; then +if test ! -f $PHP_KERBEROS/lib/libkrb5.a test ! -f $PHP_KERBEROS/lib/libkrb5.$SHLIB_SUFFIX_NAME; then + AC_MSG_ERROR([Kerberos libraries not found in $PHP_KERBEROS/lib. + + Check the path given to --with-kerberos (if no path is given, defaults to /usr/kerberos ) + ]) +fi AC_DEFINE(HAVE_IMAP_KRB,1,[ ]) PHP_ADD_LIBPATH($PHP_KERBEROS/lib, IMAP_SHARED_LIBADD) PHP_ADD_LIBRARY(gssapi_krb5, 1, IMAP_SHARED_LIBADD) -42,9 +82,10 PHP_ADD_LIBRARY(com_err, 1, IMAP_SHARED_LIBADD) else AC_EGREP_HEADER(auth_gss, $IMAP_INC_DIR/linkage.h, [ - AC_MSG_ERROR(This c-client library is build with Kerberos support. + AC_MSG_ERROR([This c-client library is build with Kerberos support. - Add --with-kerberos=DIR to your configure line. Check config.log for details.) + Add --with-kerberos=DIR to your configure line. Check config.log for details. + ]) ]) fi -62,45 +103,29 PHP_IMAP_SSL=/usr fi + AC_MSG_CHECKING([whether SSL libraries are needed for c-client]) + if test $PHP_IMAP_SSL != no; then +AC_MSG_RESULT([$PHP_IMAP_SSL/lib]) AC_DEFINE(HAVE_IMAP_SSL,1,[ ]) PHP_ADD_LIBPATH($PHP_IMAP_SSL/lib, IMAP_SHARED_LIBADD) PHP_ADD_LIBRARY_DEFER(ssl,, IMAP_SHARED_LIBADD) PHP_ADD_LIBRARY_DEFER(crypto,, IMAP_SHARED_LIBADD) else -old_LIBS=$LIBS -LIBS=$LIBS -L$IMAP_LIBDIR -l$IMAP_LIB +TST_LIBS=-L$IMAP_LIBDIR -l$IMAP_LIB if test $PHP_KERBEROS != no; then - LIBS=$LIBS -L$PHP_KERBEROS/lib -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err + TST_LIBS=$TST_LIBS -L$PHP_KERBEROS/lib -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err fi -AC_TRY_RUN([ - void mm_log(void){} - void mm_dlog(void){} - void mm_flags(void){} - void mm_fatal(void){} - void mm_critical(void){} - void mm_nocritical(void){} - void mm_notify(void){} - void mm_login(void){} - void mm_diskerror(void){} - void mm_status(void){} - void mm_lsub(void){} - void mm_list(void){} - void mm_exists(void){} - void mm_searched(void){} - void mm_expunged(void){} - char mail_open(); - int main() { -mail_open(0,,0); -return 0; - } -],,[ - AC_MSG_ERROR(This c-client library is build with SSL support. - - Add --with-imap-ssl=DIR to your configure line. Check config.log for details.) -]) -LIBS=$old_LIBS +PHP_IMAP_TEST_BUILD([ + AC_MSG_RESULT(no) +], [ + AC_MSG_RESULT(yes) + AC_MSG_ERROR([This c-client library is build with SSL support. + + Add --with-imap-ssl=DIR to your configure line. Check config.log for details. + ]) +], $TST_LIBS) fi ]) -166,4 +191,12 PHP_ADD_LIBRARY_DEFER($IMAP_LIB,, IMAP_SHARED_LIBADD) PHP_IMAP_KRB_CHK PHP_IMAP_SSL_CHK + +dnl Test the build in the end +AC_MSG_CHECKING(whether IMAP works) +PHP_IMAP_TEST_BUILD([ + AC_MSG_RESULT(yes) +], [ + AC_MSG_ERROR([build test failed. Please check the config.log for details.]) +], $DLIBS) fi -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DEV] Re: [PHP] Re: PHP Security Advisory: Vulnerability inPHP versions 4.2.0 and 4.2.1
On Mon, 22 Jul 2002, James Cox wrote: On Mon, 22 Jul 2002, Rouvas Stathis wrote: Hi all, Just wanting to notify everyone that the link for the PHP.4.2.2 download is broken. From which mirror, and how does your link look like? it's fixed. Is it? Only text on http://www.php.net/downloads.php when I view it: Parse error: parse error, unexpected T_SL in /local/Web/sites/phpweb/downloads.php on line 81 -\- David Eriksson -/- I personally refuse to use inferior tools because of ideology. - Linus Torvalds -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] running php script from cron with permissions
On Sun, 21 Jul 2002, Hamlet wrote: Hi there, I've got a problem that's just a tidbit annoying. I've got a neat little php script to keep my home network running. At one point in this script it's required to reboot the machine the script is running on, and this I'm trying to do with exec(reboot). Now, I run the cron job as root, and if I try php ? exec(reboot); ? from console it works fine. But not when cron tries to. I've got my suspicions as to cron doing something kinky with the permissions, and therefore permissions are not enought for php to execute the reboot command. I've been at this all day, suggestions are more than welcome. It's not certain that the reboot command is in your PATH environment variable when cron is running. Try adding a line similar to the one below in the beginning of your cron script, or specify the full path when you use exec() in PHP. PATH=/bin:/usr/bin:/usr/sbin Regards, -\- David Eriksson -/- I personally refuse to use inferior tools because of ideology. - Linus Torvalds -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Module startup/shutdown in PHP extensions
On Thu, 18 Jul 2002, Pete Dishman wrote: [snip] Now the problem is when I start apache (net start apache) php seems to call the module startup function and then it calls the module shutdown function immediately afterwards. The request startup and shutdown functions seem to work as expected, i.e. they get called when I make a request to apache. If I then stop apache (net stop apache) the module shutdown function gets called as expected. It's just when starting that the problem occurs. Is this the expected behaviour and if so is there anyway of telling in the module shutdown function if the module really is shutting down or have I done something completely wrong? I have seen this behaviour too, I guess PHP just works this way, it calls the module startup and shutdown function pair once on initilization. I have never bothered to figure out why :-) -\- David Eriksson -/- I personally refuse to use inferior tools because of ideology. - Linus Torvalds -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] how to debug a php extension...
On Tue, 16 Jul 2002, Ron Lange wrote: hi, in which way I could debug my extension (builtin, apachemodule)? unfortunately I get segmentation faults of the forked apache proc, and I can only guess where it is. It's in a particular place, where I set up a socket and two fds. I don't use php_streams. Any hints? http://bugs.php.net/bugs-generating-backtrace.php -\- David Eriksson -/- I personally refuse to use inferior tools because of ideology. - Linus Torvalds -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Re: Disable STDOUT
On Mon, 8 Jul 2002, Patrick O'Lone wrote: Maybe I should write a function disable all open file descriptors instead, since traditionally that's how it is done. However, I thought PHP closes STDIN after it's initial read - but I might be wrong. I'd say that stdin, stdout and stderr are not simply closed but redirected to /dev/null when writing a daemon. See the daemon() function in 4.4BSD. Regards, -\- David Eriksson -/- I personally refuse to use inferior tools because of ideology. - Linus Torvalds -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] linking librarys into php4 extensions
On Wed, 3 Jul 2002, Ron Lange wrote: Hi, I have set additional headers and AC_ADD_LIBRARY_WITH_PATH in the config.m4 of my extension to link with external libs. The php 'make --with-extension --with-apache=[pathtoapache]' builds w/o errors, but at the following apache 'configure --activate-module=src/modules/php4/libphp4.a' I get follwing message: Error Output for sanity check cd ..; gcc -DLINUX=22 -I/usr/src/php-4.2.1 -I/usr/src/php-4.2.1/main -I/usr/src/php-4.2.1/main -I/usr/src/php-4.2.1/Zend -I/usr/src/php-4.2.1/Zend -I/usr/src/php-4.2.1/TSRM -I/usr/src/php-4.2.1/TSRM -I/usr/src/php-4.2.1 -DNO_DL_NEEDED `./apaci` -o helpers/dummy helpers/dummy.c -Wl,-rpath,/usr/src/INDI/lib -rdynamic -L/usr/src/INDI/lib -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4 -llibmmem -llibndr -llibIndiComm -lcrypt -lresolv -lm -ldl -lnsl -lresolv -lcrypt -lm -lcrypt -lexpat /usr/i486-suse-linux/bin/ld: cannot find -llibmmem collect2: ld returned 1 exit status make: *** [dummy] Error 1 = End of Error Report = Aborting! I wonder since the libs libmmem, libIndiComm and libndr(*.a and *.so) laying in the dirs which are set by -L. Any idea? Omit lib. For a library called libmmem.so, you should use -lmmem as a linker parameter. -\- David Eriksson -/- I personally refuse to use inferior tools because of ideology. - Linus Torvalds -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Instantiating Objects ?
On Thu, 13 Jun 2002, brad lafountain wrote: There is no transpartent way of creating a c++ object from php. What you can do is create a php extension that will proxy the calls to your c++ object. Once you do that you can pass anything into your c++ class (querystring). take a look at ext/* in the souce distribution. - brad You may also want to look at the Universe CORBA extension: http://universe.2good.nu --- Kevin Caporaso [EMAIL PROTECTED] wrote: Is it possible to instantiate an object from one of my c++ shared libraries (goo.so) and then call methods on that object? How efficient is PHP's way of doing it? (if possible) Also, can I pass things like the querystring and form data into that instantiated object? Thanks for any response! $Kevin -\- David Eriksson -/- I personally refuse to use inferior tools because of ideology. - Linus Torvalds -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Latest snapshot of Universe
(Universe is a PHP extension that allows PHP to act as a CORBA client or server.) Hello everyone! I am pleased to announce that a new snapshot of Universe (dated 2002-05-27) is available. This is a bug fix release needed to successfully set CORBA object attributes from PHP. Information and download on the Universe demo server: http://universe.2good.nu Regards, -\- David Eriksson -/- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Please forward to the list, I'm not a member anymore...(fwd)
On Tue, 16 Apr 2002, Uwe Steinmann wrote: On Tue, Apr 16, 2002 at 02:07:01PM +0200, Derick Rethans wrote: -- Forwarded message -- The homepage of Panda PDF is: http://www.stillhq.com/cgi-bin/getpage?area=pandapage=index.htm It offers a spec, the features are reasonable, the license is: ? It is GPL Then we can't use it with PHP... -\- David Eriksson -/- I personally refuse to use inferior tools because of ideology. - Linus Torvalds -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] C++ Class Wrapping
On Sat, 13 Apr 2002, medvitz wrote: Is there a way to wrap existing c++ classes into a PHP class (via an extension) ? You may want to look at the Universe PHP extension. It is 90% C++ code. http://universe.2good.nu It contains a special part called Zpp to create a PHP class with a C++ class. Regards, -\- David Eriksson -/- I personally refuse to use inferior tools because of ideology. - Linus Torvalds -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] CVS Account Request: em2
On 11 Apr 2002, Edwin Estuardo Morales Medina wrote: learn and build code You do not need a CVS account to do that. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -\- David Eriksson -/- I personally refuse to use inferior tools because of ideology. - Linus Torvalds -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] RFC: README.SUBMMITING_PATCH
On Mon, 18 Mar 2002, Yasuo Ohgaki wrote: Hi all, We get questions like where to send path? on occasion. We should have doc for that. Here is a draft. Please fix/add/comment. Thank you. Maybe add something about unified format for the diff? Personally I would recommend this line in the ~/.cvsrc file: diff -u -b -w -B -b Ignore changes in amount of white space. -B Ignore changes that just insert or delete blank lines. -u Use the unified output format. -w Ignore white space when comparing lines. -\- David Eriksson -/- I personally refuse to use inferior tools because of ideology. - Linus Torvalds -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] PHP audit project
On Mon, 11 Mar 2002, Jedi/Sector One wrote: The goal is to help the PHP developpement, not to keep the patches separate, only for OpenBSD. There are some OpenBSD enhancements, but they are all surrounded with #ifdef __OpenBSD__ . We don't want to break portability, nor to release something only for OpenBSD. The patches are there to be shared by everyone. FYI, I'm working on them on my Linux laptop. Are the strlcpy and strlcat functions (used in the patches) available on Linux? -\- David Eriksson -/- I personally refuse to use inferior tools because of ideology. - Linus Torvalds -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] New Build System Committed to HEAD
On Thu, 7 Mar 2002, Sascha Schumann wrote: Hi, you won't see the commit, because it is too large to go through the mailing list. Perhaps it bounced to Jim, so that he can make it available by alternative means. Something in this commit might uncover an autoconf-2.52 portability bug on FreeBSD. I don't know whether this was already earlier the case. Until the autoconf team addresses this issue, I suggest to use autoconf-2.13 on that platform. (Readers of new-httpd might be already familiar with the issue.) Because I cannot test/build every extension under the earth, problems with untested extensions might crop up. If it does, please notify me and I'll check it out. When I try to build pear/PECL/satellite, I get an error like this: [david@natty:/usr/local/satellite-dev/src/pear/PECL/satellite] $ phpize [david@natty:/usr/local/satellite-dev/src/pear/PECL/satellite] $ ./configure ... ./configure: /usr/local/satellite-dev/src/pear/PECL/satellite/ext/satellite/Makefile.in: No such file or directory ... Makefile.in is located in /usr/local/satellite-dev/src/pear/PECL/satellite and not where configure is looking... This error does not appear with PHP 4.1.2. -\- David Eriksson -/- I personally refuse to use inferior tools because of ideology. - Linus Torvalds -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] One Makefile to rule them all
Hello Sascha and everyone! No doubt the new build system is faster than the old one. But I miss having one Makefile for each directory. Was that the slow part of the build process? Regards, -\- David Eriksson -/- I personally refuse to use inferior tools because of ideology. - Linus Torvalds -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Have you seen the PHP audit project?
Hello everyone, I just read about the PHP audit project on NewsForge. More info here: http://phpaudit.42-networks.com/ Their patch looked great to me, although I didn't browse through all of it... :-) -\- David Eriksson -/- I personally refuse to use inferior tools because of ideology. - Linus Torvalds -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] New features in Universe
(Universe is a PHP extension that allows PHP to act as a CORBA client or server.) Hello everyone! I am pleased to announce that a new snapshot of Universe (dated 2002-03-06) is available. New features: - allow conversion between CORBA's sequenceoctet and PHP's strings - should throw user exceptions now Information and download on the Universe demo server: http://universe.2good.nu Regards, -\- David Eriksson -/- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Move Satellite to PECL!
Hello! Satellite only wastes bandwith being included in the php4 distribution. As the author of the PHP extension Satellite, I would like to request that someone with ssh access to the CVS server copy /php4/ext/satellite to /pear/PECL/satellite (for keeping the logs). I will then remove everything from /php4/ext/satellite and add a README file with instructions for obtaining it from PECL. Thank you, -\- David Eriksson -/- -- 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] NEW PHP standalone compiler (was Re: [PHP-DEV] Herewe try again)
On 31 Jan 2002, Stig S. Bakken wrote: It should be not be that hard. There are Java bytecode to C converters, it should not be hard to make Zend bytecode to C conversion. Wishful thinking? :-) Unless I'm mistaken, Java doesn't have eval. Any language with eval needs a runtime environment when executing, even if the rest of the code is converted to C. I can't see any problems living without eval(). But I'm a C++ kind of guy most of the time... :-) \David -- 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] no debugging symbols found
On Wed, 30 Jan 2002, J S wrote: Hi, I want to debug a problem I'm getting in Apache with libphp4.so, but when I run gdb httpd, I get a bunch of messages saying: no debugging symbols found Does anyone here know what I need to do to fix this? Yes :-) Do something like this when you build Apache: export EXTRA_CFLAGS=-g ./configure --prefix=$PREFIX --enable-module=so make all install \David -- 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-fix release of Universe
(Universe is a PHP extension that allows PHP to act as a CORBA client or server.) Hello everyone! I'd like to announce that a new snapshot of Universe is available. More info on this page: http://universe.2good.nu Regards, -\- David Eriksson -/- -- 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] Universe in 2002
(Universe is a PHP extension that allows PHP to act as a CORBA client or server.) Hi! I just want to say that the latest snapshots of Universe works great and that I am currently cleaning up the code before submitting it to the PHP CVS repository. During this spring I will work on my Master Thesis (which does not involve PHP or CORBA) but I'll try to take care of Universe too. Universe is getting ready for a production environment. Unfortunately, there are still memory leaks. If you are using Satellite (I don't think anyone is, but anyway) you should _really_ consider switching to Universe now. More info on this page: http://universe.2good.nu Regards, -\- David Eriksson -/- -- 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] Moving extensions to PECL
At 13:58 2001-12-31 -0500, Joao Prado Maia wrote: I would think the following extensions should also go to PECL: . . . satellite Sure, Satellite could probably be moved there... -\- David Eriksson -/- -- 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] how to ?
Quoting Marcin Liwinski [EMAIL PROTECTED]: hi, where is an errror ? root@bsd /usr/php4 ./buildconf buildconf: checking installation... buildconf: autoconf version 2.13 (ok) buildconf: automake version 1.4 (ok) buildconf: libtool version 1.4 (ok) *** Error code 1 Stop in /usr/php4. *** Error code 1 Stop in /usr/php4. Do you have the Zend and TSRM sub-directories in /usr/php4? -\- David Eriksson -/- An expert in a particular computer language is really an expert in the work-arounds necessary to use this language to perform useful work. - Richard B. Johnson -- 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] pass object variable from page to page
Please use the php-general mailing list for support about using PHP. You need to include the class and use session_start() in file2.php too. On Wed, 3 Oct 2001, Ming-Chieh Lee wrote: Hello, I have a question on how to pass object variable from page to page. Here is something that I found, but it doesn't work. I would greatly appreciate if someone can help: 1. does it matter if I include first, then so session_start()? file1.php ? include ('class.myclass.php'); session_start(); $myvar = new MyClass; $myvar-who = me; // this is where my doubt reside !!! session_register ('myvar'); // like this ? // don't need to register stuff in the class, it's already there. // session_register ('who'); ? _ file2.php // using an you won't make a copy and you // can work directly on the session var $myvar = $HTTP_SESSION_VARS['myvar']; // should print object echo br . gettype($myvar); // use the object, who is not a session var echo Session Var : .$myvar-who. BR; //echo Session Var : .$HTTP_SESSION_VARS['myvar']['who'] . BR; //echo Session Var : .$HTTP_SESSION_VARS['myvar-who'] . BR; ? -- 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] -\- David Eriksson -/- An expert in a particular computer language is really an expert in the work-arounds necessary to use this language to perform useful work. - Richard B. Johnson -- 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] [RFC] Versioning rules for PHP/Zend/PEAR/Extensions
On Wed, 26 Sep 2001, Andi Gutmans wrote: I think the key still lies in creating a repository for C extensions where each extension can have its own release cycle. +1 one for this... :-) -\- David Eriksson -/- An expert in a particular computer language is really an expert in the work-arounds necessary to use this language to perform useful work. - Richard B. Johnson -- 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] CVS Account Request
On Thursday 27 September 2001 03:33, CVS Account Request wrote: Full name: Sander Steffann Email: [EMAIL PROTECTED] ID:steffann Purpose: I am going to work with CORBA. Can I please get access to /etc/satellite? Thanks. Hello Steffann! As the maintainter of Satellite, I'd like some control over the modifications to this extension, so if you want to contribute to Satellite, you don't need a CVS accout, just send me patches and I'll merge them in... Regards, -\- David Eriksson -/- An expert in a particular computer language is really an expert in the work-arounds necessary to use this language to perform useful work. - Richard B. Johnson -- 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] RC3
On Tue, 18 Sep 2001, Zeev Suraski wrote: Does anybody still have anything pending for RC3? Do you want Universe included in RC3? http://universe.2good.nu/ Regards, David -- 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] RC3
On Tue, 18 Sep 2001, Sascha Schumann wrote: No new features please. RCs are purely intended for cutting down the number of bugs. NP. I just realized that it would be nice to have Universe included in PHP 4.0.7... but I know it's a little late now... :-/ -\- David Eriksson -/- An expert in a particular computer language is really an expert in the work-arounds necessary to use this language to perform useful work. - Richard B. Johnson -- 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] Unable to find stream pointer
On Wed, 12 Sep 2001, Andreas Gietl wrote: Hi PHP-Developers, i am sending this mail to php-dev because nobody seems to know an answer in php-general and i did not find anything in the archives. Maybe it is a bug in the imap-routine. I am having problems with php and imap now for several days on several servers. I just get the following Error: Warning: Unable to find stream pointer in file on line line This error does not occur in every execution, but only sometimes. I read a lot about this error on the internet, but i still don't know what is the reason for this error and how to work around it. Does anybody of you know where this error originates? I searched through the sources and this error messages seems to only come from the ICAP or MCAL extensions, and not from IMAP. Are you sure this error occurs on a call to an IMAP function? \David -- 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] How do I inserting the content of a TEXT file into aPHP document?
Please send support questions to [EMAIL PROTECTED] There is an include statement in PHP. -\- David Eriksson -/- An expert in a particular computer language is really an expert in the work-arounds necessary to use this language to perform useful work. - Richard B. Johnson On Wed, 12 Sep 2001, Cato Larsen wrote: Hi! I would like to insert the HTML code in a TXT document. How do I do this? On a normal website I'd make an SHTML site with the !--#include virtual=news.txt -- but since the PHP engine (as far as I know) doesn't initiate SSL on the server. If anyone could be so kind to give me the code to make this work, it'd be great! Best regards, Cato Larsen Webmaster of: http://www.oia.f2s.com -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] RE: Bug #12276 Updated: error orbit_object
On Friday 24 August 2001 10:21, HENAFF Mari-mai FTRD/DMI/LAN wrote: Hi, I can't access this site because it's on the port 1081 (http://universe.2good.nu:1081) May be it's because I'm behind a firewall. Is it possible to make it available from another port (80, for example) ??? thanks Sorry for the delayed reply. I can't run the demo server on port 80, because my primary server runs there... What about asking your sysadmin to unblock port 1081? :-) I can send you the latest snapshot by e-mail if you wish? Regards, -\- David Eriksson -/- An expert in a particular computer language is really an expert in the work-arounds necessary to use this language to perform useful work. - Richard B. Johnson -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] EXT_SKEL for Win32
On Wed, 22 Aug 2001, Chris Gardner wrote: i was noticing a slight problem with the whole EXT_SKEL shell script. it works great for getting a new package up and running, but only if your' doing all your using basically the gcc compiler. well, i've been trying to create an extension library for php, and i am mainly using visual c++ 6 sp 3 on win2k. i can run the EXT_SKEL in my cygwin prompt, and it makes the files, fixes the build scripts, and the configure options, etc. but, it doesn't fix the win32 projects to add the new library. has anyone else looked at this, or thied to look at this? if nobody else has burned this bridge before, let me know, i'll come up with something you guys can use. I just copied the .dsp file from some other project and modified it for my Universe PHP extension. No perfect solution but it seems like I got it right: http://universe.2good.nu/ If you contribute with autmatic generation of a visual studio project file in ext_skel, that would be great! Regards, -\- David Eriksson -/- An expert in a particular computer language is really an expert in the work-arounds necessary to use this language to perform useful work. - Richard B. Johnson -- 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] Fourth snapshot of Universe
(Universe is a PHP extension for accessing and writing CORBA objects.) Hi! So, whats new? Well: * added a README.win32 about building Universe on Windows * mico patch included (mico-2.3.5.patch) * bug fix for non-lowercase methods and attributes * added new functions: universe_string_to_object() and universe_is_valid() Information, download and demo on: http://universe.2good.nu Regards, -\- David Eriksson -/- An expert in a particular computer language is really an expert in the work-arounds necessary to use this language to perform useful work. - Richard B. Johnson -- 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 #12276 Updated: error orbit_object
ID: 12276 Updated by: eriksson Reported By: [EMAIL PROTECTED] Old Status: Assigned Status: Closed Bug Type: Satellite CORBA related Operating System: linux PHP Version: 4.0.6 Assigned To: eriksson New Comment: No feedback. Please try Universe as a replacement for Satellite: http://universe.2good.nu/ Previous Comments: [2001-08-10 01:46:35] [EMAIL PROTECTED] Regarding having multiple .idl files: Could you please send me ([EMAIL PROTECTED]) the IDL files required for reproducing this? Regarding messages in error_log: Is $obj = new OrbitObject($ior); enough to trigger these error messages? Otherwise, do you perform operations on the $obj too? What operations? Could you send me the IOR and IDL for the object that fails? \David Eriksson, author of Satellite [2001-07-20 06:01:21] [EMAIL PROTECTED] Hi, I installed successfully the satellite extension (apache1.3.11, php4.0.6, cvs version of orbit and glib1.2.10). I had a first problem that i managed to resolve : if you put more than one idl file in the idl_directory, apache won't start. So i had to put all my interfaces in a single idl file, and then i could start apache. The second problem i can't resolve is that when i put this line : $obj = new OrbitObject($ior); in my php script, it fails and i get these errors in the apache error_log file : GLib-CRITICAL **: file ghash.c: line 138 (g_hash_table_lookup): assertion `hash_ table != NULL' failed. GLib-CRITICAL **: file gmem.c: line 563 (g_mem_chunk_alloc): assertion `mem_chun k != NULL' failed. Thanks in advance Edit this bug report at http://bugs.php.net/?id=12276edit=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] Third snapshot of Universe
(Universe is a PHP Extension for accessing and creating CORBA objects.) Hi! Universe now compiles and runs on Windows. You don't need to compile MICO yourself, all you need is in the MICO download I provide. Just extract it with the same parent directory as the php-4.0.6 directory. Information, download, demo and Windows binaries at: http://universe.2good.nu/ Regards, -\- David Eriksson -/- An expert in a particular computer language is really an expert in the work-arounds necessary to use this language to perform useful work. - Richard B. Johnson -- 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] PHP 4.0.7
Quoting Zeev Suraski [EMAIL PROTECTED]: This change was my last major TODO item for PHP 4.0.7. At this point, we should try to get PHP 4.0.7 out the door soon. I suggest we branch 4.0.7 away next Tuesday, and start the QA process. This should give people enough time to make any final changes they want to put into 4.0.7. Would you like Universe to be included in the CVS before the branch? (If someone did not notice, Universe is my new CORBA extension that will replace Satellite.) http://universe.2good.nu/ Regards, -\- David Eriksson -/- An expert in a particular computer language is really an expert in the work-arounds necessary to use this language to perform useful work. - Richard B. Johnson -- 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] Satellite (Was: Re: [PHP-DEV] PHP 4.0.7)
On Thursday 09 August 2001 22:47, Jani Taskinen wrote: As the satellite extension has been experimental all of it's lifetime, and it doesn't even compile (at least very easily :) I'd say nuke that one, and put Universe in the CVS. Also, add a warning to configure for satellite '--with-satellite' which breaks the configure and instructs to use '--with-universe' instead and points to the README in there. I just refreshed the Satellite extension a little, and set up a demo server at http://satellite.2good.nu so you can see that it actually works! :-) But Universe is still better as it uses MICO and not the crappy ORBit. Would this be good time to create that 'old_extensions' module/directory? And start moving those deprecated extensions there?? And as of 4.1 remove them from the release. A good thing might be to have one central config.m4 which holds all the old configure options, and warns people if they use them? Good idea! :-) -\- David Eriksson -/- An expert in a particular computer language is really an expert in the work-arounds necessary to use this language to perform useful work. - Richard B. Johnson -- 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] Satellite (Was: Re: [PHP-DEV] PHP 4.0.7)
On Friday 10 August 2001 00:13, Rasmus Lerdorf wrote: I just refreshed the Satellite extension a little, and set up a demo server at http://satellite.2good.nu so you can see that it actually works! :-) I get a no data from that URL. It's a redirect to a different port: http://satellite.2good.nu:1082 Or maybe it just doesn't work... -\- David Eriksson -/- An expert in a particular computer language is really an expert in the work-arounds necessary to use this language to perform useful work. - Richard B. Johnson -- 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 #12276 Updated: error orbit_object
ID: 12276 Updated by: eriksson Reported By: [EMAIL PROTECTED] Status: Assigned Bug Type: Satellite CORBA related Operating System: linux PHP Version: 4.0.6 Assigned To: eriksson New Comment: Regarding having multiple .idl files: Could you please send me ([EMAIL PROTECTED]) the IDL files required for reproducing this? Regarding messages in error_log: Is $obj = new OrbitObject($ior); enough to trigger these error messages? Otherwise, do you perform operations on the $obj too? What operations? Could you send me the IOR and IDL for the object that fails? \David Eriksson, author of Satellite Previous Comments: [2001-07-20 06:01:21] [EMAIL PROTECTED] Hi, I installed successfully the satellite extension (apache1.3.11, php4.0.6, cvs version of orbit and glib1.2.10). I had a first problem that i managed to resolve : if you put more than one idl file in the idl_directory, apache won't start. So i had to put all my interfaces in a single idl file, and then i could start apache. The second problem i can't resolve is that when i put this line : $obj = new OrbitObject($ior); in my php script, it fails and i get these errors in the apache error_log file : GLib-CRITICAL **: file ghash.c: line 138 (g_hash_table_lookup): assertion `hash_ table != NULL' failed. GLib-CRITICAL **: file gmem.c: line 563 (g_mem_chunk_alloc): assertion `mem_chun k != NULL' failed. Thanks in advance Edit this bug report at http://bugs.php.net/?id=12276edit=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] First snapshot of the Universe PHP extension (PHP-MICO binding)
Hi! I'm proud to present the first snapshot of the Universe PHP extension. What is it? It is a CORBA connection using MICO as ORB. It is intended to replace the exisiting PHP extension Satellite. You can access remote or local CORBA objects, and you can create CORBA objects in PHP code! Information, download and demo at: http://universe.2good.nu/ Universe not ready for production environment yet... it leaks memory! :-( If the PHP Group would like me to submit it to the PHP CVS, I will! :-) Regards, -\- David Eriksson -/- An expert in a particular computer language is really an expert in the work-arounds necessary to use this language to perform useful work. - Richard B. Johnson -- 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] PHP Extensions: C or C++?
On Wed, 25 Jul 2001, J Smith wrote: I have a few PHP extensions that I'd be willing to share but I've never done this sort of thing before. I wrote a few extensions for work, and my company sees no problem in donating them to the open source world and to the PHP project, but I'm curious about something: Are extensions for PHP required to be coded in C, or will C++ do? I'm a C++ guy myself, and since PHP is largely written in C, does this cause a huge problem? If there's enough interest in any of my extensions, I'd consider a re-write from C++ to C, but I don't want to do that if I don't have to. The only extension really ready for prime-time right now is a rather simple Porter stemmer, written in ANSI/ISO C++ using things like the standard C++ string library and such. It's a simple extension that we're using to make the search engine we're building a bit easier to manage. Any future extensions are going to be focused on making search engines easier to implement in PHP. (We're building a search engine that uses PHP.) Any interest in that sort of thing? And if so, C or C++? Using C++ in a PHP extension is pretty simple. I have developed a framework called Zpp for implementing PHP extensions and most notably PHP classes in C++ making it even simpler (at least for me :-) Zpp is part of a PHP extension called Universe that uses the C++ CORBA ORB named MICO to connect PHP to CORBA objects. (Universe is an improved version of my old PHP extension called Satellite.) I plan to release Universe this week, so keep an eye on php-dev... Regards, David Eriksson -- 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] PHP Extensions: C or C++?
Quoting Jani Taskinen [EMAIL PROTECTED]: On Mon, 6 Aug 2001, David Eriksson wrote: named MICO to connect PHP to CORBA objects. (Universe is an improved version of my old PHP extension called Satellite.) I plan to release Universe this week, so keep an eye on php-dev... Is it going to replace ext/satellite or be a new one?? Is Satellite not maintained anymore? There are couple of bugs reported.. (One bug, I believe. But that's one too many of course.) I do not maintain Satellite any more and Universe is indeed intended to replace Satellite. I will contact the person who issued the bug and offer to help him use Universe when I release it. Regards, -\- David Eriksson -/- An expert in a particular computer language is really an expert in the work-arounds necessary to use this language to perform useful work. - Richard B. Johnson -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Help wanted: Operator - and a class in a PHP extension
Quoting David Eriksson [EMAIL PROTECTED]: This time, the last echo line will get the value of $s1-a and not $s2-a. handle_property_get is only called on the $s1 instance and not on the $s2 instance of the object. I will write a PHP extension that just shows this feature. Now that I have written the special extension to test this, I am beginning to suspekt an error in the way I treat the zend_property_reference parameter passed to the handlers that get/set properties. Would someone who be able to explain this structure to me? Maybe Zeev? :-) I'll read the source meanwhile... :-) It was, of course, my own fault. I did not use the zend_property_reference parameter properly. Like anyone cares... :-) Regards, -\- David Eriksson -/- An expert in a particular computer language is really an expert in the work-arounds necessary to use this language to perform useful work. - Richard B. Johnson -- 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 #12276 Updated: error orbit_object
ID: 12276 Updated by: eriksson Reported By: [EMAIL PROTECTED] Old Status: Open Status: Assigned Bug Type: Satellite CORBA related Operating System: linux PHP Version: 4.0.6 Old Assigned To: Assigned To: eriksson Edit this bug report at http://bugs.php.net/?id=12276edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Help wanted: Operator - and a class in a PHP extension
Quoting David Eriksson [EMAIL PROTECTED]: First, look att this piece of pure PHP code: ?php class S { var $a; var $x; } $s1 = new S(); $s1-a = 42; $s2 = new S(); $s2-a = 4711; $s2-x = $s1; echo $s1-a.\n; $s3 = $s2-x; echo $s3-a.\n; echo $s2-x-a.\n; ? All three of the echo lines above will output the value 42. Now consider the same code, but S is class in a PHP extension that has implemented the handle_property_get function to retrieve properties. This time, the last echo line will get the value of $s1-a and not $s2-a. handle_property_get is only called on the $s1 instance and not on the $s2 instance of the object. I will write a PHP extension that just shows this feature. Now that I have written the special extension to test this, I am beginning to suspekt an error in the way I treat the zend_property_reference parameter passed to the handlers that get/set properties. Would someone who be able to explain this structure to me? Maybe Zeev? :-) I'll read the source meanwhile... :-) Regards, -\- David Eriksson -/- An expert in a particular computer language is really an expert in the work-arounds necessary to use this language to perform useful work. - Richard B. Johnson -- 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 api object in object
On Fri, 13 Jul 2001, Richard Samar wrote: I finally figured out how to do this. Thanks a lot to zeev@efnet and hartmu@ircnet. -Richard Hello, What about posting the solution to the list too? :-) Regards, -\- David Eriksson -/- An expert in a particular computer language is really an expert in the work-arounds necessary to use this language to perform useful work. - Richard B. Johnson -- 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] Newbie writing a PHP extension
On Sunday 15 July 2001 16:38, Chris Boot wrote: Hi, I currently have a .zip with the Zend docs at my site, you can get it from there: http://docs.2good.nu/tmp/zend.zip I'd love to get them, but the URL required a user name password. Maybe you should move the file somewhere else? Sorry, the host should be download.2good.nu. For learning automake/autoconf I suggest you download this too from my site: http://docs.2good.nu/tmp/autobook-1.0.tar.gz Same as above, password. Wrong host as above... Currently I am writing an extension called Universe. This extension is a PHP interface to MICO (a C++ CORBA ORB). It will replace my earlier Satellite extension which uses ORBit (a C ORB). Sounds interesting. I haven't taken the time to learn CORBA, and I don't even know what it's used for. Maybe you could clear me up? CORBA cannot be explained easily, but anyway it's a distributed object model... visit www.corba.org for info... Supposedly id3lib is thread-safe. I haven't tested this though. All I'm doing is calling id3lib and doing a few basic conversions. One things that worries me is the resources. Does the Zend engine do its own locking when you add things to resources? Thinking of it, you probably don't have to worry about thread safety unless you share data between different requests. Regards, -\- David Eriksson -/- An expert in a particular computer language is really an expert in the work-arounds necessary to use this language to perform useful work. - Richard B. Johnson -- 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] CORBA/PHP
On Wed, 21 Mar 2001, Nick Loman wrote: Hi I've got a fairly urgent requirement to get Satellite working properly on my PHP 4.0.4pl1 system and can't get in touch with David Eriksson. Has anyone had luck with the setup, specifically accessing objects through IIOP over TCP/IP who would be prepared to share configs with me? I am compiled OK and the mod is installed but it seg faults each time with glib errors in the log file whenever I call new Object. Or if anyone knows where David is likely to be I would very much appreciate being put in touch with him. I'm only busy, and supporting Satellite is unfortunatly not top priority. I got your mail and it's in my inbox, waiting for investigation... Sincerely, -\- David Eriksson -/- "An expert in a particular computer language is really an expert in the work-arounds necessary to use this language to perform useful work." - Richard B. Johnson -- 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: [patch]: satellite interface inheritance fix
On Friday 16 February 2001 08:37, you wrote: [something my mailer was unable to put here, sorry] First of all I'd like to thank you for your patch. I will examine it as soon as possible and very likely add it to the PHP CVS. It's not skip_atext that makes Satellite useless with ORBit 0.5.x but other fixes not available in the public tarballs... :-( The reason for the skip_atexit thing is that PHP is unloaded by apache before apache calls exit... you can guess h Satellite should be considered EXPERIMENTIAL and seem to cause lines like this: [Tue Jan 23 23:41:02 2001] [notice] child pid 21456 exit signal Segmentation fault (11) And like this: ** ERROR **: file orb.c: line 1499 (CORBA_ORB_string_to_object): assertion failed: (ev-_major == 0) aborting... [Thu Jan 11 22:12:03 2001] [notice] child pid 22571 exit signal Aborted (6) I'm will submit a patch for the latter error as soon as possible, but I'm not sure what causes the first one... maybe a race condition... Regards, -\- David Eriksson -/- "An expert in a particular computer language is really an expert in the work-arounds necessary to use this language to perform useful work." - Richard B. Johnson -- 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] Satellite, CORBA, MICO, C++
Hello, Disclaimer: This e-mail partly describes vapourware! :-) First of all I have been making some patches to Satellite to make it work with version 0.5.x of ORBit and not with the CVS snapshot. The current patched version on my hard drive is mostly a proof-of-concept and leaks lots of memory, but if some people show interest I might take some time to clean it up and commit it to PHP. Note: It will require some patches applied to ORBit because of bugs in its DII (Dynamic Invocation Interface) implementation. Because of the sorry state of DII in ORBit, I have been looking at the possibility to connect another free ORB to PHP. At first I tried omniORB, but it messed around too hard with threads. Now I'm looking at MICO, and it has not let me down yet! My PHP extension using MICO is currently capable of getting random numbers from random.org, but not much more! :-) Both omniORB and MICO have C++ interface, so I thought it would be nice with some reusable glue code for extensions that use C++. I call it "Zpp" and it's currently some 1000 lines of code used by my MICO extension. The main purpose is to easily write PHP classes in C++. Would anyone else ever be interested in such a framework or should I just keep it as part of my MICO extension? What should I give priority to? Patch Satellite or work on a replacement extension using MICO? :-) Regards, -\- David Eriksson -/- "An expert in a particular computer language is really an expert in the work-arounds necessary to use this language to perform useful work." - Richard B. Johnson -- 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] Passing of sequences of structures from CORBA to PHP
On Monday 29 January 2001 16:49, Oleg Sharoiko wrote: Hello! I've found a bug in Satellite (CORBA access module for PHP) which prevent from passing sequences of structures from CORBA servant objects to PHP. I made a patch for satellite and it seems to be Ok now. (The patch is in the attached file) I'd appreciate someone reviewing my patch and including it onto PHP source tree. The patch looks good and I will add it to the PHP CVS later today. Thank you very much! Regards, -\- David Eriksson -/- "An expert in a particular computer language is really an expert in the work-arounds necessary to use this language to perform useful work." - Richard B. Johnson -- 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] EXTENSIONS file refresh..
On Friday 19 January 2001 16:07, Jani Taskinen wrote: I added some missing extensions into the EXTENSIONS file and some missing EXPERIMENTAL files into the extensions which were marked as experimental. So every author of those extensions should check that the information in EXTENSIONS is correct. e.g. There were some missing info about the primary maintainers. BTW. Why does the satellite extension use --enable-satellite?? It does use external libraries which are not bundled with PHP. IIRC the --enable-* configure option is meant to be used only with such extensions?? (and satellite relies on some CVS version of ORBit?) What would you like instead? Another thing: Would it be good idea to have the EXPERIMENTAL text in configure help for such options? This could be automated in the buildconf ie. it could check if the EXPERIMENTAL is in the extension's dir and adds the text before/after the option in the help display..? And maybe even a note after configure that there are extensions configured in which are considered experimental thus those might not work as expected. Good idea! Regards, -\- David Eriksson -/- "An expert in a particular computer language is really an expert in the work-arounds necessary to use this language to perform useful work." - Richard B. Johnson -- 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]