#30907 [Fbk->Opn]: Apache crashes when inserting a -1 into a Interbase TIMESTAMP field

2005-02-24 Thread sandell at slobtrot dot com
 ID:   30907
 User updated by:  sandell at slobtrot dot com
 Reported By:  sandell at slobtrot dot com
-Status:   Feedback
+Status:   Open
 Bug Type: InterBase related
 Operating System: WinXP Pro (SP2)
 PHP Version:  5.0.2
 New Comment:

The PHP installation was not altered. It's the original PHP 5.0.2
installation (binary only).


Previous Comments:


[2005-02-23 21:28:52] [EMAIL PROTECTED]

Did you build php_interbase.dll from source, or did you use the
pre-built one from php.net?



[2004-11-26 14:24:25] sandell at slobtrot dot com

Description:

When inserting a -1 into a TIMESTAMP field in an interbase 7 database
Apache crashes. When looking at the "More info" in the WinXP crash
dialog it shows that it was mod "php_interbase.dll" that caused the
crash.

System setup:
 Windows XP Pro, SP2
 Apache/2.0.50 (Win32) (Win32 bin files downloaded)
 PHP/5.0.2, extension INTERBASE used in php.ini
 Interbase 7 (WI-V7.1.0.131), TCP/IP connection (Localhost)
 No Zend optimizer

Note:
 If a value of 0 (zero) is given in the statement, then all works as
expected.

Reproduce code:
---
1) Create the table "testtable" in a database with one field named
"DTField" of type TIMESTAMP.

2) Execute the following code:
   // Crash Code
   $db = ibase_connect('','','','None',0,3);
   $sql = "INSERT INTO TestTable (DTField) VALUES (?)";
   $sth = ibase_query($db_intra, $sql, -1);
   ibase_commit($db);


Expected result:

The table should have a new entry

Actual result:
--
Apache crashes (php_interbase.dll)





-- 
Edit this bug report at http://bugs.php.net/?id=30907&edit=1



#32091 [Opn->Asn]: PCRE 5.0 ugprade request

2005-02-24 Thread derick
 ID:   32091
 Updated by:   [EMAIL PROTECTED]
 Reported By:  ceefour at gauldong dot net
-Status:   Open
+Status:   Assigned
 Bug Type: PCRE related
 Operating System: All
 PHP Version:  5.0.3
-Assigned To:  
+Assigned To:  andrei
 New Comment:

Can you have a look at this for PHP 5.1 Andrei?


Previous Comments:


[2005-02-24 04:53:55] ceefour at gauldong dot net

Description:

PCRE 5.0 is already out and ripe for grabbing.

The most important feature is IMHO the ability to match general
category properties of Unicode/UTF-8 strings, which is *VERY* useful
for internationalized sites.

I hope this will be implemented as soon as possible. Even an updated
extension will be much better if it's not contained in the next release
of PHP.






-- 
Edit this bug report at http://bugs.php.net/?id=32091&edit=1



#30907 [Opn->Fbk]: Apache crashes when inserting a -1 into a Interbase TIMESTAMP field

2005-02-24 Thread abies
 ID:   30907
 Updated by:   [EMAIL PROTECTED]
 Reported By:  sandell at slobtrot dot com
-Status:   Open
+Status:   Feedback
 Bug Type: InterBase related
 Operating System: WinXP Pro (SP2)
 PHP Version:  5.0.2
 New Comment:

Please try if the error can be reproduced with a php_interbase.dll
built from source using the ibase.h header file that comes with
Interbase 7.1




Previous Comments:


[2005-02-24 09:10:57] sandell at slobtrot dot com

The PHP installation was not altered. It's the original PHP 5.0.2
installation (binary only).



[2005-02-23 21:28:52] [EMAIL PROTECTED]

Did you build php_interbase.dll from source, or did you use the
pre-built one from php.net?



[2004-11-26 14:24:25] sandell at slobtrot dot com

Description:

When inserting a -1 into a TIMESTAMP field in an interbase 7 database
Apache crashes. When looking at the "More info" in the WinXP crash
dialog it shows that it was mod "php_interbase.dll" that caused the
crash.

System setup:
 Windows XP Pro, SP2
 Apache/2.0.50 (Win32) (Win32 bin files downloaded)
 PHP/5.0.2, extension INTERBASE used in php.ini
 Interbase 7 (WI-V7.1.0.131), TCP/IP connection (Localhost)
 No Zend optimizer

Note:
 If a value of 0 (zero) is given in the statement, then all works as
expected.

Reproduce code:
---
1) Create the table "testtable" in a database with one field named
"DTField" of type TIMESTAMP.

2) Execute the following code:
   // Crash Code
   $db = ibase_connect('','','','None',0,3);
   $sql = "INSERT INTO TestTable (DTField) VALUES (?)";
   $sth = ibase_query($db_intra, $sql, -1);
   ibase_commit($db);


Expected result:

The table should have a new entry

Actual result:
--
Apache crashes (php_interbase.dll)





-- 
Edit this bug report at http://bugs.php.net/?id=30907&edit=1



#30907 [Fbk->Opn]: Apache crashes when inserting a -1 into a Interbase TIMESTAMP field

2005-02-24 Thread sandell at winwap dot com
 ID:   30907
 User updated by:  sandell at winwap dot com
-Reported By:  sandell at slobtrot dot com
+Reported By:  sandell at winwap dot com
-Status:   Feedback
+Status:   Open
 Bug Type: InterBase related
 Operating System: WinXP Pro (SP2)
 PHP Version:  5.0.2
 New Comment:

