[PHP] openssl_encrypt, ecb and IV

2013-01-24 Thread steffo76
Hi list, I am having trouble with error messages saying "Using an empty Initialization Vector (iv) is potentially insecure and not recommended" These messages turn up using horde which uses ecb. I don't know the inner workings of php and openssl but if I understand correctly, there is no IV us

[PHP] Late static binding behaves differently in PHP 5.3 and PHP 5.4

2013-01-24 Thread Keven
Hello everybody, I found a difference between late static binding in PHP 5.3 and PHP 5.4 and I cannot find any documentation to explain this difference. Here is some code to show you this difference: class Foo { const MY_CONST = 'The Foo'; static $my_var = self::MY_CONST; } clas

Re: [PHP] Late static binding behaves differently in PHP 5.3 and PHP 5.4

2013-01-24 Thread David Harkness
Hi Keven, First, I don't see any late static binding being used here. LSB only applies when you access a static member using the static keyword within a class method. This code uses static properties but accesses them directly without going through class methods. Here's an example of LSB: cla

Re: [PHP] Late static binding behaves differently in PHP 5.3 and PHP 5.4

2013-01-24 Thread Keven
Thank you for your response, yes the name is not totally related to the message, but this behavior reminds me of LSB. However, I found it while using Propel 1.6 on PHP 5.4 with nested_set behavior and I can tell now that Propel 1.6 + nested_set cannot work on PHP 5.4+ (I checked on PHP 5.5 and

[PHP] No error handling for - ldap_bind(): Unable to bind to server: Invalid credentials.

2013-01-24 Thread Sarno, Giuseppe
Hello, I am using php (5.4.11 windows) ldap extension and I am having problems when I bind to my LDAP server with wrong credentials. The problem is that I get the warning: : ldap_bind(): Unable to bind to server: Invalid credentials no matter what I do. I simply would like to handle the case and

[PHP] properly debugging php/httpd with gdb

2013-01-24 Thread Zippy Zeppoli
Hello, I've asked this question on the gdb as well as httpd mailing lists, so I am turning to php community as a last resort. I am trying to debug my php apps that core dump with gdb, but for some reason the core file is always truncated (don't ask me about limits, they are properly set, been down