Skip to content

Bugfix #52958 and #57702 - #118

Closed
hswong3i wants to merge 10000 commits into
php:PHP-5.4from
hswong3i:52958
Closed

hswong3i wants to merge 10000 commits into
php:PHP-5.4from
hswong3i:52958

Conversation

@hswong3i

Copy link
Copy Markdown
  • Bug #52958 Segfault in PDO_OCI on cleanup after running a long testsuite.
  • Bug #57702 Multiple BLOB fetch fails.

cataphract and others added 30 commits April 23, 2012 22:10
* PHP-5.3:
  Fix bug #61413 ext\openssl\tests\openssl_encrypt_crash.phpt fails 5.3 only
using ob_gzhandler will complain about headers already sent
when no compression

the Vary header should only be sent on the PHP_OUTPUT_HANDLER_START
event
Since upgrade to PHP 5.4, we can't change zlib.output_compression on the
fly

the check for PHP_OUTPUT_WRITTEN was over-zealous
* PHP-5.3:
  Partial fix for bug 61743 to get correct icacls path
* PHP-5.3:
  Fix bug #61800 ext\standard\tests\streams\bug61371.phpt fails
* PHP-5.3:
  Fix bug #61791 ext\sqlite3\tests\sqlite3_15_open_error.phpt fails

Conflicts:
	ext/sqlite3/tests/sqlite3_15_open_error.phpt
* PHP-5.3:
  Fix bug 61685 putenv('TZ=UTC') doesn't update timezone for localtime()
* PHP-5.3:
  - Added missing bound check in iptcparse() (path by chris at chiappa.net)
* origin/PHP-5.3:
  Fixed bug #61546 (functions related to current script failed when chdir() in cli sapi).
  - BFN

Conflicts:
	sapi/cli/php_cli.c
* PHP-5.3:
  Fix bug ext\filter\tests\bug52209.phpt fails
* PHP-5.3:
  Fix bug 61870 ext\session\tests\bug42596.phpt fails
* PHP-5.3:
  Additional fixs for bug 61746 - prepare/clean acls
* PHP-5.3:
  Fix bug 61868 ext\dom\tests\DOMDocument_validate_on_parse_variation.phpt fails
* PHP-5.3:
  Fix masking in bug61115-1.phpt
* PHP-5.3:
  Make output order for dom007.phpt platform independent
…information) and"

This reverts commit cb2a1c7.
The fix is not correct, not fixed after discussion on github.
Please fix the issues and reapply the patch
nikic and others added 2 commits June 27, 2012 12:28
* PHP-5.3:
  Improve JSON error handling

Conflicts:
	ext/json/tests/bug54058.phpt
	ext/json/tests/bug61537.phpt
@hswong3i

Copy link
Copy Markdown
Author

Already split the patch, where #52958 checking with H->err should generally looks good?

@cjbj

cjbj commented Jun 27, 2012

Copy link
Copy Markdown
Contributor

Did you decide against changing OCITransRollback to an OCISessionEnd? Or will you create another pull request? That change seemed to fix pdo_oci_attr_autocommit_3.phpt and make the edge-case behavior the same as pdo_mysql.

johannes and others added 14 commits June 27, 2012 23:35
* PHP-5.3:
  Fix #62432 ReflectionMethod random corrupt memory on high concurrent

Conflicts:
	ext/date/php_date.c
	ext/fileinfo/fileinfo.c
	ext/pdo/pdo_dbh.c
	ext/pdo/pdo_stmt.c
	ext/reflection/php_reflection.c
	ext/spl/spl_array.c
	ext/spl/spl_directory.c
	ext/spl/spl_dllist.c
	ext/spl/spl_fixedarray.c
	ext/spl/spl_heap.c
	ext/spl/spl_iterators.c
	ext/spl/spl_observer.c
	ext/sqlite/sqlite.c
	ext/sqlite3/sqlite3.c
	ext/tidy/tidy.c
	ext/xmlreader/php_xmlreader.c
	ext/xmlwriter/php_xmlwriter.c
	ext/xsl/php_xsl.c
	ext/zip/php_zip.c
* PHP-5.3:
  Add json_last_error_msg() function
