Skip to content

Commit 86c9794

Browse files
committed
Move client_constructor_mock files from tests to src
- Move client_constructor_mock.stub.php and .c to src/ directory - Update Makefile.frag to reference new src/ location - Update include paths in client_constructor_mock.c - Fix PIE/Packagist build issues by ensuring files are in src/ Signed-off-by: James Duong <[email protected]>
1 parent 3e36f61 commit 86c9794

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Makefile.frag

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ GEN_INCLUDE_DIR = include/glide
2020
GEN_SRC_DIR = src
2121

2222
# Force header generation before any compilation
23-
$(shared_objects_valkey_glide): include/glide_bindings.h cluster_scan_cursor_arginfo.h valkey_glide_arginfo.h valkey_glide_cluster_arginfo.h logger_arginfo.h tests/client_constructor_mock_arginfo.h
23+
$(shared_objects_valkey_glide): include/glide_bindings.h cluster_scan_cursor_arginfo.h valkey_glide_arginfo.h valkey_glide_cluster_arginfo.h logger_arginfo.h src/client_constructor_mock_arginfo.h
2424

2525
# Backward compatibility alias
26-
build-modules-pre: include/glide_bindings.h cluster_scan_cursor_arginfo.h valkey_glide_arginfo.h valkey_glide_cluster_arginfo.h logger_arginfo.h tests/client_constructor_mock_arginfo.h
26+
build-modules-pre: include/glide_bindings.h cluster_scan_cursor_arginfo.h valkey_glide_arginfo.h valkey_glide_cluster_arginfo.h logger_arginfo.h src/client_constructor_mock_arginfo.h
2727

2828
# Arginfo header dependencies
2929
cluster_scan_cursor_arginfo.h: cluster_scan_cursor.stub.php
@@ -38,8 +38,8 @@ valkey_glide_cluster_arginfo.h: valkey_glide_cluster.stub.php
3838
logger_arginfo.h: logger.stub.php
3939
@php -f $(top_srcdir)/build/gen_stub.php logger.stub.php || echo "logger arginfo generation failed"
4040

41-
tests/client_constructor_mock_arginfo.h: tests/client_constructor_mock.stub.php
42-
@php -f $(top_srcdir)/build/gen_stub.php tests/client_constructor_mock.stub.php || echo "client_constructor_mock arginfo generation failed"
41+
src/client_constructor_mock_arginfo.h: src/client_constructor_mock.stub.php
42+
@php -f $(top_srcdir)/build/gen_stub.php src/client_constructor_mock.stub.php || echo "client_constructor_mock arginfo generation failed"
4343

4444
include/glide_bindings.h:
4545
@echo "=== GENERATING HEADER FILE ==="

tests/client_constructor_mock.c renamed to src/client_constructor_mock.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
#include "zend_exceptions.h"
2020

2121
#if PHP_VERSION_ID < 80000
22-
#include "tests/client_constructor_mock_legacy_arginfo.h"
22+
#include "src/client_constructor_mock_legacy_arginfo.h"
2323
#else
24-
#include "tests/client_constructor_mock_arginfo.h"
24+
#include "src/client_constructor_mock_arginfo.h"
2525
#include "zend_attributes.h"
2626
#endif
2727

File renamed without changes.

0 commit comments

Comments
 (0)