[PHP-DEV] Bug #11672: Apache didn´t start: SSL_CTX_set_tmp_rsa_callback

2001-06-25 Thread ab

From: [EMAIL PROTECTED]
Operating system: RedHat 7.0
PHP version:  4.0.6
PHP Bug Type: Apache related
Bug description:  Apache didn´t start: SSL_CTX_set_tmp_rsa_callback

Hello,

My configure:
./configure
   --with-mysql
   --with-gd
   --with-apxs
   --with-jpeg-dir
   --with-png-dir
   --with-imap
   --with-zlib-dir
   --enable-sysvshm=yes
   --enable-sysvsem=yes
   --enable-track-vars=yes
   --enable-url-includes=yes
   --with-tiff-dir
   --with-pdflib=/usr/local/pdflib
   --enable-shared-pdflib
   --with-ttf
   --with-kerberos
   --with-imap-ssl

My install RPM´s:
apache-devel-1.3.12-25
apache-1.3.12-25
openssl-devel-0.9.6-3
openssl-0.9.5a-14
openssl-0.9.6-3
gd-1.8.3-7
gd-devel-1.8.3-7
imap-devel-2000-9
imap-2000-9

My error when I start the Apache Webserver:
Starting httpd: Syntax error on line 236 of /etc/httpd/conf/httpd.conf:
Cannot load /etc/httpd/modules/libphp4.so into server: undefined symbol: 
SSL_CTX_set_tmp_rsa_callback


Why doesn´t run?
Please help...

Thank you
Andreas



-- 
Edit Bug report at: http://bugs.php.net/?id=11672&edit=1



-- 
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] Bug #10358 Updated: InterBase module

2001-04-17 Thread ab

ID: 10358
Updated by: ab
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: IIS related
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Does this
$ib_result = ibase_query(0, $ib_query);
correct? Seems that there should be $ib_link instead 0.
If this isn't typo, re-open bug.

Previous Comments:
---

[2001-04-17 03:42:03] [EMAIL PROTECTED]
It appears that the connection is good (no msg of warning or errors) but the function 
ibase_query() gives a warning like:

InterBase module: 0 is not link or transaction index

source:

n");
$ib_query   = "select * from servic";
print ("IB_QUERY : $ib_queryn");
$ib_result  = ibase_query(0, $ib_query);
ibase_close();
?>

I can't do less... heelp!

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10358&edit=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] PHP 4.0 Bug #10180 Updated: date arithmetic gives wrong result

2001-04-05 Thread ab

ID: 10180
Updated by: ab
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Date/time related
Assigned To: 
Comments:

daylight saving time started on 3.26.2001 so behaviour is correct

Previous Comments:
---

[2001-04-05 05:44:20] [EMAIL PROTECTED]
".date("z", $CurDate - $birthdate ) ." days old");

// should give 83 days old - correct
$CurDate   = mktime(0,0,0,3,25,2001);
printf("".date("z", $CurDate - $birthdate ) ." days old");

// should give 84 days old - instead gives 83
$CurDate   = mktime(0,0,0,3,26,2001);
printf("".date("z", $CurDate - $birthdate ) ." days old");

// should give 85 days old - instead gives 84
$CurDate   = mktime(0,0,0,3,27,2001);
printf("".date("z", $CurDate - $birthdate ) ." days old");

?>

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10180&edit=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] PHP 4.0 Bug #9764: Extensions from php.ini get loaded several times per process

2001-03-15 Thread ab

From: [EMAIL PROTECTED]
Operating system: Linux 2.2.18 / glibc 2.2.2
PHP version:  4.0 Latest CVS (15/03/2001)
PHP Bug Type: PHP options/info functions
Bug description:  Extensions from php.ini get loaded several times per process 

PHP4 under Apache tries to load extensions from php.ini
several times per process causing 'duplicate name' warnings
Also on the second (and next) loading extension name passed
to phpdl() in damaged form.

Investigation showed that problem is in the main/php_ini.c:
1. php_load_function_extension_cb() allocates extension name using estrdup but global 
llist with extensions declared as persistent. It keeps references to deallocated 
extensions' names causing damaged names passed to phpdl(). 
2. php_startup_loaded_extensions() doesn't free llist after
loading extensions, so next call to php_init_config() (per-process) will double this 
list.

Solution is to deallocate llist after loading extensions in 
php_startup_loaded_extensions. Then (1) wouldn't be a problem at all.

Proposed fix:

--- main/php_ini.c.orig Tue Mar  6 13:38:55 2001
+++ main/php_ini.c  Thu Mar 15 13:12:04 2001
@@ -165,6 +165,8 @@
 {
if(php_load_extension_list) {
zend_llist_apply(php_load_extension_list, 
php_startup_loaded_extension_cb);
+   zend_llist_destroy(php_load_extension_list);
+   php_load_extension_list = NULL;
}
return SUCCESS;
}


-- 
Edit Bug report at: http://bugs.php.net/?id=9764&edit=1



-- 
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] PHP 4.0 Bug #9637: MySQL extension doesn't want to compile as SELF-CONTAINED-EXTENSION (SCE)

2001-03-08 Thread ab

From: [EMAIL PROTECTED]
Operating system: Linux 2.2, glibc 2.2.2
PHP version:  4.0 Latest CVS (08/03/2001)
PHP Bug Type: Compile Failure
Bug description:  MySQL extension doesn't want to compile as SELF-CONTAINED-EXTENSION 
(SCE)

MySQL extension doesn't want to compile as self contained extension because localy 
created php_config.h didn't included and global php_config.h from 
/usr/include/php/main/ contains no HAVE_MYSQL defined. It bails out with undefined 
functions php_if_mysql_xxx because
php_mysql.h escapes definitions when HAVE_MYSQL undefined.

Intention was to create a set of RPMs with straight PHP (doesn't depend on anything 
for extensions) and additional RPMs for extensions
which depend on particular external library (PgSQL, MySQL, IMAP, GTK, etc).

Configure options for main PHP:
configure  --with-apxs=/usr/sbin/apxs --disable-static  --disable-debug  --enable-pic 
--enable-inline-optimization \
 --prefix=%{_prefix} --with-zlib   --disable-magic-quotes  --enable-debugger  
--enable-track-vars \
 --enable-safe-mode  --with-exec-dir=%{_bindir}  --with-regex=system  --enable-sysvsem 
\
 --enable-sysvshm  --with-mod_charset  --enable-force-cgi-redirect  --with-mm  
--enable-trans-sid \
 --with-dbase  --with-filepro  --enable-ftp  --with-xml=/usr  --with-gettext  
--enable-yp \
 --enable-calendar  --enable-bcmath

Configure options for MySQL module after calling 'phpize':
configure  --with-mysql=/usr
(no need to --with-mysql=shared,/usr due $ext_shared always set to 'yes' for SCE).

Patch to solve problem:
--- ext/mysql/php_mysql.c.orig  Mon Feb 26 08:07:04 2001
+++ ext/mysql/php_mysql.c   Thu Mar  8 18:42:42 2001
@@ -26,6 +26,7 @@
 
 #include "php.h"
 #include "php_globals.h"
+#include "php_config.h"
 #include "php_mysql.h"
 #include "ext/standard/info.h"
 #include "ext/standard/php_string.h"




-- 
Edit Bug report at: http://bugs.php.net/?id=9637&edit=1



-- 
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]