Given the following test script: <?php $mysqli = new mysqli("localhost", "test", "test", "test"); ?> and the following settings in /etc/php/apache2-php5.3/php.ini: mysqli.connect_charset = latin1 Accessing the test script using apache with mod_php enabled with crash the apache child. It is caused by lines 134--136 accessing mysql->mysql even though this value is a nullpointer being allocated at line 102. I can provide a GDB backtrace if necessary.
(In reply to comment #0) > Given the following test script: > > <?php $mysqli = new mysqli("localhost", "test", "test", "test"); ?> > > and the following settings in /etc/php/apache2-php5.3/php.ini: > > mysqli.connect_charset = latin1 > > Accessing the test script using apache with mod_php enabled with crash the > apache child. > > It is caused by lines 134--136 accessing mysql->mysql even though this value is > a nullpointer being allocated at line 102. > > I can provide a GDB backtrace if necessary. Just need to confirm one thing. You are using the connect_charset ini setting that is added through the Gentoo patchset?
(In reply to comment #1) > Just need to confirm one thing. You are using the connect_charset ini setting > that is added through the Gentoo patchset? Yes.
The solution to this one is quite easy. Do not use it. Those patches have already been removed for the 5.4 patchset and as they apparantly cause segfaults, I will most likely remove the patches from the 5.3 patchset as well.
Okay, thanks for the reply. Can you close this bug when you remove the patches from the repo? That way I know when to update my php installation again.
Sure. The patches has been removed from 5.4 alpha2 and 5.3.7_rc3. Unless something unexpected happens, stable version of the latter will be released on the same day as upstream.
Patch has been removed from latest stable ebuild