File tree 2 files changed +2
-1
lines changed
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 1
1
PHP NEWS
2
2
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3
3
?? Nov 2005, PHP 5.1
4
+ - Fixed bug #35303 (PDO prepare() crashes with invalid parameters). (Ilia)
4
5
- Fixed bug #35293 (PDO segfaults when using persistent connections). (Tony)
5
6
- Fixed bug #35278 (Multiple virtual() calls crash Apache 2 php module). (Ilia)
6
7
- Fixed bug #35273 (Error in mapping soap - java types). (Dmitry)
Original file line number Diff line number Diff line change @@ -503,7 +503,7 @@ static PHP_METHOD(PDO, prepare)
503
503
PDO_CONSTRUCT_CHECK ;
504
504
505
505
if (ZEND_NUM_ARGS () > 1 && SUCCESS == zend_hash_index_find (Z_ARRVAL_P (options ), PDO_ATTR_STATEMENT_CLASS , (void * * )& opt )) {
506
- if (zend_hash_index_find (Z_ARRVAL_PP (opt ), 0 , (void * * )& item ) == FAILURE
506
+ if (Z_TYPE_PP ( opt ) != IS_ARRAY || zend_hash_index_find (Z_ARRVAL_PP (opt ), 0 , (void * * )& item ) == FAILURE
507
507
|| Z_TYPE_PP (item ) != IS_STRING
508
508
|| zend_lookup_class (Z_STRVAL_PP (item ), Z_STRLEN_PP (item ), & pce TSRMLS_CC ) == FAILURE
509
509
) {
You can’t perform that action at this time.
0 commit comments