Compiling stuff is out of scope for me, sorry. The compiling must be
done by someone else who knows how to do it.


Previous Comments:


[2005-02-24 10:12:23] [EMAIL PROTECTED]

Please try if the error can be reproduced with a php_interbase.dll
built from source using the ibase.h header file that comes with
Interbase 7.1





[2005-02-24 09:10:57] sandell at slobtrot dot com

The PHP installation was not altered. It's the original PHP 5.0.2
installation (binary only).



[2005-02-23 21:28:52] [EMAIL PROTECTED]

Did you build php_interbase.dll from source, or did you use the
pre-built one from php.net?



[2004-11-26 14:24:25] sandell at winwap dot com

Description:

When inserting a -1 into a TIMESTAMP field in an interbase 7 database
Apache crashes. When looking at the "More info" in the WinXP crash
dialog it shows that it was mod "php_interbase.dll" that caused the
crash.

System setup:
 Windows XP Pro, SP2
 Apache/2.0.50 (Win32) (Win32 bin files downloaded)
 PHP/5.0.2, extension INTERBASE used in php.ini
 Interbase 7 (WI-V7.1.0.131), TCP/IP connection (Localhost)
 No Zend optimizer

Note:
 If a value of 0 (zero) is given in the statement, then all works as
expected.

Reproduce code:
---
1) Create the table "testtable" in a database with one field named
"DTField" of type TIMESTAMP.

2) Execute the following code:
   // Crash Code
   $db = ibase_connect('','','','None',0,3);
   $sql = "INSERT INTO TestTable (DTField) VALUES (?)";
   $sth = ibase_query($db_intra, $sql, -1);
   ibase_commit($db);


Expected result:

The table should have a new entry

Actual result:
--
Apache crashes (php_interbase.dll)





-- 
Edit this bug report at http://bugs.php.net/?id=30907&edit=1



#30670 [Opn->Csd]: ldap_search does not work on Windows 2003 directories (but other tools do)

2005-02-24 Thread michael dot siebke at keymile dot com
 ID:   30670
 User updated by:  michael dot siebke at keymile dot com
 Reported By:  michael dot siebke at keymile dot com
-Status:   Open
+Status:   Closed
 Bug Type: LDAP related
 Operating System: Linux (Redhat 8)
 PHP Version:  5.0.1
 New Comment:

Tested with the options mentioned here and works fine. This report can
be closed.


Previous Comments:


[2005-02-03 22:03:47] peter dot burden at gmail dot com

Been investigating further using underlying openldap 
library C functions. It seems that ldap_search_s() - 
which means synchronous, i.e. it doesn't return until 
it's got a result - is actually behaving asynchronously
 - i.e. returning immediately and requiring the user 
to do a separate library call to get the results. In C 
you can avoid problems by calling ldap_search() followed 
by a call to ldap_result(), unfortunately PHP doesn't
provide this option.

A Google search for the associated error message
'LdapErr: DSID-0C0905FF' reveals many other software developer forums
with the same problem (in Java, 
Python among others).

Hope this is useful to somebody.



[2005-01-28 16:11:31] michael dot siebke at keymile dot com

Ok, thanks for the feedback. I will try it that way.



[2005-01-28 12:51:09] peter dot burden at gmail dot com

PHP 4.3.10 + Apache 2.0.45 + Solaris 2.7 + Openldap 2.1.30

No problems using LDAP this way via a WWW server launched
script but the extra option settings described by Paul
Boven were necessary when using PHP CLI.



[2005-01-13 00:12:15] p dot boven at chello dot nl

Hi,

This is not a PHP bug imho: the problem is that Windows 2003 -must-
have some options set between the ldap_connect and ldap_bind:

$ldap = ldap_connect($ldap_url);
..
ldap_set_option($ldap, LDAP_OPT_PROTOCOL_VERSION,3);
ldap_set_option($ldap, LDAP_OPT_REFERRALS,0);
..
ldap_bind($ldap, $ldap_user, $ldap_passwd)

Works fine for me with PHP 4.3.x, Solaris 9 (Sparc), ADS W2k3.

Regards, Paul Boven.



[2004-11-03 09:03:58] michael dot siebke at keymile dot com

Description:

It's not possible to search a Windows 2003 active directory using the
LDAP interface (Windows 2000 works fine). However, using other tools
(like LDAP browers), searching the Windows 2003 directory works. The
problems occurs only using the PHP library.

Reproduce code:
---
$connect  =  ldap_connect("[i]server.domain.de[/i]");

  if ($connect != FALSE) {

$res   = ldap_bind($connect, "[i]username[/i]",
"[i]password[/i]");

if ($res == FALSE) {
  echo "Unable to bind to LDAP server";
  exit;
}

$attributes = array("sAMAccountName", "dn", "mail");
$data = ldap_search($connect, "[i]DC=company,DC=de[/i]",
"(sAMAccountName=[i]targetaccount[/i])");

if ($data != FALSE) {
   echo "Reading data...";
   $data  = ldap_get_entries($connect, $data);
} else {
   echo "Nothing :-(";
}
  
ldap_close($connect);
  }

Expected result:

"Reading data..."

Actual result:
--
Warning: ldap_search() [function.ldap-search]: Search: Operations error
in /data/htdocs/hd5dev/Test.php on line 57
Nothing :-(





-- 
Edit this bug report at http://bugs.php.net/?id=30670&edit=1