* PHP-5.3:
  Fixed bug #62443 (Crypt SHA256/512 Segfaults With Malformed Salt)
* PHP-5.3:
  Fix some lengths in crypt()

Conflicts:
	ext/standard/crypt.c
@php-pulls

Copy link
Copy Markdown

Comment on behalf of stas at php.net:

This pull does not look correct - too many unrelated patches. Please clean up and resubmit.

@php-pulls php-pulls closed this Jul 1, 2012
EdmondDantes added a commit to true-async/php-src that referenced this pull request May 15, 2026
EdmondDantes added a commit to true-async/php-src that referenced this pull request May 15, 2026
…ync awaiter

When a user CURLOPT_XFERINFOFUNCTION / CURLOPT_PROGRESSFUNCTION callback
throws, curl_xferinfo / curl_progress used to leave EG(exception) set and
return 0. libcurl then kept driving the transfer; each subsequent tick
re-entered zend_call_known_fcc with a pending exception, which short-
circuits without clearing it. Eventually the transfer ended and the
dangling exception surfaced outside the coroutine — on Linux it landed
on the awaiter's frame and propagated normally, but on macOS the libuv/
kqueue reentry path delivered it as uncaught at engine top-level,
failing tests/curl/035-progress_exception.phpt and 056-multi_progress_
exception.phpt on MACOS_*_NTS.

Two other async-aware curl callbacks (curl_prereqfunction, curl_debug)
already did the right thing; these two were missed when the pattern was
applied.

Fix: after zend_call_known_fcc returns, if EG(exception) is set and
ch->async_event exists, hand the exception off to
curl_async_event_set_callback_exception(), clear it, and return 1 to
abort the transfer. The captured exception is then re-thrown into the
awaiter through the normal curl_async_event_t delivery path
(curl_async.c:1104).
EdmondDantes added a commit to true-async/php-src that referenced this pull request May 15, 2026
heyJordanParker referenced this pull request in heyJordanParker/php-sharp Oct 11, 2026
Problem:
Mago master merged #118, so a `Set`'s changing methods need a place to write back to, and
the generics Mago branch merged it as e364b6a. At that pin `mago compile` refuses
`Sets.sharp:75`, `const copied = this.copy().add("copy");`, because the `Set` that `copy()`
returns lives nowhere: "This method changes the collection, which has no place to be written
back to."

Solution:
`ext/sharp/sharp_unit.h` is the header Mago e364b6a generates. `Sets.sharp:75` keeps the
copy in a local and adds to it, on the same line, and its PHP twin `Sets.inc:75` writes the
same PHP, so `copied` is still `true`, no other line moves, and `opcodes.phpt` and the three
`set_methods*.phpt` files keep their output. `php -n --ri sharp` prints "Mago commit =>
e364b6a…".

Zend/tests/sharp/
├── Sets.sharp   <- line 75 adds to a local copy
└── Sets.inc     <- its PHP twin
ext/sharp/sharp_unit.h   <- pinned to Mago e364b6a
heyJordanParker referenced this pull request in heyJordanParker/php-sharp Oct 11, 2026
chore: pin Mago at #118, where a Set's changing methods need a place
heyJordanParker referenced this pull request in heyJordanParker/php-sharp Oct 11, 2026
Problem
- master took #101, which pins Mago at #118 (90e8d64) and rewrites
  Sets.sharp:75 and Sets.inc:75 so a Set's changing method has a place.
- This branch pinned #129's head (bce91aa). Both sides changed the pin line.
  #129 merged as 82593a4, which did not compile, and mago-sharp #153 fixed it
  as 625c278.

Solution
- Take master's Sets.sharp and Sets.inc as they are.
- SHARP_MAGO_COMMIT pins 625c278, the merge of
  #153, which carries both #118 and #129. The bridge sources the header is
  generated from are unchanged since bce91aa, so the pin is the only line the
  generated header changes.

Zend/tests/sharp/
  Sets.sharp, Sets.inc   from master: the copied Set is held in a local before add
ext/sharp/
  sharp_unit.h           conflict: SHARP_MAGO_COMMIT is 625c278, the merge of mago-sharp #153
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.